- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateOwnerReferences (0.33 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go
allErrs = append(allErrs, field.Invalid(fldPath, ownerReference, fmt.Sprintf("%s is disallowed from being an owner", gvk))) } return allErrs } // ValidateOwnerReferences validates that a set of owner references are correctly defined. func ValidateOwnerReferences(ownerReferences []metav1.OwnerReference, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} firstControllerName := "" for _, ref := range ownerReferences {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 12K bytes - Viewed (0) -
pkg/controller/controller_ref_manager.go
if err := m.CanAdopt(ctx); err != nil { return fmt.Errorf("can't adopt Pod %v/%v (%v): %v", pod.Namespace, pod.Name, pod.UID, err) } // Note that ValidateOwnerReferences() will reject this patch if another // OwnerReference exists with controller=true. patchBytes, err := ownerRefControllerPatch(m.Controller, m.controllerKind, pod.UID, m.finalizers...) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 21.5K bytes - Viewed (0)