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

Console operator does not log changes in deployment annotations when managed cluster configmap resource version changes

    XMLWordPrintable

Details

    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      Need to add managedClusterConfigMapResourceVersionAnnotation into resourceAnnotations list: https://github.com/openshift/console-operator/blob/master/pkg/console/subresource/deployment/deployment.go#L42~L53
      so that when "console.openshift.io/managed-cluster-config-version" annotation changed, 'LogDeploymentAnnotationChanges' will log the version change info 

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

      4.13

      How reproducible:

      Always

      Steps to Reproduce:

      1. Configure a multicluster environment with at least one managed cluster
      2. Increase the console operator log level to Debug
      3. Import one more cluster so that the managed cluster configmap is updated and the resource version changes
      4. Check the console operator logs for the managed cluster configmap resource version change.
      

      Actual results:

      No change is logged for the managed cluster configmap resource version

      Expected results:

      Resource version change should be logged: "deployment annotation[console.openshift.io/managed-cluster-config-version] has changed from: <old-veraion> to <new version>"

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              jhadvig@redhat.com Jakub Hadvig
              rh-ee-jonjacks Jon Jackson
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: