* Previously, the documentation and `oc explain` help text did not convey that the `buildArgs` field in the `BuildConfig` object does not support the `valueFrom` field of its underlying Kubernetes `EnvVar` type. As a result, users believed it was supported and tried to use it. The current release updates the documentation and help text, so it is more apparent that the `BuildConfig` object's `buildArgs` field does not support the `valueFrom` field.
Created attachment 1779380[details]
build pod and log
Description of problem:
Version-Release number of selected component (if applicable):
oc --context build01 get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.7.9 True False 4d15h Cluster version is 4.7.9
How reproducible: Always
Steps to Reproduce:
$ oc new-project hongkliu-test
$ oc create is pipeline
$ oc create secret generic build-credentials --from-literal=password=123 -n hongkliu-test
$ oc apply -f test-image.build.yaml
Actual results:
STEP 6: RUN echo -n "$user=$password=" > /tmp/password.txt
STEP 7: RUN base64 /tmp/password.txt
amFjaz09
echo amFjaz09 | base64 -d
jack==%
Expected results:
The password 123 should be passed to the build.
Additional info:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2021:2438
Created attachment 1779380 [details] build pod and log Description of problem: Version-Release number of selected component (if applicable): oc --context build01 get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.7.9 True False 4d15h Cluster version is 4.7.9 How reproducible: Always Steps to Reproduce: $ oc new-project hongkliu-test $ oc create is pipeline $ oc create secret generic build-credentials --from-literal=password=123 -n hongkliu-test $ oc apply -f test-image.build.yaml Actual results: STEP 6: RUN echo -n "$user=$password=" > /tmp/password.txt STEP 7: RUN base64 /tmp/password.txt amFjaz09 echo amFjaz09 | base64 -d jack==% Expected results: The password 123 should be passed to the build. Additional info: