mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Add --replace flag to podman secret create
Users may want to replace the secret used within containers, without destroying the secret and recreating it. Partial fix for https://github.com/containers/podman/issues/18667 Make sure podman --remote secret inspect and podman secret inspect return the same error message. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -55,6 +55,8 @@ func init() {
|
||||
envFlagName := "env"
|
||||
flags.BoolVar(&env, envFlagName, false, "Read secret data from environment variable")
|
||||
|
||||
flags.BoolVar(&createOpts.Replace, "replace", false, "If a secret with the same name exists, replace it")
|
||||
|
||||
labelFlagName := "label"
|
||||
flags.StringArrayVarP(&labels, labelFlagName, "l", nil, "Specify labels on the secret")
|
||||
_ = createCmd.RegisterFlagCompletionFunc(labelFlagName, completion.AutocompleteNone)
|
||||
|
Reference in New Issue
Block a user