Add namespace argument to the job verification help text (#16243)
This commit is contained in:
parent
ed31e0a5f5
commit
1f9d11feff
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
cli: `job plan` help text for running the plan now includes the `-namespace` flag
|
||||
```
|
|
@ -262,6 +262,10 @@ func (c *JobPlanCommand) Run(args []string) int {
|
|||
runArgs.WriteString(fmt.Sprintf("-var-file=%q ", varFile))
|
||||
}
|
||||
|
||||
if c.namespace != "" {
|
||||
runArgs.WriteString(fmt.Sprintf("-namespace=%q ", c.namespace))
|
||||
}
|
||||
|
||||
exitCode := c.outputPlannedJob(job, resp, diff, verbose)
|
||||
c.Ui.Output(c.Colorize().Color(formatJobModifyIndex(resp.JobModifyIndex, runArgs.String(), path)))
|
||||
return exitCode
|
||||
|
|
Loading…
Reference in New Issue