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