- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 64 for IPFamily (0.16 sec)
-
pkg/registry/core/service/ipallocator/bitmap_test.go
rCIDR := r.CIDR() if rCIDR.String() != tc.cidr { t.Errorf("[%s] wrong CIDR: expected %v, got %v", tc.name, tc.cidr, rCIDR.String()) } if r.IPFamily() != tc.family { t.Errorf("[%s] wrong IP family: expected %v, got %v", tc.name, tc.family, r.IPFamily()) } if f := r.Used(); f != 0 { t.Errorf("[%s]: wrong used: expected %d, got %d", tc.name, 0, f) } found := sets.NewString()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller.go
} } func podToEndpointAddressForService(svc *v1.Service, pod *v1.Pod) (*v1.EndpointAddress, error) { var endpointIP string ipFamily := v1.IPv4Protocol if len(svc.Spec.IPFamilies) > 0 { // controller is connected to an api-server that correctly sets IPFamilies ipFamily = svc.Spec.IPFamilies[0] // this works for headful and headless } else { // controller is connected to an api server that does not correctly
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 26.3K bytes - Viewed (0) -
cmd/kube-proxy/app/server.go
// 3. otherwise the node IPs are 127.0.0.1 and ::1 func detectNodeIPs(ctx context.Context, rawNodeIPs []net.IP, bindAddress string) (v1.IPFamily, map[v1.IPFamily]net.IP) { logger := klog.FromContext(ctx) primaryFamily := v1.IPv4Protocol nodeIPs := map[v1.IPFamily]net.IP{ v1.IPv4Protocol: net.IPv4(127, 0, 0, 1), v1.IPv6Protocol: net.IPv6loopback, } if len(rawNodeIPs) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 46.8K bytes - Viewed (0) -
pkg/proxy/util/nodeport_addresses.go
// NodePortAddresses object for the given family. If there are no CIDRs of the given // family then the CIDR "0.0.0.0/0" or "::/0" will be added (even if there are CIDRs of // the other family). func NewNodePortAddresses(family v1.IPFamily, cidrStrings []string) *NodePortAddresses { npa := &NodePortAddresses{} // Filter CIDRs to correct family for _, str := range cidrStrings { if (family == v1.IPv4Protocol) == netutils.IsIPv4CIDRString(str) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/cloud-controller-manager/nodeipamcontroller.go
if len(clusterCIDRs) > 1 && !dualStack { return nil, false, fmt.Errorf("len of ClusterCIDRs==%v and they are not configured as dual stack (at least one from each IPFamily", len(clusterCIDRs)) } // failure: more than cidrs is not allowed even with dual stack if len(clusterCIDRs) > 2 { return nil, false, fmt.Errorf("len of clusters is:%v > more than max allowed of 2", len(clusterCIDRs))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 14 19:06:22 UTC 2023 - 8.9K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller_test.go
var ipv4only = []v1.IPFamily{v1.IPv4Protocol} var ipv6only = []v1.IPFamily{v1.IPv6Protocol} var ipv4ipv6 = []v1.IPFamily{v1.IPv4Protocol, v1.IPv6Protocol} var ipv6ipv4 = []v1.IPFamily{v1.IPv6Protocol, v1.IPv4Protocol} func testPod(namespace string, id int, nPorts int, isReady bool, ipFamilies []v1.IPFamily) *v1.Pod { p := &v1.Pod{ TypeMeta: metav1.TypeMeta{APIVersion: "v1"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
tweakSvc: func(s *core.Service) { invalidServiceIPFamily := core.IPFamily("not-a-valid-ip-family") s.Spec.IPFamilies = []core.IPFamily{invalidServiceIPFamily} }, numErrs: 1, }, { name: "invalid, service with invalid ipFamilies (2nd)", tweakSvc: func(s *core.Service) { invalidServiceIPFamily := core.IPFamily("not-a-valid-ip-family") s.Spec.IPFamilyPolicy = &requireDualStack
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
common/scripts/kind_provisioner.sh
CONFIG=${DEFAULT_CLUSTER_YAML} fi # Configure the cluster IP Family if explicitly set if [ "${IP_FAMILY}" != "ipv4" ]; then grep "ipFamily: ${IP_FAMILY}" "${CONFIG}" || \ cat <<EOF >> "${CONFIG}" networking: ipFamily: ${IP_FAMILY} EOF fi KIND_WAIT_FLAG="--wait=180s" KIND_DISABLE_CNI="false" if [[ -n "${KUBERNETES_CNI:-}" ]]; then unset KIND_WAIT_FLAG
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 19:12:55 UTC 2024 - 17.3K bytes - Viewed (0) -
pkg/apis/core/fuzzer/fuzzer.go
types := []core.ServiceType{core.ServiceTypeClusterIP, core.ServiceTypeNodePort, core.ServiceTypeLoadBalancer} *p = types[c.Rand.Intn(len(types))] }, func(p *core.IPFamily, c fuzz.Continue) { types := []core.IPFamily{core.IPv4Protocol, core.IPv6Protocol} selected := types[c.Rand.Intn(len(types))] *p = selected }, func(p *core.ServiceExternalTrafficPolicy, c fuzz.Continue) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0)