-
Task
-
Resolution: Obsolete
-
Normal
-
None
-
None
-
None
-
None
-
True
-
-
False
-
-
We tried exposing prometheus data for swatch-metrics with this PR, but Clowder was failing reconciliation because the Deployment labels are immutable.
{"level":"error","ts":1705692365.384922,"msg":"Reconciler error","controller":"clowdapp","controllerGroup":"cloud.redhat.com","controllerKind":"ClowdApp","ClowdApp":{"name":"swatch-metrics-rhel","namespace":"rhsm-stage"},"namespace":"rhsm-stage","name":"swatch-metrics-rhel","reconcileID":"23c6d526-fddf-41d0-abe9-d41f631f087c","error":"error updating resource Deployment swatch-metrics-rhel-service: Deployment.apps \"swatch-metrics-rhel-service\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"swatch-me…
This slack thread has conversation on it that came to the conclusion we should define labels as `podSpec.metadata.labels`. Clowder needs an update first to support this.
Done Criteria:
- Add prometheus: quarkus as a podSpec.metadata.labels to the swatch-metric and swatch-metric-rhel service definitions
- Don't add labels to the job definitions
- Don't update the top level ClowdApp prometheus: rhsm label
- Pod details should have prometheus: quarkus label instead of prometheus: rhsm
oc get pods -l app=swatch-metrics-rhel -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.labels}{"\n"}{end}'
oc get pods -l app=swatch-metrics -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.labels}{"\n"}{end}'
- is blocked by
-
RHCLOUD-30608 Support defining podSpec.metadata.labels in ClowdApp definitions
-
- Closed
-