Bug 1956826

Summary: buildArgs does not work when the value is taken from a secret
Product: OpenShift Container Platform Reporter: Hongkai Liu <hongkliu>
Component: BuildAssignee: Gabe Montero <gmontero>
Status: CLOSED ERRATA QA Contact: Jitendar Singh <jitsingh>
Severity: medium Docs Contact: Rolfe Dlugy-Hegwer <rdlugyhe>
Priority: unspecified    
Version: 4.7CC: adam.kaplan, aos-bugs, gmontero, vkochuku, xiuwang
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* 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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:06:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build pod and log none

Description Hongkai Liu 2021-05-04 13:45:25 UTC
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:

Comment 11 XiuJuan Wang 2021-06-23 06:28:38 UTC
Verified this bug before pr merged and 4.8.0-0.nightly-2021-06-19-005119 build.

Comment 15 errata-xmlrpc 2021-07-27 23:06:09 UTC
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