Oc process: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
<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"


<pre>
oc process -f template-file.json -v SOME_PARAM=some_value
oc process -f template-file.json -v SOME_PARAM=some_value
 
</pre>
oc process -f cicd-template.yaml --param DEV_PROJECT=dev --param STAGE_PROJECT=stage

Revision as of 18:44, 1 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