-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.12.z
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Moderate
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
The operator is configured to expose metrics through a service, but the service selector does not match the operator pods because the labels differ.
Version-Release number of selected component (if applicable):
5.0.3
How reproducible:
Always
Steps to Reproduce:
$ oc get deployment -n updateservice-operator -o yaml | yq .spec.template.metadata.labels $ oc get service updateservice-operator-metrics -o yaml | yq .spec.selector
Actual results:
❯ oc get deployment updateservice-operator -o yaml | yq .spec.template.metadata.labels name: updateservice-operator ❯ oc get service updateservice-operator-metrics -o yaml | yq .spec.selector control-plane: updateservice-operator
Expected results:
Selectors should match
Additional info
Good candidate to be fixed alongside OCPBUGS-51196
- is related to
-
OCPBUGS-51196 Not set permissions to system:serviceaccount:openshift-monitoring:prometheus-k8s for scrapping the `openshift-update-service` namespace resources
-
- New
-