Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for IPFamily (0.3 sec)

  1. samples/kind-lb/setupkind.sh

    validIPFamilies=("ipv4" "ipv6" "dual")
    # Validate if the ip family value is correct.
    isValid="false"
    for family in "${validIPFamilies[@]}"; do
      if [[ "$family" == "${IPFAMILY}" ]]; then
        isValid="true"
        break
      fi
    done
    
    if [[ "${isValid}" == "false" ]]; then
      echo "${IPFAMILY} is not valid ip family, valid values are ipv4, ipv6 or dual"
      exit 1
    fi
    
    if [[ "${MODE}" == "ambient" ]]; then
      NUMNODES=${NUMNODES:-2}
    fi
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 02 19:08:19 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair.go

    type Repair struct {
    	interval      time.Duration
    	serviceClient corev1client.ServicesGetter
    
    	networkByFamily   map[v1.IPFamily]*net.IPNet                    // networks we operate on, by their family
    	allocatorByFamily map[v1.IPFamily]rangeallocation.RangeRegistry // allocators we use, by their family
    
    	leaksByFamily map[v1.IPFamily]map[string]int // counter per leaked IP per family
    	broadcaster   events.EventBroadcaster
    	recorder      events.EventRecorder
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. pkg/proxy/servicechangetracker.go

    func NewServiceChangeTracker(makeServiceInfo makeServicePortFunc, ipFamily v1.IPFamily, recorder events.EventRecorder, processServiceMapChange processServiceMapChangeFunc) *ServiceChangeTracker {
    	return &ServiceChangeTracker{
    		items:                   make(map[types.NamespacedName]*serviceChange),
    		makeServiceInfo:         makeServiceInfo,
    		recorder:                recorder,
    		ipFamily:                ipFamily,
    		processServiceMapChange: processServiceMapChange,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. pkg/registry/core/service/storage/alloc.go

    		}
    	}
    
    	// If there is a family requested then it has to be configured on cluster.
    	for i, ipFamily := range service.Spec.IPFamilies {
    		if _, found := al.serviceIPAllocatorsByFamily[ipFamily]; !found {
    			el = append(el, field.Invalid(field.NewPath("spec", "ipFamilies").Index(i), ipFamily, "not configured on this cluster"))
    		}
    	}
    
    	// If we have validation errors, don't bother with the rest.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  5. pkg/registry/core/service/storage/storage.go

    	return genericStore, &StatusREST{store: &statusStore}, &svcreg.ProxyREST{Redirector: genericStore, ProxyTransport: proxyTransport}, nil
    }
    
    // otherFamily returns the non-selected IPFamily.  This assumes the input is
    // valid.
    func otherFamily(fam api.IPFamily) api.IPFamily {
    	if fam == api.IPv4Protocol {
    		return api.IPv6Protocol
    	}
    	return api.IPv4Protocol
    }
    
    var (
    	_ rest.ShortNamesProvider = &REST{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/proxier.go

    		return nil, err
    	}
    
    	proxier := &Proxier{
    		ipFamily:            ipFamily,
    		svcPortMap:          make(proxy.ServicePortMap),
    		serviceChanges:      proxy.NewServiceChangeTracker(newServiceInfo, ipFamily, recorder, nil),
    		endpointsMap:        make(proxy.EndpointsMap),
    		endpointsChanges:    proxy.NewEndpointsChangeTracker(hostname, newEndpointInfo, ipFamily, recorder, nil),
    		syncPeriod:          syncPeriod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  7. pkg/registry/core/rest/storage_core.go

    }
    
    func (c *Config) newServiceIPAllocators() (registries rangeRegistries, primaryClusterIPAllocator ipallocator.Interface, clusterIPAllocators map[api.IPFamily]ipallocator.Interface, nodePortAllocator *portallocator.PortAllocator, err error) {
    	clusterIPAllocators = map[api.IPFamily]ipallocator.Interface{}
    
    	serviceStorageConfig, err := c.StorageFactory.NewConfig(api.Resource("services"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/ipallocator.go

    		return false
    	}
    	return true
    }
    
    func (a *Allocator) IPFamily() api.IPFamily {
    	return a.family
    }
    
    // for testing, it assumes this is the allocator is unique for the ipFamily
    func (a *Allocator) Used() int {
    	ipLabelSelector := labels.Set(map[string]string{
    		networkingv1alpha1.LabelIPAddressFamily: string(a.IPFamily()),
    		networkingv1alpha1.LabelManagedBy:       ControllerName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_linux.go

    		return goruntime.NumCPU()
    	}
    	return numCPU
    }
    
    func getLocalDetectors(logger klog.Logger, primaryIPFamily v1.IPFamily, config *proxyconfigapi.KubeProxyConfiguration, nodePodCIDRs []string) map[v1.IPFamily]proxyutil.LocalTrafficDetector {
    	localDetectors := map[v1.IPFamily]proxyutil.LocalTrafficDetector{
    		v1.IPv4Protocol: proxyutil.NewNoOpLocalDetector(),
    		v1.IPv6Protocol: proxyutil.NewNoOpLocalDetector(),
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  10. pkg/proxy/endpointslicecache.go

    func NewEndpointSliceCache(hostname string, ipFamily v1.IPFamily, recorder events.EventRecorder, makeEndpointInfo makeEndpointFunc) *EndpointSliceCache {
    	if makeEndpointInfo == nil {
    		makeEndpointInfo = standardEndpointInfo
    	}
    	return &EndpointSliceCache{
    		trackerByServiceMap: map[types.NamespacedName]*endpointSliceTracker{},
    		hostname:            hostname,
    		ipFamily:            ipFamily,
    		makeEndpointInfo:    makeEndpointInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (1)
Back to top