mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
agent: Fix agent generate-config to accept namespace (#21297)
This commit is contained in:
committed by
GitHub
parent
8b30657ddc
commit
3908ec9dc4
3
changelog/21297.txt
Normal file
3
changelog/21297.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
agent: Fix agent generate-config to accept -namespace, VAULT_NAMESPACE, and other client-modifying flags.
|
||||
```
|
||||
@@ -87,7 +87,8 @@ Usage: vault agent generate-config [options] [path/to/config.hcl]
|
||||
}
|
||||
|
||||
func (c *AgentGenerateConfigCommand) Flags() *FlagSets {
|
||||
set := NewFlagSets(c.UI)
|
||||
// Include client-modifying flags (-address, -namespace, etc.)
|
||||
set := c.flagSet(FlagSetHTTP)
|
||||
|
||||
// Common Options
|
||||
f := set.NewFlagSet("Command Options")
|
||||
|
||||
@@ -49,6 +49,7 @@ Generate an agent configuration file which will reference `secret/foo`:
|
||||
$ vault agent generate-config \
|
||||
-type="env-template" \
|
||||
-exec="./my-app arg1 arg2" \
|
||||
-namespace="my/ns/" \
|
||||
-path="secret/foo" \
|
||||
my-config.hcl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user