Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for makeEndpointsArray (0.16 sec)

  1. pkg/controlplane/reconcilers/instancecount_test.go

    			initialState:  nil,
    			expectCreate:  makeEndpointsArray("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    		},
    		{
    			testName:      "existing endpoints satisfy",
    			serviceName:   "foo",
    			ip:            "1.2.3.4",
    			endpointPorts: []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:  makeEndpointsArray("foo", []string{"1.2.3.4", "4.3.2.1"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}),
    			expectUpdate:  makeEndpointsArray("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)
  3. pkg/controlplane/reconcilers/helpers_test.go

    	"k8s.io/apimachinery/pkg/runtime"
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/client-go/kubernetes/fake"
    	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),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top