OpenShift envFrom oc command

5/13/2020

Is there a way to apply entire configmap with envFrom using an oc command? Today, the only options I've found are manually editing the deployment config yaml or selecting the configmap under deployment config > environment. I've also tried "oc set env --from=configmap/dev-configmap dc/devapplication", but that sets each value within my configmap as valueFrom in the deployment config rather than just applying the configmap.

      envFrom:
        - configMapRef:
            name: dev-configmap
-- n00bi3
kubernetes
openshift

0 Answers