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:
Daniel J Walsh
2023-07-09 07:26:09 -04:00
parent 5d706eb027
commit efefd8cf5b
9 changed files with 55 additions and 3 deletions

View File

@ -40,6 +40,12 @@ Print usage statement.
Add label to secret. These labels can be viewed in podman secrete inspect or ls.
#### **--replace**=*false*
If existing secret with the same name already exists, update the secret.
The `--replace` option does not change secrets within existing containers, only newly created containers.
The default is **false**.
## EXAMPLES
```