-
Story
-
Resolution: Won't Do
-
Undefined
-
None
-
None
-
None
-
5
User Story
As a user I want to define my buildarg values based on the value of keys in a configmap or secret, similar to how I can define env vars based on those things.
Acceptance criteria
- Users can set Dockerfile build args from a ConfigMap key value
- Users can set Dockerfile build args from a Secret key value
Notes
See https://github.com/openshift/origin/issues/19745 for a proposed api.
Changes would be required as follows:
1. Update the BuildConfig API to add the `valueFrom` option to Dockerfile build args - see github.com/openshift/api
2. Update openshift-apiserver to accept the new API - see github.com/openshift/openshift-apiserver
3. Update openshift-controller-manager to propagate the build args to the build pod - see github.com/openshift/openshift-controller-manager
4. Update the build pod to add the args to the build command invocation - see github.com/openshift/builder