- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 206 for endpointSlice (0.24 sec)
-
pkg/controller/endpointslicemirroring/utils_test.go
client.PrependReactor("create", "endpointslices", k8stesting.ReactionFunc(func(action k8stesting.Action) (bool, runtime.Object, error) { endpointSlice := action.(k8stesting.CreateAction).GetObject().(*discovery.EndpointSlice) if endpointSlice.ObjectMeta.GenerateName != "" { endpointSlice.ObjectMeta.Name = fmt.Sprintf("%s-%s", endpointSlice.ObjectMeta.GenerateName, rand.String(8)) endpointSlice.ObjectMeta.GenerateName = "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 23 15:40:23 UTC 2022 - 7.5K bytes - Viewed (0) -
pkg/proxy/metaproxier/meta_proxier.go
func (proxier *metaProxier) OnEndpointSliceAdd(endpointSlice *discovery.EndpointSlice) { switch endpointSlice.AddressType { case discovery.AddressTypeIPv4: proxier.ipv4Proxier.OnEndpointSliceAdd(endpointSlice) case discovery.AddressTypeIPv6: proxier.ipv6Proxier.OnEndpointSliceAdd(endpointSlice) default: klog.ErrorS(nil, "EndpointSlice address type not supported", "addressType", endpointSlice.AddressType) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 21 14:28:37 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/apis/discovery/validation/validation_test.go
standardMeta := metav1.ObjectMeta{ Name: "hello", Namespace: "world", } testCases := map[string]struct { expectedErrors int endpointSlice *discovery.EndpointSlice }{ "good-slice": { expectedErrors: 0, endpointSlice: &discovery.EndpointSlice{ ObjectMeta: standardMeta, AddressType: discovery.AddressTypeIPv4, Ports: []discovery.EndpointPort{{ Name: utilpointer.String("http"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 05 10:48:05 UTC 2023 - 23.9K bytes - Viewed (0) -
pkg/registry/discovery/endpointslice/storage/storage.go
NewListFunc: func() runtime.Object { return &discovery.EndpointSliceList{} }, DefaultQualifiedResource: discovery.Resource("endpointslices"), SingularQualifiedResource: discovery.Resource("endpointslice"), CreateStrategy: endpointslice.Strategy, UpdateStrategy: endpointslice.Strategy, DeleteStrategy: endpointslice.Strategy,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 2K bytes - Viewed (0) -
pkg/proxy/endpointslicecache.go
func endpointSliceCacheKeys(endpointSlice *discovery.EndpointSlice) (types.NamespacedName, string, error) { var err error serviceName, ok := endpointSlice.Labels[discovery.LabelServiceName] if !ok || serviceName == "" { err = fmt.Errorf("no %s label set on endpoint slice: %s", discovery.LabelServiceName, endpointSlice.Name) } else if endpointSlice.Namespace == "" || endpointSlice.Name == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:07:21 UTC 2024 - 11.7K bytes - Viewed (1) -
pkg/proxy/config/api_test.go
fakeWatch.Add(endpoints1v1) handler.ValidateEndpointSlices(t, []*discoveryv1.EndpointSlice{endpoints1v1}) // Add another endpoints fakeWatch.Add(endpoints2) handler.ValidateEndpointSlices(t, []*discoveryv1.EndpointSlice{endpoints1v1, endpoints2}) // Modify endpoints1 fakeWatch.Modify(endpoints1v2) handler.ValidateEndpointSlices(t, []*discoveryv1.EndpointSlice{endpoints1v2, endpoints2}) // Delete endpoints1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/controlplane/reconcilers/endpointsadapter_test.go
} endpointSlice, err := client.DiscoveryV1().EndpointSlices(testCase.namespaceParam).Get(context.TODO(), testCase.endpointsParam.Name, metav1.GetOptions{}) if err != nil && !errors.IsNotFound(err) { t.Fatalf("Error getting Endpoint Slice: %v", err) } if !apiequality.Semantic.DeepEqual(endpointSlice, testCase.expectedEndpointSlice) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 15.4K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler_helpers.go
slice.Name = slicesToDelete[i].Name slices.toUpdate = append(slices.toUpdate, slice) } } } // removeSlice removes an EndpointSlice from a list of EndpointSlices. func removeSlice(slices []*discovery.EndpointSlice, sliceToRemove *discovery.EndpointSlice) []*discovery.EndpointSlice { for i, slice := range slices { if slice.Name == sliceToRemove.Name { return append(slices[:i], slices[i+1:]...) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler_test.go
func expectEndpointSlices(t *testing.T, num, maxEndpointsPerSubset int, endpoints corev1.Endpoints, endpointSlices []discovery.EndpointSlice) { t.Helper() if len(endpointSlices) != num { t.Fatalf("Expected %d EndpointSlices, got %d", num, len(endpointSlices)) } if num == 0 { return } for _, epSlice := range endpointSlices { if !strings.HasPrefix(epSlice.Name, endpoints.Name) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 42.7K bytes - Viewed (0) -
staging/src/k8s.io/api/discovery/v1/well_known_labels.go
// LabelManagedBy is used to indicate the controller or entity that manages // an EndpointSlice. This label aims to enable different EndpointSlice // objects to be managed by different controllers or entities within the // same cluster. It is highly recommended to configure this label for all // EndpointSlices. LabelManagedBy = "endpointslice.kubernetes.io/managed-by" // LabelSkipMirror can be set to true on an Endpoints resource to indicate
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 05 20:02:41 UTC 2021 - 1.3K bytes - Viewed (0)