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

ImagePullSecret getting duplicated when editing DeploymentConfig in Form View

XMLWordPrintable

    • Low
    • None
    • 1
    • ODC Sprint 3266, ODC Sprint 3267
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when you used the *Form View* to edit `Deployment` or `DeploymentConfig` API objects on the {product-title} web console, duplicate `ImagePullSecrets` parameters existed in the YAML configuration for either object. With this release, a fix ensures that duplicate `ImagePullSecrets` parameters do not get automatically added for either object. (link:https://issues.redhat.com/browse/OCPBUGS-45948[*OCPBUGS-45948*])
      Show
      * Previously, when you used the *Form View* to edit `Deployment` or `DeploymentConfig` API objects on the {product-title} web console, duplicate `ImagePullSecrets` parameters existed in the YAML configuration for either object. With this release, a fix ensures that duplicate `ImagePullSecrets` parameters do not get automatically added for either object. (link: https://issues.redhat.com/browse/OCPBUGS-45948 [* OCPBUGS-45948 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-45227. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-41974. The following is the description of the original issue:

      Description of problem:

      If a user updates a deployment config using Form view instead of yaml, the image pull secret is getting duplicated.
      ~~~
      $ oc get pods ubi9-2-deploy 
              message: |
                error: couldn't assign source annotation to deployment ubi9-2: failed to create manager for existing fields: failed to convert new object (testdc-dup-sec/ubi9-2; /v1, Kind=ReplicationController) to smd typed: .spec.template.spec.imagePullSecrets: duplicate entries for key [name="test-pull-secret"]
              reason: Error
      ~~~
      

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

          4.13.z,4.14.z,4.15.z

      How reproducible:

          

      Steps to Reproduce:

          1. Edit DeploymentConfig in Form view
          2. Update image version
          3. Save     

      Actual results:

          

      Expected results:

          

      Additional info:

          Issue is not reproducible on OCP 4.16.7+ version.

              rh-ee-lprabhu Lokananda Prabhu
              openshift-crt-jira-prow OpenShift Prow Bot
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: