- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 74 for ParseIPSloppy (0.18 sec)
-
pkg/proxy/iptables/proxier_test.go
&net.IPNet{IP: netutils.ParseIPSloppy(testExternalIP), Mask: net.CIDRMask(24, 32)}, &net.IPNet{IP: netutils.ParseIPSloppy(testNodeIPv6), Mask: net.CIDRMask(64, 128)}, &net.IPNet{IP: netutils.ParseIPSloppy(testNodeIPv6Alt), Mask: net.CIDRMask(64, 128)}, } networkInterfacer.AddInterfaceAddr(&itf1, addrs1) p := &Proxier{ ipFamily: ipfamily,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0) -
cmd/kube-proxy/app/server.go
// non-zero IP of wrongFamily. 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 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 46.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go
func setUp(t *testing.T) (Config, *assert.Assertions) { config := NewConfig(codecs) config.ExternalAddress = "192.168.10.4:443" config.PublicAddress = netutils.ParseIPSloppy("192.168.10.4") config.LegacyAPIGroupPrefixes = sets.NewString("/api") config.LoopbackClientConfig = &restclient.Config{} clientset := fake.NewSimpleClientset() if clientset == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 23.2K bytes - Viewed (0) -
pkg/proxy/nftables/helpers_test.go
nft: nft, nodeIPs: sets.New(nodeIPs...), t: t, } } func (tracer *nftablesTracer) addressMatches(ipStr string, wantMatch bool, ruleAddress string) bool { ip := netutils.ParseIPSloppy(ipStr) if ip == nil { tracer.t.Fatalf("Bad IP in test case: %s", ipStr) } var match bool if strings.Contains(ruleAddress, "/") { _, cidr, err := netutils.ParseCIDRSloppy(ruleAddress)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 02 09:57:47 UTC 2024 - 48.5K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters.go
// // For steps 3 and 4, IPv4 addresses are preferred to IPv6 addresses // unless nodeIP is "::", in which case it is reversed. if nodeIPSpecified { ipAddr = nodeIP } else if addr := netutils.ParseIPSloppy(hostname); addr != nil { ipAddr = addr } else { var addrs []net.IP addrs, _ = net.LookupIP(node.Name) for _, addr := range addrs { if err = validateNodeIPFunc(addr); err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 12:12:04 UTC 2024 - 30.5K bytes - Viewed (0) -
pkg/registry/core/pod/strategy.go
if len(pod.Spec.Containers[i].Ports) > 0 { port = fmt.Sprintf("%d", pod.Spec.Containers[i].Ports[0].ContainerPort) break } } } podIP := getPodIP(pod) if ip := netutils.ParseIPSloppy(podIP); ip == nil || !ip.IsGlobalUnicast() { return nil, nil, errors.NewBadRequest("address not allowed") } loc := &url.URL{ Scheme: scheme, } if port == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/options_test.go
ConcurrentPolicySyncs: 9, }, }, SecureServing: (&apiserveroptions.SecureServingOptions{ BindPort: 10001, BindAddress: netutils.ParseIPSloppy("192.168.4.21"), ServerCert: apiserveroptions.GeneratableKeyCert{ CertDirectory: "/a/b/c", PairName: "kube-controller-manager", }, HTTP2MaxStreamsPerConnection: 47, }).WithLoopback(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 02:59:09 UTC 2024 - 55.1K bytes - Viewed (0) -
pkg/kubelet/server/server.go
resourceAnalyzer stats.ResourceAnalyzer, kubeCfg *kubeletconfiginternal.KubeletConfiguration, tlsOptions *TLSOptions, auth AuthInterface, tp oteltrace.TracerProvider) { address := netutils.ParseIPSloppy(kubeCfg.Address) port := uint(kubeCfg.Port) klog.InfoS("Starting to listen", "address", address, "port", port) handler := NewServer(host, resourceAnalyzer, auth, kubeCfg)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 40.1K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage_test.go
} createdSvc := createdObj.(*api.Service) // Ensure IPs were assigned if netutils.ParseIPSloppy(createdSvc.Spec.ClusterIP) == nil { t.Errorf("expected valid clusterIP: %q", createdSvc.Spec.ClusterIP) } for _, ip := range createdSvc.Spec.ClusterIPs { if netutils.ParseIPSloppy(ip) == nil { t.Errorf("expected valid clusterIP: %q", createdSvc.Spec.ClusterIP) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_test.go
testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */) defer testKubelet.Cleanup() kl := testKubelet.kubelet for _, ip := range tc.nodeIPs { kl.nodeIPs = append(kl.nodeIPs, netutils.ParseIPSloppy(ip)) } kl.nodeLister = testNodeLister{nodes: []*v1.Node{ { ObjectMeta: metav1.ObjectMeta{Name: string(kl.nodeName)}, Status: v1.NodeStatus{ Addresses: tc.nodeAddresses,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 198.8K bytes - Viewed (0)