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

After upgrading to OCP 4.16 Builds fail, if push secret is not explicitly defined in BuildConfig

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.16
    • Build
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      After upgrading to OCP 4.16, the push secret has to be explicitly defined in the buildconfig yaml for it to succeed. The associated push secret with the builder Service Account is not selected automatically.

      Workaround

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1.  Create a buildconfig, and link the push secret to builder SA
      2.  Do not specify the push secret explicitly in buildconfig yaml
      3. The build fails to push the image with, with failure to connect to the registry

       

      Actual results:

      The secret associated with builder SA is not selected and has to be specified explicitly in buildconfig yaml for builds to succeed.

       

      Expected results:

      The correct push secret associated with builder SA should be selected automatically.{}

      Reproducibility (Always/Intermittent/Only Once):

      Always in OCP 4.16

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              rh-ee-sabiswas Sayan Biswas
              rhn-support-jyarora Jyotsana Arora
              Jyotsana Arora
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: