- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MakeEndpoints (0.26 sec)
-
pkg/api/endpoints/testing/make.go
api "k8s.io/kubernetes/pkg/apis/core" ) // Tweak is a function that modifies a Endpoints. type Tweak func(*api.Endpoints) // MakeEndpoints helps construct Endpoints objects (which pass API validation) // more legibly and tersely than a Go struct definition. func MakeEndpoints(name string, addrs []api.EndpointAddress, ports []api.EndpointPort, tweaks ...Tweak) *api.Endpoints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 02 01:26:45 UTC 2021 - 1.9K bytes - Viewed (0) -
pkg/controlplane/reconcilers/instancecount_test.go
initialState: []runtime.Object{ makeEndpoints("foo", []string{"4.3.2.1"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}), makeEndpointSlice("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}), }, expectUpdate: []runtime.Object{ makeEndpoints("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) -
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) -
pkg/controlplane/reconcilers/lease_test.go
initialState: []runtime.Object{ makeEndpoints("foo", []string{"4.3.2.1"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}), makeEndpointSlice("foo", []string{"1.2.3.4"}, []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}}), }, expectUpdate: []runtime.Object{ makeEndpoints("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) -
pkg/registry/core/service/storage/storage_test.go
} endpoints := []*api.Endpoints{ epstest.MakeEndpoints("unnamed", []api.EndpointAddress{ epstest.MakeEndpointAddress("1.2.3.4", "unnamed"), }, []api.EndpointPort{ epstest.MakeEndpointPort("", 80), }), epstest.MakeEndpoints("unnamed2", []api.EndpointAddress{ epstest.MakeEndpointAddress("1.2.3.5", "unnamed"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0)