Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-60905

Operator metrics service does not match operator pods

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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

              Unassigned Unassigned
              afri@afri.cz Petr Muller
              None
              None
              Jia Liu Jia Liu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: