Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-88

Set docker buildargs from configmap+secret keys [builds]

    XMLWordPrintable

Details

    • Story
    • Status: To Do
    • Undefined
    • Resolution: Unresolved
    • None
    • None
    • builds-classic
    • 5
    • Groomed Backlog

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            openshift_jira_bot OpenShift Jira Bot
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: