Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for dns1123Subdomain (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    	"dns1123Label": {
    		Name:         "DNS1123Label",
    		ValidateFunc: func(s string) []string { return apimachineryvalidation.NameIsDNSLabel(s, false) },
    		MaxRegexSize: 30,
    	},
    	"dns1123Subdomain": {
    		Name:         "DNS1123Subdomain",
    		ValidateFunc: func(s string) []string { return apimachineryvalidation.NameIsDNSSubdomain(s, false) },
    		MaxRegexSize: 60,
    	},
    	"dns1035Label": {
    		Name:         "DNS1035Label",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    		},
    		{
    			name:        "dns1123Subdomain",
    			expr:        `format.dns1123Subdomain().validate("contains a space")`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/names.go

    // <fqdn>/<resource-namespace>.<resource-name>.
    // The max length of a FQDN is 253 characters (DNS1123Subdomain max length)
    // The max length of a namespace name is 63 characters (DNS1123Label max length)
    // The max length of a resource name is 253 characters (DNS1123Subdomain max length)
    // We then add an additional 2 characters to account for the one '.' and one '/'.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	}{
    		{
    			name:                "format.named",
    			expr:                `format.named("dns1123subdomain")`,
    			expectEstimatedCost: checker.CostEstimate{Min: 1, Max: 1},
    			expectRuntimeCost:   1,
    		},
    		{
    			name: "format.dns1123Subdomain.validate",
    			expr: `format.named("dns1123Subdomain").value().validate("my-name")`,
    			// Estimated cost doesnt know value at runtime so it is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. pkg/apis/certificates/validation/validation_test.go

    			// <fqdn>/<resource-namespace>.<resource-name>.
    			// The max length of a FQDN is 253 characters (DNS1123Subdomain max length)
    			// The max length of a namespace name is 63 characters (DNS1123Label max length)
    			// The max length of a resource name is 253 characters (DNS1123Subdomain max length)
    			// We then add an additional 2 characters to account for the one '.' and one '/'.
    			csr: capi.CertificateSigningRequest{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  6. pkg/kubelet/envvars/envvars.go

    			}
    		}
    		// Docker-compatible vars.
    		result = append(result, makeLinkVariables(service)...)
    	}
    	return result
    }
    
    func makeEnvVariableName(str string) string {
    	// TODO: If we simplify to "all names are DNS1123Subdomains" this
    	// will need two tweaks:
    	//   1) Handle leading digits
    	//   2) Handle dots
    	return strings.ToUpper(strings.Replace(str, "-", "_", -1))
    }
    
    func makeLinkVariables(service *v1.Service) []v1.EnvVar {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 3.3K bytes
    - Viewed (0)
Back to top