Add namespace argument to the job verification help text (#16243)

This commit is contained in:
Valentino 2023-03-02 22:42:14 +01:00 committed by GitHub
parent ed31e0a5f5
commit 1f9d11feff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

3
.changelog/16243.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
cli: `job plan` help text for running the plan now includes the `-namespace` flag
```

View File

@ -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