Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for IsUnspecified (0.18 sec)

  1. cmd/kube-proxy/app/server.go

    	if host, _, _ := net.SplitHostPort(bindAddress); host != "" {
    		ip := netutils.ParseIPSloppy(host)
    		if ip != nil && netutils.IPFamilyOf(ip) == wrongFamily && !ip.IsUnspecified() {
    			return true
    		}
    	}
    	return false
    }
    
    // createClient creates a kube client from the given config and masterOverride.
    // TODO remove masterOverride when CLI flags are removed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status.go

    	}
    	if nodeIP.IsMulticast() {
    		return fmt.Errorf("nodeIP can't be a multicast address")
    	}
    	if nodeIP.IsLinkLocalUnicast() {
    		return fmt.Errorf("nodeIP can't be a link-local unicast address")
    	}
    	if nodeIP.IsUnspecified() {
    		return fmt.Errorf("nodeIP can't be an all zeros address")
    	}
    
    	addrs, err := net.InterfaceAddrs()
    	if err != nil {
    		return err
    	}
    	for _, addr := range addrs {
    		var ip net.IP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    			expectEsimatedCost: func(c checker.CostEstimate) checker.CostEstimate { return c },
    			expectRuntimeCost:  func(c uint64) uint64 { return c },
    		},
    		{
    			ops: []string{".family()", ".isUnspecified()", ".isLoopback()", ".isLinkLocalMulticast()", ".isLinkLocalUnicast()", ".isGlobalUnicast()"},
    			// For most other operations, the cost is expected to be the base + 1.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. pkg/proxy/winkernel/proxier.go

    		if err != nil {
    			return nil, err
    		}
    		sourceVip = config.SourceVip
    		if len(sourceVip) == 0 {
    			return nil, fmt.Errorf("source-vip flag not set")
    		}
    
    		if nodeIP.IsUnspecified() {
    			// attempt to get the correct ip address
    			klog.V(2).InfoS("Node ip was unspecified, attempting to find node ip")
    			nodeIP, err = apiutil.ResolveBindAddress(nodeIP)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			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()`,
    				`ip("192.168.0.1").isGlobalUnicast()`,
    				`type(ip("192.168.0.1")) == net.IP`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  6. pkg/apis/core/validation/validation.go

    	allErrs := field.ErrorList{}
    	ip := netutils.ParseIPSloppy(ipAddress)
    	if ip == nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "must be a valid IP address"))
    		return allErrs
    	}
    	if ip.IsUnspecified() {
    		allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, fmt.Sprintf("may not be unspecified (%v)", ipAddress)))
    	}
    	if ip.IsLoopback() {
    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