-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix total_restored_common_templates metric update #559
Fix total_restored_common_templates metric update #559
Conversation
Skipping CI for Draft Pull Request. |
/test all |
@machadovilaca: No presubmit jobs available for kubevirt/ssp-operator@master In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
@machadovilaca: No presubmit jobs available for kubevirt/ssp-operator@master In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
f1aead9
to
12658d1
Compare
Both commits change the same lines in file |
e6bd7df
to
62ad95f
Compare
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.
Can you please add some context into the commit descriptions?
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.
Can you squash the commits? The fist commit is not correct without the second one.
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.
Can you squash the commits? The fist commit is not correct without the second one.
1ee67ef
to
766c72c
Compare
ded0a58
to
f5e4371
Compare
66c58fa
to
9ec7e72
Compare
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.
Returning the existing
resource from createOrUpdateWithImmutableSpec()
seems hacky, but it's ok for this PR. We can improve the code later.
CommonTemplatesRestored.Collect(ch) | ||
close(ch) | ||
m := <-ch | ||
dto := &io_prometheus_client.Metric{} |
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.
What does dto
mean? Can you use longer variable names?
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.
it is a commonly used name by Prometheus in these cases, but we can use metric
for clarity
Signed-off-by: João Vilaça <jvilaca@redhat.com>
9ec7e72
to
e6bfa8c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest |
/cherry-pick release-v0.16 |
@machadovilaca: #559 failed to apply on top of branch "release-v0.16":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
SSPCommonTemplatesModificationReverted is being triggered during upgrades.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: