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

kube-compare reports differences for SriovOperatorConfig CR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18
    • GitOps ZTP
    • None
    • Low
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      kube-compare reports the following differences for SriovOperatorConfig CR  as these are the default values and don't show up in the CR spec.

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

          4.18

      How reproducible:

          100%

      Steps to Reproduce:

          1. Run kube compare against a 4.18 SNO with DU profile using SriovOperatorConfigForSNO.yaml PGT file
           
          

      Actual results:

      Differences found in CR: sriovnetwork.openshift.io/v1_SriovOperatorConfig_openshift-sriov-network-operator_default, Compared To Reference CR: required/sriov-operator/SriovOperatorConfigForSNO.yaml
      diff -u -N /tmp/MERGED-1249543620/sriovnetwork-openshift-io-v1_sriovoperatorconfig_openshift-sriov-network-operator_default /tmp/LIVE-2063834543/sriovnetwork-openshift-io-v1_sriovoperatorconfig_openshift-sriov-network-operator_default
      --- /tmp/MERGED-1249543620/sriovnetwork-openshift-io-v1_sriovoperatorconfig_openshift-sriov-network-operator_default	2024-11-05 09:00:47.247710086 +0000
      +++ /tmp/LIVE-2063834543/sriovnetwork-openshift-io-v1_sriovoperatorconfig_openshift-sriov-network-operator_default	2024-11-05 09:00:47.248710124 +0000
      @@ -7,6 +7,3 @@
         configDaemonNodeSelector:
           node-role.kubernetes.io/master: ""
         disableDrain: true
      -  enableInjector: false
      -  enableOperatorWebhook: false
      -  logLevel: 0    

      Expected results:

      No differences.    

      Additional info:

          This is how the CR shows on the cluster:
      
      apiVersion: v1
      items:
      - apiVersion: sriovnetwork.openshift.io/v1
        kind: SriovOperatorConfig
        metadata:
          creationTimestamp: "2024-11-04T11:27:28Z"
          finalizers:
          - operatorconfig.finalizers.sriovnetwork.openshift.io
          generation: 2
          name: default
          namespace: openshift-sriov-network-operator
          resourceVersion: "15702"
          uid: 0f590f50-1891-46ff-9879-cc99ecf97792
        spec:
          configDaemonNodeSelector:
            node-role.kubernetes.io/master: ""
          disableDrain: true
      kind: List
      metadata:
        resourceVersion: ""

              jramsay1@redhat.com Jim Ramsay
              mcornea@redhat.com Marius Cornea
              Yang Liu Yang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: