- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for dedupOwnerReferencesAndAddWarning (0.39 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go
}) transformers = append(transformers, func(ctx context.Context, newObj, oldObj runtime.Object) (runtime.Object, error) { // Dedup owner references again after mutating admission happens dedupOwnerReferencesAndAddWarning(newObj, req.Context(), true) return newObj, nil }) } createAuthorizerAttributes := authorizer.AttributesRecord{ User: userInfo, ResourceRequest: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 11.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
ctx, name, obj, rest.AdmissionToValidateObjectFunc(admit, admissionAttributes, scope), options, ) } // Dedup owner references before updating managed fields dedupOwnerReferencesAndAddWarning(obj, req.Context(), false) result, err := finisher.FinishRequest(ctx, func() (runtime.Object, error) { liveObj, err := scope.Creater.New(scope.Kind) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 10.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
if apiequality.Semantic.DeepEqual(r, ref) { return true } } return false } // dedupOwnerReferencesAndAddWarning dedups owner references in the object metadata. // If duplicates are found, the function records a warning to the provided context. func dedupOwnerReferencesAndAddWarning(obj runtime.Object, requestContext context.Context, afterMutatingAdmission bool) { accessor, err := meta.Accessor(obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 17K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
} dedupOwnerReferencesTransformer := func(_ context.Context, obj, _ runtime.Object) (runtime.Object, error) { // Dedup owner references after mutating admission happens dedupOwnerReferencesAndAddWarning(obj, ctx, true) return obj, nil } transformers := []rest.TransformFunc{p.applyPatch, p.applyAdmission, dedupOwnerReferencesTransformer} wasCreated := false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0)