Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetOwnerReferences (0.27 sec)

  1. 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)
  2. pkg/controller/statefulset/stateful_pod_control_test.go

    			case exists:
    				claimIndexer.Add(&claim)
    			case stale:
    				claim.SetOwnerReferences([]metav1.OwnerReference{
    					{
    						Name:       "set-3",
    						UID:        types.UID("stale"),
    						APIVersion: "v1",
    						Kind:       "Pod",
    					},
    				})
    				claimIndexer.Add(&claim)
    			case withRef:
    				claim.SetOwnerReferences([]metav1.OwnerReference{
    					{
    						Name:       "set-3",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. 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)
  4. pkg/kube/util.go

    	}
    	// ManagedFields is large and we never use it
    	t.GetObjectMeta().SetManagedFields(nil)
    	// Annotation is never used
    	t.GetObjectMeta().SetAnnotations(nil)
    	// OwnerReference is never used
    	t.GetObjectMeta().SetOwnerReferences(nil)
    	// only node labels and addressed are useful
    	if node := obj.(*corev1.Node); node != nil {
    		node.Status.Allocatable = nil
    		node.Status.Capacity = nil
    		node.Status.Images = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top