Commit e85d561d authored by devinyan's avatar devinyan

modify the meassage in kubectl secret command when the envFile path is not an file path

parent 53a66020
...@@ -217,7 +217,7 @@ func handleFromEnvFileSource(secret *api.Secret, envFileSource string) error { ...@@ -217,7 +217,7 @@ func handleFromEnvFileSource(secret *api.Secret, envFileSource string) error {
} }
} }
if info.IsDir() { if info.IsDir() {
return fmt.Errorf("must be a file") return fmt.Errorf("env secret file cannot be a directory")
} }
return addFromEnvFile(envFileSource, func(key, value string) error { return addFromEnvFile(envFileSource, func(key, value string) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment