Oc new-app: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
=Dry Run= | =Dry Run= | ||
-o yaml|json | -o yaml|json | ||
=Options= | =Options= |
Revision as of 02:34, 26 November 2017
Internal
Overview
new-app is a command that generates a JSON/YAML configuration. As the result of executing the command, the "app=<app-name>" label is set on all objects created as the result of the command.
For more details see:
Dry Run
-o yaml|json
Options
-l, --labels
To set a single label on all objects of the new application:
oc new-app -l 'key1=value1' ...
To set multiple labels:
oc new-app -l 'key1=value1,key2=value2,key3=value3' ...
Do not use spaces within the -l '...'
Note that using "app=..." label will overwrite the default app label value set by the new-app command. The command line value takes precedence.