mirror of https://github.com/docker/cli.git
support custom paths for secrets
This adds support to specify custom container paths for secrets. Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
eb366ae039
commit
08097edc78
|
@ -4,7 +4,6 @@ import (
|
||||||
"encoding/csv"
|
"encoding/csv"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -53,10 +52,6 @@ func (o *SecretOpt) Set(value string) error {
|
||||||
case "source", "src":
|
case "source", "src":
|
||||||
options.SecretName = value
|
options.SecretName = value
|
||||||
case "target":
|
case "target":
|
||||||
tDir, _ := filepath.Split(value)
|
|
||||||
if tDir != "" {
|
|
||||||
return fmt.Errorf("target must not be a path")
|
|
||||||
}
|
|
||||||
options.File.Name = value
|
options.File.Name = value
|
||||||
case "uid":
|
case "uid":
|
||||||
options.File.UID = value
|
options.File.UID = value
|
||||||
|
|
Loading…
Reference in New Issue