Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-28185

[2187533] CNV infrastructure resources are missing required labels

XMLWordPrintable

    • CNV Infra 238, CNV Infra 239, CNV Infra 240, CNV Infra 245/246
    • Moderate
    • No

      Following infrastructure resources are missing "app.kubernetes.io/managed-by", "app.kubernetes.io/version", "app.kubernetes.io/component", "app.kubernetes.io/part-of" metadata.labels.

      List of resources:

      • Secrets: virt-template-validator-certs, ssp-operator-dockercfg-, ssp-operator-service-cert, ssp-operator-token-, template-validator-dockercfg, template-validator-token, vm-console-proxy-cert, tekton-task
      • Roles: ssp-operator-service-cert, kubevirt-hyperconverged-operator.v4.13.0-ssp-operator-
      • Rolebindings: kubevirt-hyperconverged-operator.v4.13.0-ssp-operator{-}, ssp-operator-service-cert
      • ServiceAccounts: ssp-operator, template-validator
      • Endpoints: ssp-operator-service, ssp-operator-metrics
      • Endpointslice: ssp-operator-service-, ssp-operator-metrics-
      • Services: ssp-operator-service, ssp-operator-metrics
      • ConfigMaps: *.kubevirt.io
      • Lease: *.kubevirt.io (managed by controller-runtime)
      • Pods: virt-template-validator-
      • ReplicaSet: virt-template-validator-
      • PodMetrics:  virt-template-validator-

      Note: Those marked as are OLM managed resources and/or should be skipped in the QE tests.

      Version-Release number of selected component (if applicable):

      4.13.0

      How reproducible:

      100%

      Steps to Reproduce:

      1. List all resources installed in openshift-cnv namespace by HyperConverged Operator (HCO)
      2. Describe one of the resources to check if required labels listed

      Actual results:

      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get serviceaccount ssp-operator -n openshift-cnv -o json | jq ".metadata.labels"

      { "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": "" }

      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get service ssp-operator-metrics -n openshift-cnv -o json | jq ".metadata.labels"

      { "prometheus.ssp.kubevirt.io": "true" }

      Expected results:

      All resources should have "app.kubernetes.io/managed-by", "app.kubernetes.io/version", "app.kubernetes.io/component", "app.kubernetes.io/part-of" in metadata.labels.

      Additional info:

      Background information: https://issues.redhat.com/browse/CNV-9097

              boukhano@redhat.com Ben Oukhanov
              rhn-support-dbasunag Debarati Basu-Nag
              Roni Kishner Roni Kishner
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: