- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsRelaxedEnvVarName (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 16:08:43 UTC 2024 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go
for _, val := range goodValues { if msgs := IsRelaxedEnvVarName(val); len(msgs) != 0 { t.Errorf("expected true for '%s': %v", val, msgs) } } badValues := []string{ "", "=", "a=", "1=a", "a=b", "#%=&&", string(rune(1)) + "abc", string(rune(130)) + "abc", "Ç ç", "Ä ä", "Ñ ñ", "Ø ø", } for _, val := range badValues { if msgs := IsRelaxedEnvVarName(val); len(msgs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 04:51:54 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/api/pod/util.go
// We will let the feature gate decide whether to use relaxed rules. if oldPodEnvVarNames.Len() == 0 { return false } if len(validation.IsEnvVarName(name)) == 0 || len(validation.IsRelaxedEnvVarName(name)) != 0 { // It's either a valid name by strict rules or an invalid name under relaxed rules. // Either way, we'll use strict rules to validate. return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
if len(ev.Name) == 0 { allErrs = append(allErrs, field.Required(idxPath.Child("name"), "")) } else { if opts.AllowRelaxedEnvironmentVariableValidation { for _, msg := range validation.IsRelaxedEnvVarName(ev.Name) { allErrs = append(allErrs, field.Invalid(idxPath.Child("name"), ev.Name, msg)) } } else { for _, msg := range validation.IsEnvVarName(ev.Name) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (1)