Populate environment variables from OpenShift secret with Docker build strategy
问题 I would like to use on opaque OpenShift secret inside a build pod as environment variable. The secret contains three key-value pairs, so they should become available as three environment variables. (This is for OpenShift 3.9). I have found a documented example for OpenShift's Source build strategy ( sourceStrategy ), but need this in the context of a build configuration with Docker build strategy ( dockerStrategy ). oc explain suggests that extraction of secrets into environment variables