Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for EndpointPort (0.3 sec)

  1. pkg/controlplane/reconcilers/instancecount_test.go

    		},
    		{
    			testName:      "existing endpoints satisfy",
    			serviceName:   "foo",
    			ip:            "1.2.3.4",
    			endpointPorts: []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}},
    			initialState:  makeEndpointsArray("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:24 UTC 2022
    - 14K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/lease_test.go

    			ip:            "1.2.3.4",
    			endpointPorts: []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}},
    			initialState: []runtime.Object{
    				makeEndpoints("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			},
    			expectCreate: []runtime.Object{
    				makeEndpointSlice("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			},
    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/api/v1/endpoints/util_test.go

    			}, {
    				Addresses: []v1.EndpointAddress{{IP: "5.6.7.8", TargetRef: podRef("uid-1")}},
    				Ports:     []v1.EndpointPort{{Port: 111}},
    			}, {
    				Addresses: []v1.EndpointAddress{{IP: "1.2.3.4", TargetRef: podRef("uid-1")}},
    				Ports:     []v1.EndpointPort{{Port: 111}},
    			}, {
    				Addresses: []v1.EndpointAddress{{IP: "1.2.3.4"}},
    				Ports:     []v1.EndpointPort{{Port: 111}},
    			}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  4. pkg/apis/discovery/validation/validation_test.go

    }
    
    // Test helpers
    
    func protocolPtr(protocol api.Protocol) *api.Protocol {
    	return &protocol
    }
    
    func generatePorts(n int) []discovery.EndpointPort {
    	ports := []discovery.EndpointPort{}
    	for i := 0; i < n; i++ {
    		ports = append(ports, discovery.EndpointPort{
    			Name:     utilpointer.String(fmt.Sprintf("http-%d", i)),
    			Protocol: protocolPtr(api.ProtocolTCP),
    		})
    	}
    	return ports
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  5. pkg/apis/discovery/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.EndpointPort)(nil), (*discovery.EndpointPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_EndpointPort_To_discovery_EndpointPort(a.(*v1.EndpointPort), b.(*discovery.EndpointPort), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*discovery.EndpointPort)(nil), (*v1.EndpointPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 14.4K bytes
    - Viewed (0)
  6. pkg/apis/discovery/v1beta1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1beta1.EndpointPort)(nil), (*discovery.EndpointPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1beta1_EndpointPort_To_discovery_EndpointPort(a.(*v1beta1.EndpointPort), b.(*discovery.EndpointPort), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  7. pkg/apis/discovery/v1/defaults_test.go

    		expected *discovery.EndpointSlice
    	}{
    		"should set appropriate defaults": {
    			original: &discovery.EndpointSlice{Ports: []discovery.EndpointPort{{
    				Port: utilpointer.Int32(80),
    			}}},
    			expected: &discovery.EndpointSlice{
    				Ports: []discovery.EndpointPort{{
    					Name:     &emptyStr,
    					Protocol: &protoTCP,
    					Port:     utilpointer.Int32(80),
    				}},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:14:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    			servers: []serverInfo{{
    				existingIP:     "4.3.2.1",
    				id:             "server-1",
    				ports:          []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}},
    				expectEndpoint: "4.3.2.1:8080",
    			}, {
    				existingIP:     "1.2.3.4",
    				id:             "server-2",
    				ports:          []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}},
    				expectEndpoint: "1.2.3.4:8080",
    			}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/controller/endpointslicemirroring/reconciler_test.go

    	}
    }
    
    func portsMatch(epPorts []corev1.EndpointPort, epsPorts []discovery.EndpointPort) bool {
    	if len(epPorts) != len(epsPorts) {
    		return false
    	}
    
    	portsToBeMatched := map[int32]corev1.EndpointPort{}
    
    	for _, epPort := range epPorts {
    		portsToBeMatched[epPort.Port] = epPort
    	}
    
    	for _, epsPort := range epsPorts {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  10. pkg/proxy/endpointslicecache_test.go

    				Ports:      []discovery.EndpointPort{port443, port80},
    			},
    			updatedSlice: &discovery.EndpointSlice{
    				ObjectMeta: objMeta,
    				Ports:      []discovery.EndpointPort{port443},
    			},
    			expectChanged: true,
    		},
    		"port added": {
    			cache: NewEndpointSliceCache("", v1.IPv4Protocol, nil, nil),
    			initialSlice: &discovery.EndpointSlice{
    				ObjectMeta: objMeta,
    				Ports:      []discovery.EndpointPort{port443},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top