Description of problem:
After upgrading to OCP 4.16, the push secret *to an external container registry*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: Specify the secret used for pushing the container image in the BuildConfig
Prerequisites (if any, like setup, operators/versions):
OpenShift 4.16
Steps to Reproduce
- Create a buildconfig that pushes to an external container registry, such as quay.io.
- Link the push secret to builder SA using the oc command line
- Do not specify the push secret explicitly in buildconfig yaml
- 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):