- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for SetOwnerReferences (0.43 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
u.SetResourceVersion("") u.SetGeneration(0) u.SetCreationTimestamp(metav1.Time{}) u.SetDeletionTimestamp(nil) u.SetDeletionGracePeriodSeconds(nil) u.SetLabels(nil) u.SetAnnotations(nil) u.SetOwnerReferences(nil) u.SetFinalizers(nil) u.SetManagedFields(nil) gotMetadata, _, err := unstructured.NestedFieldNoCopy(u.UnstructuredContent(), "metadata") if err != nil { t.Error(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5K bytes - Viewed (0) -
pkg/registry/rbac/helpers.go
copied := obj.DeepCopyObject() copiedMeta, err := meta.Accessor(copied) if err != nil { return false } oldMeta, err := meta.Accessor(old) if err != nil { return false } copiedMeta.SetOwnerReferences(oldMeta.GetOwnerReferences()) copiedMeta.SetFinalizers(oldMeta.GetFinalizers()) copiedMeta.SetSelfLink(oldMeta.GetSelfLink()) copiedMeta.SetManagedFields(oldMeta.GetManagedFields())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 29 16:29:43 UTC 2020 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go
GetAnnotations() map[string]string SetAnnotations(annotations map[string]string) GetFinalizers() []string SetFinalizers(finalizers []string) GetOwnerReferences() []OwnerReference SetOwnerReferences([]OwnerReference) GetManagedFields() []ManagedFieldsEntry SetManagedFields(managedFields []ManagedFieldsEntry) } // ListMetaAccessor retrieves the list interface from an object type ListMetaAccessor interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
}, metav1.OwnerReference{ Name: "rand2", APIVersion: "v1", Kind: "Pod", UID: "rand2-uid", }) } claim.SetOwnerReferences(claimRefs) shouldMatch := setPodRef == tc.needsPodRef && setSetRef == tc.needsSetRef if isClaimOwnerUpToDate(logger, &claim, &set, &pod) != shouldMatch {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go
o.lock.RLock() defer o.lock.RUnlock() return o.object.GetOwnerReferences() } func (o *cachingObject) SetOwnerReferences(references []metav1.OwnerReference) { o.conditionalSet( func() bool { return reflect.DeepEqual(o.object.GetOwnerReferences(), references) }, func() { o.object.SetOwnerReferences(references) }, ) } func (o *cachingObject) GetManagedFields() []metav1.ManagedFieldsEntry { o.lock.RLock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 18:03:48 UTC 2023 - 12.6K bytes - Viewed (0) -
pkg/controller/garbagecollector/patch.go
if owner.BlockOwnerDeletion != nil && *owner.BlockOwnerDeletion { ref := owner ref.BlockOwnerDeletion = &falseVar blockingRefs = append(blockingRefs, ref) } } dummy.ObjectMeta.SetOwnerReferences(blockingRefs) dummy.ObjectMeta.UID = n.identity.UID return json.Marshal(dummy) } // Generate a JSON merge patch that unsets the BlockOwnerDeletion field of all // ownerReferences of node.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 13:33:52 UTC 2021 - 5.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go
Name: "podb", APIVersion: "v1", UID: "2", Controller: &trueVar, BlockOwnerDeletion: &trueVar, }, } unstruct.SetOwnerReferences(newOwnerReferences) unstruct.SetFinalizers([]string{"finalizer.1", "finalizer.2"}) unstruct.SetDeletionGracePeriodSeconds(&ten) unstruct.SetGeneration(ten) if !reflect.DeepEqual(unstruct, 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) -
pkg/controller/statefulset/stateful_pod_control_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go
meta.SetSelfLink(existingMeta.GetSelfLink()) meta.SetLabels(existingMeta.GetLabels()) meta.SetAnnotations(existingMeta.GetAnnotations()) meta.SetFinalizers(existingMeta.GetFinalizers()) meta.SetOwnerReferences(existingMeta.GetOwnerReferences()) // managedFields must be preserved since it's been modified to // track changed fields in the status update. //meta.SetManagedFields(existingMeta.GetManagedFields()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 15 10:58:36 UTC 2022 - 9.6K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
return matchesRef(ref, set, controllerKind) || matchesRef(ref, pod, podKind) }) if unexpectedController { // Leave ownerRefs to our set & pod scrubed and return without creating new ones. claim.SetOwnerReferences(refs) return } policy := getPersistentVolumeClaimRetentionPolicy(set) const retain = apps.RetainPersistentVolumeClaimRetentionPolicyType
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0)