Commit 1ff64981 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #48047 from yan234280533/modify_grammar_1

Automatic merge from submit-queue modify the meassage in kubectl secret command when the envFile path is not an file path What this PR does / why we need it: We found that the error message of kubectl secret command when the the envFile path is not an file path is inaccurate and the style is different with which in kubectl configmap command. We modified “must be a file” to "env secret file cannot be a directory" Special notes for your reviewer: None
parents 5d213905 e85d561d
......@@ -217,7 +217,7 @@ func handleFromEnvFileSource(secret *api.Secret, envFileSource string) error {
}
}
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 {
......
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