Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for IsIPv6String (0.48 sec)

  1. cmd/kubeadm/app/phases/etcd/local.go

    	// probeHostname returns the correct localhost IP address family based on the endpoint AdvertiseAddress
    	probeHostname, probePort, probeScheme := staticpodutil.GetEtcdProbeEndpoint(&cfg.Etcd, utilsnet.IsIPv6String(endpoint.AdvertiseAddress))
    	return staticpodutil.ComponentPod(
    		v1.Container{
    			Name:            kubeadmconstants.Etcd,
    			Command:         getEtcdCommand(cfg, endpoint, nodeName, initialCluster),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 13.8K bytes
    - Viewed (1)
  2. pkg/proxy/util/utils.go

    		if len(service.Spec.ClusterIP) == 0 || service.Spec.ClusterIP == v1.ClusterIPNone {
    			return ""
    		}
    
    		IsIPv6Family := (ipFamily == v1.IPv6Protocol)
    		if IsIPv6Family == netutils.IsIPv6String(service.Spec.ClusterIP) {
    			return service.Spec.ClusterIP
    		}
    
    		return ""
    	}
    
    	for idx, family := range service.Spec.IPFamilies {
    		if family == ipFamily {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. pkg/volume/nfs/nfs.go

    	}
    
    	return nil, false, fmt.Errorf("Spec does not reference a NFS volume type")
    }
    
    func getServerFromSource(source *v1.NFSVolumeSource) string {
    	if netutil.IsIPv6String(source.Server) {
    		return fmt.Sprintf("[%s]", source.Server)
    	}
    	return source.Server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. pkg/controller/endpoint/endpoints_controller.go

    			// upgrade is completed (controller connects to api-server that correctly defaults services)
    			if utilnet.IsIPv6String(pod.Status.PodIP) {
    				ipFamily = v1.IPv6Protocol
    			}
    		}
    	}
    
    	// find an ip that matches the family
    	for _, podIP := range pod.Status.PodIPs {
    		if (ipFamily == v1.IPv6Protocol) == utilnet.IsIPv6String(podIP.IP) {
    			endpointIP = podIP.IP
    			break
    		}
    	}
    
    	if endpointIP == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. pkg/proxy/endpointslicecache.go

    			continue
    		}
    
    		// Filter out the incorrect IP version case. Any endpoint port that
    		// contains incorrect IP version will be ignored.
    		if (cache.ipFamily == v1.IPv6Protocol) != utilnet.IsIPv6String(endpoint.Addresses[0]) {
    			// Emit event on the corresponding service which had a different IP
    			// version than the endpoint.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/controller/repairip.go

    	r.muTree.Lock()
    	defer r.muTree.Unlock()
    	r.tree = tree
    	return nil
    }
    
    func newIPAddress(name string, svc *v1.Service) *networkingv1alpha1.IPAddress {
    	family := string(v1.IPv4Protocol)
    	if netutils.IsIPv6String(name) {
    		family = string(v1.IPv6Protocol)
    	}
    	return &networkingv1alpha1.IPAddress{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    			Labels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. pkg/kubelet/container/helpers.go

    		// duplicate containerPort / protocol rules work across different address families.
    		// https://github.com/kubernetes/kubernetes/issues/82373
    		family := "any"
    		if p.HostIP != "" {
    			if utilsnet.IsIPv6String(p.HostIP) {
    				family = "v6"
    			} else {
    				family = "v4"
    			}
    		}
    
    		var name = p.Name
    		if name == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. pkg/registry/core/service/storage/storage.go

    		}
    	} else {
    		// Headful: init ipFamilies from clusterIPs.
    		service.Spec.IPFamilies = make([]api.IPFamily, len(service.Spec.ClusterIPs))
    		for idx, ip := range service.Spec.ClusterIPs {
    			if netutil.IsIPv6String(ip) {
    				service.Spec.IPFamilies[idx] = api.IPv6Protocol
    			} else {
    				service.Spec.IPFamilies[idx] = api.IPv4Protocol
    			}
    		}
    		if len(service.Spec.IPFamilies) == 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/preflight/checks.go

    func (hst HTTPProxyCheck) Check() (warnings, errorList []error) {
    	klog.V(1).Infoln("validating if the connectivity type is via proxy or direct")
    	u := &url.URL{Scheme: hst.Proto, Host: hst.Host}
    	if netutils.IsIPv6String(hst.Host) {
    		u.Host = net.JoinHostPort(hst.Host, "1234")
    	}
    
    	req, err := http.NewRequest("GET", u.String(), nil)
    	if err != nil {
    		return nil, []error{err}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods.go

    	var validPrimaryIP, validSecondaryIP func(ip string) bool
    	if len(kl.nodeIPs) == 0 || utilnet.IsIPv4(kl.nodeIPs[0]) {
    		validPrimaryIP = utilnet.IsIPv4String
    		validSecondaryIP = utilnet.IsIPv6String
    	} else {
    		validPrimaryIP = utilnet.IsIPv6String
    		validSecondaryIP = utilnet.IsIPv4String
    	}
    	for _, ip := range podIPs {
    		if validPrimaryIP(ip) {
    			ips = append(ips, ip)
    			break
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top