Closed akrejcir closed 5 months ago
/cc @0xFelix @jcanocan
Failed conditions
3 Security Hotspots
C Security Rating on New Code (required ≥ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
/retest-required
[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
Manual cherry-pick of: https://github.com/kubevirt/ssp-operator/pull/950 It was needed, because metrics code was refactored in
main
.What this PR does / why we need it: The metric "kubevirt_ssp_common_templates_restored_total" should be increased if user changes a template and the operator restores it back to what it should be.
If the SSP CR is changed, for example one of the labels that are propagated to the templates are changed, then the reconciliation should not increase the metric.
Which issue(s) this PR fixes: Fixes: https://issues.redhat.com/browse/CNV-39928
Release note: