From 08097edc7849e1543d723a3c382536909b58aa4f Mon Sep 17 00:00:00 2001 From: Evan Hazlett Date: Tue, 11 Apr 2017 13:34:19 -0400 Subject: [PATCH] support custom paths for secrets This adds support to specify custom container paths for secrets. Signed-off-by: Evan Hazlett --- opts/secret.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/opts/secret.go b/opts/secret.go index 56ed29eb5b..a1fde54d91 100644 --- a/opts/secret.go +++ b/opts/secret.go @@ -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