- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for updateClaimOwnerRefForSetAndPod (0.34 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
return false } } return true } // updateClaimOwnerRefForSetAndPod updates the ownerRefs for the claim according to the deletion policy of // the StatefulSet. Returns true if the claim was changed and should be updated and false otherwise. // isClaimOwnerUpToDate should be called before this to avoid an expensive update operation.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control.go
} if !isClaimOwnerUpToDate(logger, claim, set, pod) { claim = claim.DeepCopy() // Make a copy so we don't mutate the shared cache. updateClaimOwnerRefForSetAndPod(logger, claim, set, pod) if err := spc.objectMgr.UpdateClaim(claim); err != nil { return fmt.Errorf("could not update claim %s for delete policy ownerRefs: %w", claimName, err) } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 14.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
Kind: "Unknown", Name: "unknown", UID: "xyz", Controller: ptr.To(true), }) } claim.SetOwnerReferences(claimRefs) updateClaimOwnerRefForSetAndPod(logger, &claim, &set, &pod) // Confirm that after the update, the specified owner is set as the only controller. // Any other controllers will be cleaned update by the update.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0)