mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-21 15:17:59 +00:00
Add podman secret create -d as alias for --driver for Docker compatibility
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
f70c9cd78b
commit
d50ff4f512
3 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ func init() {
|
|||
|
||||
cfg := registry.PodmanConfig()
|
||||
|
||||
flags.StringVar(&createOpts.Driver, driverFlagName, cfg.Secrets.Driver, "Specify secret driver")
|
||||
flags.StringVarP(&createOpts.Driver, driverFlagName, "d", cfg.Secrets.Driver, "Specify secret driver")
|
||||
flags.StringToStringVar(&createOpts.DriverOpts, optsFlagName, cfg.Secrets.Opts, "Specify driver specific options")
|
||||
_ = createCmd.RegisterFlagCompletionFunc(driverFlagName, completion.AutocompleteNone)
|
||||
_ = createCmd.RegisterFlagCompletionFunc(optsFlagName, completion.AutocompleteNone)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Secrets will not be committed to an image with `podman commit`, and will not be
|
|||
|
||||
## OPTIONS
|
||||
|
||||
#### **--driver**=*driver*
|
||||
#### **--driver**, **-d**=*driver*
|
||||
|
||||
Specify the secret driver (default **file**, which is unencrypted).
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ var _ = Describe("Podman secret", func() {
|
|||
err := ioutil.WriteFile(secretFilePath, []byte("mysecret"), 0755)
|
||||
Expect(err).To(BeNil())
|
||||
|
||||
session := podmanTest.Podman([]string{"secret", "create", "--driver-opts", "opt1=val", "a", secretFilePath})
|
||||
session := podmanTest.Podman([]string{"secret", "create", "-d", "file", "--driver-opts", "opt1=val", "a", secretFilePath})
|
||||
session.WaitWithDefaultTimeout()
|
||||
secrID := session.OutputToString()
|
||||
Expect(session).Should(Exit(0))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue