- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for GetDeletionTimestamp (0.26 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list_test.go
assert.Equal(t, "test", val) } func TestNilDeletionTimestamp(t *testing.T) { var u Unstructured del := u.GetDeletionTimestamp() if del != nil { t.Errorf("unexpected non-nil deletion timestamp: %v", del) } u.SetDeletionTimestamp(u.GetDeletionTimestamp()) del = u.GetDeletionTimestamp() if del != nil { t.Errorf("unexpected non-nil deletion timestamp: %v", del) } _, ok := u.Object["metadata"]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 11 03:19:42 UTC 2020 - 2.6K bytes - Viewed (0) -
pkg/controller/volume/protectionutil/utils.go
func IsDeletionCandidate(obj metav1.Object, finalizer string) bool { return obj.GetDeletionTimestamp() != nil && slice.ContainsString(obj.GetFinalizers(), finalizer, nil) } // NeedToAddFinalizer checks if need to add finalizer to object func NeedToAddFinalizer(obj metav1.Object, finalizer string) bool { return obj.GetDeletionTimestamp() == nil && !slice.ContainsString(obj.GetFinalizers(), finalizer, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 17 14:24:42 UTC 2019 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go
gottenNoxuInstance, err := noxuResourceClient.Get(context.TODO(), name, metav1.GetOptions{}) require.NoError(t, err) require.NotNil(t, gottenNoxuInstance.GetDeletionTimestamp()) // Trying to delete it again to confirm it will not remove the object because finalizer is still there. err = noxuResourceClient.Delete(context.TODO(), name, metav1.DeleteOptions{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 5.8K bytes - Viewed (0) -
pkg/controller/controller_ref_manager.go
return false, err } // Successfully released. return false, nil } // It's an orphan. if m.Controller.GetDeletionTimestamp() != nil || !match(obj) { // Ignore if we're being deleted or selector doesn't match. return false, nil } if obj.GetDeletionTimestamp() != nil { // Ignore if the object is being deleted return false, 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) -
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go
allErrs = append(allErrs, ValidateImmutableField(newMeta.GetCreationTimestamp(), oldMeta.GetCreationTimestamp(), fldPath.Child("creationTimestamp"))...) allErrs = append(allErrs, ValidateImmutableField(newMeta.GetDeletionTimestamp(), oldMeta.GetDeletionTimestamp(), fldPath.Child("deletionTimestamp"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 12K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go
SetResourceVersion(version string) GetGeneration() int64 SetGeneration(generation int64) GetSelfLink() string SetSelfLink(selfLink string) GetCreationTimestamp() Time SetCreationTimestamp(timestamp Time) GetDeletionTimestamp() *Time SetDeletionTimestamp(timestamp *Time) GetDeletionGracePeriodSeconds() *int64 SetDeletionGracePeriodSeconds(*int64) GetLabels() map[string]string SetLabels(labels map[string]string)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go
func() { o.object.SetCreationTimestamp(timestamp) }, ) } func (o *cachingObject) GetDeletionTimestamp() *metav1.Time { o.lock.RLock() defer o.lock.RUnlock() return o.object.GetDeletionTimestamp() } func (o *cachingObject) SetDeletionTimestamp(timestamp *metav1.Time) { o.conditionalSet( func() bool { return o.object.GetDeletionTimestamp() == timestamp }, func() { o.object.SetDeletionTimestamp(timestamp) }, ) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 18:03:48 UTC 2023 - 12.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/delete.go
// the obcject before deleting it. return false, false, nil } // if the object is already being deleted, no need to update generation. if objectMeta.GetDeletionTimestamp() != nil { // if we are already being deleted, we may only shorten the deletion grace period // this means the object was gracefully deleted previously but deletionGracePeriodSeconds was not set,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 07 17:43:41 UTC 2021 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go
t.Errorf("GetCreationTimestamp() = %s, want %s", got, want) } if got, want := unstruct.GetDeletionTimestamp(), metav1.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC); got == nil || !got.Equal(&want) { t.Errorf("GetDeletionTimestamp() = %s, want %s", got, want) } if got, want := unstruct.GetLabels(), map[string]string{"test_label": "test_value"}; !reflect.DeepEqual(got, want) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
uCopy.SetUID(u.GetUID()) uCopy.SetResourceVersion(u.GetResourceVersion()) uCopy.SetGeneration(u.GetGeneration()) uCopy.SetCreationTimestamp(u.GetCreationTimestamp()) uCopy.SetDeletionTimestamp(u.GetDeletionTimestamp()) uCopy.SetDeletionGracePeriodSeconds(u.GetDeletionGracePeriodSeconds()) uCopy.SetLabels(u.GetLabels()) uCopy.SetAnnotations(u.GetAnnotations()) uCopy.SetOwnerReferences(u.GetOwnerReferences())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5K bytes - Viewed (0)