-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kuadrant gateway controller to annotate gateways #260
Conversation
Codecov Report
@@ Coverage Diff @@
## main #260 +/- ##
==========================================
- Coverage 63.85% 63.60% -0.26%
==========================================
Files 32 33 +1
Lines 3135 3204 +69
==========================================
+ Hits 2002 2038 +36
- Misses 970 993 +23
- Partials 163 173 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Threshold: Allow the coverage to drop by X%, and posting a success status.
status: | ||
project: | ||
default: | ||
threshold: 1% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow the coverage to drop by X%, and posting a success status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW new patch coverage raised up to 79.71%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Variability in test sampling can cause the % to vary a little (you can also specify the number of digits of rounding to do before comparing BTW), causing it to drop a little (with same code and tests) and fail - so this guards against that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g.
coverage:
round: up
precision: 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL: codecov target
target
auto | <number>
Choose a minimum coverage ratio that the commit must meet to be considered a success.
auto will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
<number> you can specify a target of an exact coverage number such as 75% or 100% (string, int, or float accepted).
target is the minimum coverage ratio that the commit must meet to be considered a success.
What
Fixes #259
Custom controller to add the kuadrant annotation to every new gateway deployed after Kuadrant CR has been created.
It does not reconcile the annotation value. If there is an annotation with the expected key
kuadrant.io/namespace
Fixed codecov configuration.
Verification Steps
Checking the annotations of the
istio-ingressgateway
gatewayIt does not have any kuadrant namespace annotation
- kubectl.kubernetes.io/last-applied-configuration
Request an instance of Kuadrant:
The istio
istio-ingressgateway
gateway, should be annotated with the kuadrant annotationCreate a new gateway
Note that the gateway does not have kuadrant annotation
The new gateway
second
gateway, should be annotated with the kuadrant annotation