Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ParseIPSloppy (0.37 sec)

  1. pkg/kubelet/certificate/kubelet_test.go

    				{Type: v1.NodeInternalIP, Address: "3.3.3.3"},
    			},
    			wantDNSNames: []string{"hostname-1", "hostname-2", "hostname-3"},
    			wantIPs:      []net.IP{netutils.ParseIPSloppy("1.1.1.1"), netutils.ParseIPSloppy("2.2.2.2"), netutils.ParseIPSloppy("3.3.3.3")},
    		},
    		{
    			name: "handle IP and DNS hostnames",
    			addresses: []v1.NodeAddress{
    				{Type: v1.NodeHostName, Address: "hostname"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/kubelet/certificate/kubelet.go

    			continue
    		}
    
    		switch address.Type {
    		case v1.NodeHostName:
    			if ip := netutils.ParseIPSloppy(address.Address); ip != nil {
    				seenIPs[address.Address] = true
    			} else {
    				seenDNSNames[address.Address] = true
    			}
    		case v1.NodeExternalIP, v1.NodeInternalIP:
    			if ip := netutils.ParseIPSloppy(address.Address); ip != nil {
    				seenIPs[address.Address] = true
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. cmd/kube-apiserver/app/options/options_test.go

    	expected := &ServerRunOptions{
    		Options: &controlplaneapiserver.Options{
    			GenericServerRunOptions: &apiserveroptions.ServerRunOptions{
    				AdvertiseAddress:            netutils.ParseIPSloppy("192.168.10.10"),
    				CorsAllowedOriginList:       []string{"10.10.10.100", "10.10.10.200"},
    				MaxRequestsInFlight:         400,
    				MaxMutatingRequestsInFlight: 200,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/controlplane/apiserver/options/options_test.go

    	}
    	fs.Parse(args)
    
    	// This is a snapshot of expected options parsed by args.
    	expected := &Options{
    		GenericServerRunOptions: &apiserveroptions.ServerRunOptions{
    			AdvertiseAddress:            netutils.ParseIPSloppy("192.168.10.10"),
    			CorsAllowedOriginList:       []string{"10.10.10.100", "10.10.10.200"},
    			MaxRequestsInFlight:         400,
    			MaxMutatingRequestsInFlight: 200,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/options/options.go

    	// TODO have a "real" external address
    	if err := o.RecommendedOptions.SecureServing.MaybeDefaultWithSelfSignedCerts("localhost", nil, []net.IP{netutils.ParseIPSloppy("127.0.0.1")}); err != nil {
    		return nil, fmt.Errorf("error creating self-signed certificates: %v", err)
    	}
    
    	serverConfig := genericapiserver.NewRecommendedConfig(apiserver.Codecs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. pkg/kubelet/network/dns/dns_test.go

    		Kind:      "Node",
    		Name:      string("testNode"),
    		UID:       types.UID("testNode"),
    		Namespace: "",
    	}
    	testClusterDNSDomain := "TEST"
    	clusterNS := "203.0.113.1"
    	testClusterDNS := []net.IP{netutils.ParseIPSloppy(clusterNS)}
    
    	configurer := NewConfigurer(recorder, nodeRef, nil, nil, testClusterDNSDomain, "")
    
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			UID:         "",
    			Name:        "test_pod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. pkg/controlplane/instance_test.go

    			},
    		},
    		Extra: Extra{
    			APIServerServicePort:   443,
    			MasterCount:            1,
    			EndpointReconcilerType: reconcilers.MasterCountReconcilerType,
    			ServiceIPRange:         net.IPNet{IP: netutils.ParseIPSloppy("10.0.0.0"), Mask: net.CIDRMask(24, 32)},
    		},
    	}
    
    	storageFactoryConfig := kubeapiserver.NewStorageFactoryConfig()
    	storageConfig.StorageObjectCountTracker = config.ControlPlane.Generic.StorageObjectCountTracker
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/preflight/checks.go

    	}
    
    	if !isSecondaryControlPlane {
    		checks = addCommonChecks(execer, cfg.KubernetesVersion, &cfg.NodeRegistration, checks)
    
    		// Check if Bridge-netfilter and IPv6 relevant flags are set
    		if ip := netutils.ParseIPSloppy(cfg.LocalAPIEndpoint.AdvertiseAddress); ip != nil {
    			if !IPV4Check && netutils.IsIPv4(ip) {
    				IPV4Check = true
    			}
    			if !IPV6Check && netutils.IsIPv6(ip) {
    				IPV6Check = true
    			}
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top