Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validateTagKey (0.15 sec)

  1. pkg/config/labels/instance.go

    func IsWildcardDNS1123Label(value string) bool {
    	return len(value) <= DNS1123LabelMaxLength && wildcardPrefixRegexp.MatchString(value)
    }
    
    // validateTagKey checks that a string is valid as a Kubernetes label name.
    func validateTagKey(k string) error {
    	match := tagRegexp.FindStringSubmatch(k)
    	if match == nil {
    		return fmt.Errorf("invalid tag key: %q", k)
    	}
    
    	if len(match[1]) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 06:54:36 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top