Skip to content

Commit 0407311

Browse files
HirazawaUik8s-publishing-bot
authored andcommitted
followup to allow special characters
Kubernetes-commit: 2867be47b3162109391b4b2ae4f70f43e4c8fb34
1 parent 25164f7 commit 0407311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/util/validation/validation.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ const envVarNameFmt = "[-._a-zA-Z][-._a-zA-Z0-9]*"
420420
const envVarNameFmtErrMsg string = "a valid environment variable name must consist of alphabetic characters, digits, '_', '-', or '.', and must not start with a digit"
421421

422422
// TODO(hirazawaui): Rename this when the RelaxedEnvironmentVariableValidation gate is removed.
423-
const relaxedEnvVarNameFmtErrMsg string = "a valid environment variable names must be printable ASCII characters other than '=' character"
423+
const relaxedEnvVarNameFmtErrMsg string = "a valid environment variable name must consist only of printable ASCII characters other than '='"
424424

425425
var envVarNameRegexp = regexp.MustCompile("^" + envVarNameFmt + "$")
426426

@@ -440,7 +440,7 @@ func IsRelaxedEnvVarName(value string) []string {
440440
var errs []string
441441

442442
if len(value) == 0 {
443-
errs = append(errs, "environment variable name"+EmptyError())
443+
errs = append(errs, "environment variable name "+EmptyError())
444444
}
445445

446446
for _, r := range value {

0 commit comments

Comments
 (0)