- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for matchesRef (0.22 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
} if set.Spec.PersistentVolumeClaimRetentionPolicy != nil { policy = *set.Spec.PersistentVolumeClaimRetentionPolicy } return policy } // matchesRef returns true when the object matches the owner reference, that is the name and GVK are the same. func matchesRef(ref *metav1.OwnerReference, obj metav1.Object, gvk schema.GroupVersionKind) bool {
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
}, obj: metav1.ObjectMeta{ Name: "fred", UID: "abc", }, schema: podKind, shouldMatch: false, }, } for _, tc := range testCases { got := matchesRef(&tc.ref, &tc.obj, tc.schema) if got != tc.shouldMatch { t.Errorf("Failed %s: got %t, expected %t", tc.name, got, tc.shouldMatch) } } } func TestIsClaimOwnerUpToDate(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0)