- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EndpointSubset (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go
} ports = append(ports, v1.EndpointPort{Name: p.Name, Port: p.TargetPort.IntVal}) } return []*v1.Endpoints{{ ObjectMeta: metav1.ObjectMeta{Namespace: svc.Namespace, Name: svc.Name}, Subsets: []v1.EndpointSubset{{ Addresses: []v1.EndpointAddress{{Hostname: "dummy-host", IP: "127.0.0.1"}}, Ports: ports, }}, }} } type expectation struct { url string error bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:27 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/controlplane/reconcilers/instancecount.go
// EndpointSlices. This may change in the future. skipMirrorChanged := setSkipMirrorTrue(e) if errors.IsNotFound(err) { // Simply create non-existing endpoints for the service. e.Subsets = []corev1.EndpointSubset{{ Addresses: []corev1.EndpointAddress{{IP: ip.String()}}, Ports: endpointPorts, }} _, err = r.epAdapter.Create(metav1.NamespaceDefault, e) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 7.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go
"pod": &v1.Pod{ObjectMeta: om("pod")}, "emptyPodList": &v1.PodList{}, "nonEmptyPodList": &v1.PodList{Items: []v1.Pod{{}}}, "endpoints": &v1.Endpoints{ Subsets: []v1.EndpointSubset{{ Addresses: []v1.EndpointAddress{{IP: "127.0.0.1"}, {IP: "localhost"}}, Ports: []v1.EndpointPort{{Port: 8080}}, }}}, } // Test PrintObj() success. for pName, p := range genericPrinters {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4K bytes - Viewed (0) -
pkg/controlplane/reconcilers/helpers_test.go
Name: name, Labels: map[string]string{ discoveryv1.LabelSkipMirror: "true", }, }, } if len(ips) > 0 || len(ports) > 0 { endpoints.Subsets = []corev1.EndpointSubset{{ Addresses: make([]corev1.EndpointAddress, len(ips)), Ports: ports, }} for i := range ips { endpoints.Subsets[0].Addresses[i].IP = ips[i] } } return endpoints }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 27 12:46:23 UTC 2022 - 4K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/utils_test.go
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Endpoints"} endpoints := v1.Endpoints{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "test", }, Subsets: []v1.EndpointSubset{{ Ports: []v1.EndpointPort{{Port: 80}}, }}, } ownerRef := metav1.NewControllerRef(&endpoints, gvk) testCases := []struct { name string tweakEndpoint func(ep *v1.Endpoints)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 23 15:40:23 UTC 2022 - 7.5K bytes - Viewed (0)