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

Image registry pull secret not created if user-created pull secret matches pattern

XMLWordPrintable

    • No
    • 3
    • Builds Sprint #3, OSDOCS Sprint 262
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When creating a service account, if an ImagePullSecret is specified that matches the pattern '${serviceAccountName}-dockercfg-' then the openshift-controller-manager will not create a token or pull secret for that service account
      
          

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

      4.15.8
          

      How reproducible:

      Consistent
          

      Steps to Reproduce:

          1. oc create secret docker-registry foo-dockercfg-bar --docker-username=example --docker-password=example
          2. oc create -f - <<EOF
      kind: ServiceAccount
      apiVersion: v1
      metadata:
        name: foo
      imagePullSecrets:
      - name: foo-dockercfg-bar
      EOF
          3. oc get secrets,sa
          

      Actual results:

      Note that the default `kubernetes.io/dockercfg` and `kubernetes.io/service-account-token` are not created for that service account
          

      Expected results:

      in-cluster image registry pull secret generation works as expected
          

      Additional info:

      
          

              rhn-support-stevsmit Steven Smith
              cblecker.openshift Christoph Blecker
              XiuJuan Wang XiuJuan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: