Uploaded image for project: 'OpenShift CFE'
  1. OpenShift CFE
  2. CFE-1129

[Image registry operator] Support reconciliation of tags on day2 updates

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • BU Product Work
    • 5
    • False
    • None
    • False
    • 5
    • CFE Sprint 260

      Support reconciliation of tags on day2 updates from Infrastructure.status field.

      Acceptance criteria
      1. Successful updates on tag information updates.
      2. Conflict error handling.
      3. Unit testcases.
      4. e2e testcases.

            [CFE-1129] [Image registry operator] Support reconciliation of tags on day2 updates

            Wen Wang added a comment -

            Wen Wang added a comment - Added cases for it: https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-76876

            Wen Wang added a comment - - edited

            Tested in hcp cluster, it works:

             

            [root@wewang-thinkpadt14sgen2i ~]# oc get hostedcluster hypershift-ci-315647 -n clusters
            NAME                   VERSION                                                KUBECONFIG                              PROGRESS    AVAILABLE   PROGRESSING   MESSAGE
            hypershift-ci-315647   4.18.0-0.test-2024-10-10-065652-ci-ln-cdv7qqt-latest   hypershift-ci-315647-admin-kubeconfig   Completed   True        False         The hosted control plane is available
            [root@wewang-thinkpadt14sgen2i ~]# oc get infrastructure/cluster -ojsonpath='{.status.platformStatus.aws.resourceTags[*]}' | jq 
            {   "key": "Environment",   "value": "Production" } {   "key": "Owner",   "value": "DevOpsTeam" } {   "key": "Project",   "value": "OpenShift-Cluster" }
            [root@wewang-thinkpadt14sgen2i ~]# aws s3api get-bucket-tagging --bucket wewang-hypershift3-z2p9l-image-registry-us-east-2-wwphcujvcrov
            {
                "TagSet": [
                   
            {             "Key": "Project",             "Value": "OpenShift-Cluster"         }
            ,
                   
            {             "Key": "kubernetes.io/cluster/wewang-hypershift3-z2p9l",             "Value": "owned"         }
            ,
                   
            {             "Key": "Environment",             "Value": "Production"         }
            ,
                   
            {             "Key": "Owner",             "Value": "DevOpsTeam"         }
            ,
                   
            {             "Key": "Name",             "Value": "wewang-hypershift3-z2p9l-image-registry"         }
                ]
            }
            

             

            Wen Wang added a comment - - edited Tested in hcp cluster, it works:   [root@wewang-thinkpadt14sgen2i ~]# oc get hostedcluster hypershift-ci-315647 -n clusters NAME                   VERSION                                                KUBECONFIG                              PROGRESS    AVAILABLE   PROGRESSING   MESSAGE hypershift-ci-315647   4.18.0-0.test-2024-10-10-065652-ci-ln-cdv7qqt-latest   hypershift-ci-315647-admin-kubeconfig   Completed   True        False         The hosted control plane is available [root@wewang-thinkpadt14sgen2i ~]# oc get infrastructure/cluster -ojsonpath= '{.status.platformStatus.aws.resourceTags[*]}' | jq  {   "key" : "Environment" ,   "value" : "Production" } {   "key" : "Owner" ,   "value" : "DevOpsTeam" } {   "key" : "Project" ,   "value" : "OpenShift-Cluster" } [root@wewang-thinkpadt14sgen2i ~]# aws s3api get-bucket-tagging --bucket wewang-hypershift3-z2p9l-image-registry-us-east-2-wwphcujvcrov {     "TagSet" : [         {             "Key" : "Project" ,             "Value" : "OpenShift-Cluster"         } ,         {             "Key" : "kubernetes.io/cluster/wewang-hypershift3-z2p9l" ,             "Value" : "owned"         } ,         {             "Key" : "Environment" ,             "Value" : "Production"         } ,         {             "Key" : "Owner" ,             "Value" : "DevOpsTeam"         } ,         {             "Key" : "Name" ,             "Value" : "wewang-hypershift3-z2p9l-image-registry"         }     ] }  

              rh-ee-aagnihot Anirudh Agnihotri
              tgeer@redhat.com Trilok Geer
              Wen Wang Wen Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: