- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for GetDeletionTimestamp (0.29 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) -
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/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/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) -
pkg/controlplane/controller/defaultservicecidr/default_servicecidr_controller.go
func (c *Controller) syncStatus(serviceCIDR *networkingapiv1alpha1.ServiceCIDR) { // don't sync the status of the ServiceCIDR if is being deleted, // deletion must be handled by the controller-manager if !serviceCIDR.GetDeletionTimestamp().IsZero() { return } // This controller will set the Ready condition to true if the Ready condition // does not exist and the CIDR values match this controller CIDR values.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 7.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go
// for a pre-existing object. This is opt-in for new objects with Status subresource. func ResetObjectMetaForStatus(meta, existingMeta Object) { meta.SetDeletionTimestamp(existingMeta.GetDeletionTimestamp()) meta.SetGeneration(existingMeta.GetGeneration()) meta.SetSelfLink(existingMeta.GetSelfLink()) meta.SetLabels(existingMeta.GetLabels()) meta.SetAnnotations(existingMeta.GetAnnotations())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 15 10:58:36 UTC 2022 - 9.6K bytes - Viewed (0)