Skip to content

Commit 695c0a5

Browse files
committed
Note that --env flag doesn't apply to templates
1 parent 1b04cb2 commit 695c0a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/man/oc/oc-new-app.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You can use 'oc status' to check the progress.
6464

6565
.PP
6666
\fB\-e\fP, \fB\-\-env\fP=[]
67-
Specify key value pairs of environment variables to set into each container.
67+
Specify key\-value pairs of environment variables to set into each container. This doesn't apply to objects created from a template, use parameters instead.
6868

6969
.PP
7070
\fB\-f\fP, \fB\-\-file\fP=[]

docs/man/openshift/openshift-cli-new-app.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You can use 'openshift cli status' to check the progress.
6464

6565
.PP
6666
\fB\-e\fP, \fB\-\-env\fP=[]
67-
Specify key value pairs of environment variables to set into each container.
67+
Specify key\-value pairs of environment variables to set into each container. This doesn't apply to objects created from a template, use parameters instead.
6868

6969
.PP
7070
\fB\-f\fP, \fB\-\-file\fP=[]

pkg/cmd/cli/cmd/newapp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func NewCmdNewApplication(commandName string, f *clientcmd.Factory, out io.Write
164164
cmd.MarkFlagFilename("file", "yaml", "yml", "json")
165165
cmd.Flags().StringSliceVarP(&config.TemplateParameters, "param", "p", config.TemplateParameters, "Specify a list of key value pairs (e.g., -p FOO=BAR,BAR=FOO) to set/override parameter values in the template.")
166166
cmd.Flags().StringSliceVar(&config.Groups, "group", config.Groups, "Indicate components that should be grouped together as <comp1>+<comp2>.")
167-
cmd.Flags().StringSliceVarP(&config.Environment, "env", "e", config.Environment, "Specify key value pairs of environment variables to set into each container.")
167+
cmd.Flags().StringSliceVarP(&config.Environment, "env", "e", config.Environment, "Specify key-value pairs of environment variables to set into each container. This doesn't apply to objects created from a template, use parameters instead.")
168168
cmd.Flags().StringVar(&config.Name, "name", "", "Set name to use for generated application artifacts")
169169
cmd.Flags().StringVar(&config.Strategy, "strategy", "", "Specify the build strategy to use if you don't want to detect (docker|source).")
170170
cmd.Flags().StringP("labels", "l", "", "Label to set in all resources for this application.")

0 commit comments

Comments
 (0)