Oc process: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
Generate a configuration from a template. | Generate a configuration from a template. Does NOT create the corresponding objects. | ||
<tt>oc process</tt> examines a template, generates any desired parameters, and outputs the JSON configuration. | <tt>oc process</tt> examines a template, generates any desired parameters, and outputs the JSON configuration. | ||
The variable values can be overridden with "-v" | The variable values can be overridden with "-v" or "--param" | ||
oc process -f template-file.json -v SOME_PARAM=some_value | |||
oc process -f template-file.json -v SOME_PARAM=some_value | |||
oc process -f ./cicd-template.yaml --param DEV_PROJECT=dev --param STAGE_PROJECT=stage | |||
Also see [[OpenShift_Template_Operations#Parameter_that_Can_Be_Overridden_in_.27generate.27_Phase|Templates - Parameter that Can Be Overridden in 'generate' Phase]]. |
Latest revision as of 01:35, 25 November 2017
Internal
Overview
Generate a configuration from a template. Does NOT create the corresponding objects.
oc process examines a template, generates any desired parameters, and outputs the JSON configuration.
The variable values can be overridden with "-v" or "--param"
oc process -f template-file.json -v SOME_PARAM=some_value
oc process -f ./cicd-template.yaml --param DEV_PROJECT=dev --param STAGE_PROJECT=stage
Also see Templates - Parameter that Can Be Overridden in 'generate' Phase.