fix(cli): allow specifying empty provisioner tag set with --provisioner-tag="-" (#18205)

Relates to https://github.com/coder/coder/issues/17818

Note: due to limitations in `cobra/serpent` I ended up having to use `-`
to signify absence of provisioner tags. This value is not a valid
key-value pair and thus not a valid tag.
This commit is contained in:
Cian Johnston
2025-06-03 16:55:34 +01:00
committed by GitHub
parent b0d23ca31b
commit da9a313d0c
4 changed files with 117 additions and 19 deletions

View File

@ -41,7 +41,7 @@ Alias of --variable.
|------|---------------------------|
| Type | <code>string-array</code> |
Specify a set of tags to target provisioner daemons.
Specify a set of tags to target provisioner daemons. If you do not specify any tags, the tags from the active template version will be reused, if available. To remove existing tags, use --provisioner-tag="-".
### --name