Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/proxy/util/utils.go

    	return ipFamilyMap
    }
    
    // GetIPFamilyFromIP Returns the IP family of ipStr, or IPFamilyUnknown if ipStr can't be parsed as an IP
    func GetIPFamilyFromIP(ip net.IP) v1.IPFamily {
    	return convertToV1IPFamily(netutils.IPFamilyOf(ip))
    }
    
    // Convert netutils.IPFamily to v1.IPFamily
    func convertToV1IPFamily(ipFamily netutils.IPFamily) v1.IPFamily {
    	switch ipFamily {
    	case netutils.IPv4:
    		return v1.IPv4Protocol
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    				if utilnet.IPFamilyOfString(s.HostIP) != utilnet.IPFamilyOf(hostIPs[0]) {
    					kl.recorder.Eventf(pod, v1.EventTypeWarning, "HostIPsIPFamilyMismatch",
    						"Kubelet detected an IPv%s node IP (%s), but the cloud provider selected an IPv%s node IP (%s); pass an explicit `--node-ip` to kubelet to fix this.",
    						utilnet.IPFamilyOfString(s.HostIP), s.HostIP, utilnet.IPFamilyOf(hostIPs[0]), hostIPs[0].String())
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. cmd/kube-proxy/app/server.go

    func badBindAddress(bindAddress string, wrongFamily netutils.IPFamily) bool {
    	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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top