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
Refactor kubevirt_vmi_number_of_outdated #11538
Refactor kubevirt_vmi_number_of_outdated #11538
Conversation
/test pull-kubevirt-e2e-k8s-1.29-sig-monitoring |
Signed-off-by: João Vilaça <jvilaca@redhat.com>
23bdbff
to
44b3f54
Compare
/test pull-kubevirt-e2e-k8s-1.29-sig-monitoring |
/lgtm |
@@ -31,6 +30,7 @@ import ( | |||
"kubevirt.io/client-go/log" | |||
|
|||
"kubevirt.io/kubevirt/pkg/controller" | |||
metrics "kubevirt.io/kubevirt/pkg/monitoring/metrics/virt-controller" |
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.
nit: I think we can remove the empty lines (line 25, 27, 31) since all is kubevirt.io
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.
nice catch
although "kubevirt.io/client-go/...
imports are usually separated, but yes, a few others out of place
anyway I think that is not very related to this PR, maybe could be done in a separate one
by you maybe :D
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.
/lgtm
/approve |
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.
@machadovilaca @sradco Hi. To me it looks like it will be more accurate to unit test the virt_controller
package you've created in the metrics directory, because currently each controller tests these metrics in its own suite (hopefully).
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: enp0s3, sradco 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 |
Required labels detected, running phase 2 presubmits: |
/retest-required |
3 similar comments
/retest-required |
/retest-required |
/retest-required |
What this PR does
Before this PR:
kubevirt_vmi_number_of_outdated was not refactored with the rest of the metrics
After this PR:
kubevirt_vmi_number_of_outdated is also refactored
Fixes #
jira-ticket: https://issues.redhat.com/browse/CNV-39013
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note