Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for ParseIPSloppy (0.17 sec)

  1. pkg/proxy/winkernel/proxier_test.go

    	proxier.serviceChanges = serviceChanges
    
    	return proxier
    }
    
    func TestCreateServiceVip(t *testing.T) {
    	syncPeriod := 30 * time.Second
    	proxier := NewFakeProxier(syncPeriod, syncPeriod, "testhost", netutils.ParseIPSloppy("10.0.0.1"), NETWORK_TYPE_OVERLAY)
    	if proxier == nil {
    		t.Error()
    	}
    
    	svcIP := "10.20.30.41"
    	svcPort := 80
    	svcNodePort := 3001
    	svcExternalIPs := "50.60.70.81"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 28 14:30:51 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/lease_test.go

    				r.StopReconciling()
    				err = r.RemoveEndpoints(test.serviceName, netutils.ParseIPSloppy(test.ip), test.endpointPorts)
    				if err != nil {
    					t.Errorf("unexpected error remove endpoints: %v", err)
    				}
    
    				// reconcile endpoints in another goroutine
    				err = r.ReconcileEndpoints(test.serviceName, netutils.ParseIPSloppy(test.ip), test.endpointPorts, false)
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  3. 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)
  4. pkg/controlplane/reconcilers/instancecount_test.go

    			reconciler := NewMasterCountEndpointReconciler(test.additionalMasters+1, epAdapter)
    			err := reconciler.ReconcileEndpoints(test.serviceName, netutils.ParseIPSloppy(test.ip), test.endpointPorts, true)
    			if err != nil {
    				t.Errorf("unexpected error reconciling: %v", err)
    			}
    
    			err = verifyCreatesAndUpdates(fakeClient, test.expectCreate, test.expectUpdate)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:24 UTC 2022
    - 14K bytes
    - Viewed (0)
  5. 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)
  6. cmd/kubeadm/app/phases/certs/renewal/manager_test.go

    func TestCertToConfig(t *testing.T) {
    	expectedConfig := &certutil.Config{
    		CommonName:   "test-common-name",
    		Organization: testCertOrganization,
    		AltNames: certutil.AltNames{
    			IPs:      []net.IP{netutils.ParseIPSloppy("10.100.0.1")},
    			DNSNames: []string{"test-domain.space"},
    		},
    		Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	}
    
    	cert := &x509.Certificate{
    		Subject: pkix.Name{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. pkg/controlplane/controller/kubernetesservice/controller_test.go

    			master.serviceLister = v1listers.NewServiceLister(serviceStore)
    			master.client = fakeClient
    			master.CreateOrUpdateMasterServiceIfNeeded(test.serviceName, netutils.ParseIPSloppy("1.2.3.4"), test.servicePorts, test.serviceType, false)
    			creates := []core.CreateAction{}
    			for _, action := range fakeClient.Actions() {
    				if action.GetVerb() == "create" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    			// launch server
    			config := setUp(t)
    
    			v := fakeVersion()
    			config.Version = &v
    
    			config.EnableIndex = true
    			secureOptions := (&SecureServingOptions{
    				BindAddress: netutils.ParseIPSloppy("127.0.0.1"),
    				BindPort:    6443,
    				ServerCert: GeneratableKeyCert{
    					CertKey: CertKey{
    						CertFile: serverCertBundleFile,
    						KeyFile:  serverKeyFile,
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. cmd/kube-apiserver/app/options/validation_test.go

    	}
    
    	_, ipv6cidr, err := netutils.ParseCIDRSloppy("2001:db8::/112")
    	if err != nil {
    		t.Fatalf("Unexpected error %v", err)
    	}
    
    	ipv4address := netutils.ParseIPSloppy("192.168.1.1")
    	ipv6address := netutils.ParseIPSloppy("2001:db8::1")
    
    	tests := []struct {
    		name    string
    		generic apiserveroptions.ServerRunOptions
    		extra   Extra
    		wantErr bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/net/http.go

    		parts := strings.Split(hdrForwardedFor, ",")
    		for _, part := range parts {
    			ip := netutils.ParseIPSloppy(strings.TrimSpace(part))
    			if ip != nil {
    				srcIPs = append(srcIPs, ip)
    			}
    		}
    	}
    
    	// Try the X-Real-Ip header.
    	hdrRealIp := hdr.Get("X-Real-Ip")
    	if hdrRealIp != "" {
    		ip := netutils.ParseIPSloppy(hdrRealIp)
    		// Only append the X-Real-Ip if it's not already contained in the X-Forwarded-For chain.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 05 00:08:58 UTC 2022
    - 20.8K bytes
    - Viewed (0)
Back to top