Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for isIP (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			},
    			expectedCost: 7,
    		},
    		{name: "IP and CIDR",
    			obj:    objs("20", "200M"),
    			schema: schemas(stringType, stringType),
    			valid: []string{
    				`isIP("192.168.0.1")`,
    				`ip.isCanonical("127.0.0.1")`,
    				`ip("192.168.0.1").family() > 0`,
    				`ip("0.0.0.0").isUnspecified()`,
    				`ip("127.0.0.1").isLoopback()`,
    				`ip("224.0.0.1").isLinkLocalMulticast()`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    				for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) {
    					allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg))
    				}
    				if isIP := (netutils.ParseIPSloppy(ingress.Hostname) != nil); isIP {
    					allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address"))
    				}
    			}
    		}
    	}
    	return allErrs
    }
    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