- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for dropTopologyOnV1 (0.22 sec)
-
pkg/registry/discovery/endpointslice/strategy.go
if dropHints { for i := range newEPS.Endpoints { if dropHints { newEPS.Endpoints[i].Hints = nil } } } } // dropTopologyOnV1 on V1 request wipes the DeprecatedTopology field and copies // the NodeName value into DeprecatedTopology func dropTopologyOnV1(ctx context.Context, oldEPS, newEPS *discovery.EndpointSlice) { if info, ok := genericapirequest.RequestInfoFrom(ctx); ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 02 10:00:01 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/registry/discovery/endpointslice/strategy_test.go
if tc.v1Request { ctx = genericapirequest.WithRequestInfo(genericapirequest.NewContext(), &genericapirequest.RequestInfo{APIGroup: "discovery.k8s.io", APIVersion: "v1", Resource: "endpointslices"}) } dropTopologyOnV1(ctx, tc.originalEPS, tc.newEPS) if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) { t.Logf("actual endpointslice: %v", tc.newEPS) t.Logf("expected endpointslice: %v", tc.expectedEPS)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0)