Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for makeEndpointSlice (2.18 sec)

  1. pkg/controlplane/reconcilers/instancecount_test.go

    				makeEndpoints("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    				makeEndpointSlice("foo", []string{"4.3.2.1"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			},
    			expectUpdate: []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: Fri May 27 12:46:24 UTC 2022
    - 14K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/helpers_test.go

    	k8stesting "k8s.io/client-go/testing"
    )
    
    func makeEndpointsArray(name string, ips []string, ports []corev1.EndpointPort) []runtime.Object {
    	return []runtime.Object{
    		makeEndpoints(name, ips, ports),
    		makeEndpointSlice(name, ips, ports),
    	}
    }
    
    func makeEndpoints(name string, ips []string, ports []corev1.EndpointPort) *corev1.Endpoints {
    	endpoints := &corev1.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. pkg/controlplane/reconcilers/lease_test.go

    				makeEndpoints("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    				makeEndpointSlice("foo", []string{"4.3.2.1"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			},
    			expectUpdate: []runtime.Object{
    				makeEndpointSlice("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			},
    			expectLeases: []string{"1.2.3.4"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
Back to top