Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsEnvVarName (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    var envVarNameRegexp = regexp.MustCompile("^" + envVarNameFmt + "$")
    
    // IsEnvVarName tests if a string is a valid environment variable name.
    func IsEnvVarName(value string) []string {
    	var errs []string
    	if !envVarNameRegexp.MatchString(value) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/api/pod/util.go

    	// or the old pod does not exist in the env.
    	// 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)
  3. pkg/apis/core/validation/validation.go

    				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) {
    					allErrs = append(allErrs, field.Invalid(idxPath.Child("name"), ev.Name, msg))
    				}
    			}
    		}
    		allErrs = append(allErrs, validateEnvVarValueFrom(ev, idxPath.Child("valueFrom"), opts)...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top