Setting buildArgs from configmap+secret keys in buildConfig not working

Solution Verified - Updated -

Issue

  • Build arguments in buildConfig with reference to configmap and secret not taking effect while performing build mentioned.
  • Below is sample snippet of buildArgs configuration with referencing the secret value.
[..]
strategy:
  dockerStrategy:
    buildArgs:
      - name:
        valueFrom:
          secretKeyRef:
              key:
              name:
[..]

Environment

  • OpenShift Container Platform (OCP)
    • 3.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content