- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isClaimOwnerUpToDate (0.23 sec)
-
pkg/controller/statefulset/stateful_pod_control.go
case err != nil: return false, fmt.Errorf("Could not retrieve claim %s for %s when checking PVC deletion policy", claimName, pod.Name) default: if !isClaimOwnerUpToDate(logger, claim, set, pod) { return false, nil } } } return true, nil } // UpdatePodClaimForRetentionPolicy updates the PVCs used by pod to match the PVC deletion policy of set.
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.go
newRefs := []metav1.OwnerReference{} for _, ownerRef := range refs { if !predicate(&ownerRef) { newRefs = append(newRefs, ownerRef) } } return newRefs } // isClaimOwnerUpToDate returns false if the ownerRefs of the claim are not set consistently with the // PVC deletion policy for the StatefulSet. //
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_set_utils_test.go
Kind: "Pod", UID: "rand2-uid", }) } claim.SetOwnerReferences(claimRefs) shouldMatch := setPodRef == tc.needsPodRef && setSetRef == tc.needsSetRef if isClaimOwnerUpToDate(logger, &claim, &set, &pod) != shouldMatch { t.Errorf("Bad match for %s with pod=%v,set=%v,others=%v", tc.name, setPodRef, setSetRef, useOtherRefs) } } } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
} else if !strings.Contains(events[0], v1.EventTypeWarning) { t.Errorf("Found unexpected non-warning event %s", events[0]) } } func TestStatefulPodControlClaimsMatchDeletionPolcy(t *testing.T) { // The isClaimOwnerUpToDate is tested exhaustively in stateful_set_utils_test; this // test is for the wiring to the method tested there. _, ctx := ktesting.NewTestContext(t) fakeClient := &fake.Clientset{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0)