Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for controllerRef (0.23 sec)

  1. pkg/controller/daemon/daemon_controller_test.go

    	}
    	// Every Pod created should have a ControllerRef.
    	if got, want := len(fakePodControl.ControllerRefs), expectedCreates; got != want {
    		return fmt.Errorf("len(ControllerRefs) = %v, want %v", got, want)
    	}
    	// Make sure the ControllerRefs are correct.
    	for _, controllerRef := range fakePodControl.ControllerRefs {
    		if got, want := controllerRef.APIVersion, "apps/v1"; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  2. pkg/controller/controller_utils_test.go

    			},
    			wantPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels:          controllerSpec.Spec.Template.Labels,
    					GenerateName:    generateName,
    					OwnerReferences: []metav1.OwnerReference{*controllerRef},
    				},
    				Spec: controllerSpec.Spec.Template.Spec,
    			},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller_test.go

    					t.Errorf("controllerRef.APIVersion = %q, want %q", got, want)
    				}
    				if got, want := controllerRef.Kind, "Job"; got != want {
    					t.Errorf("controllerRef.Kind = %q, want %q", got, want)
    				}
    				if got, want := controllerRef.Name, job.Name; got != want {
    					t.Errorf("controllerRef.Name = %q, want %q", got, want)
    				}
    				if got, want := controllerRef.UID, job.UID; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  4. pkg/controller/daemon/update.go

    		if err != nil {
    			return nil, err
    		}
    	}
    	return keepCur, nil
    }
    
    // controlledHistories returns all ControllerRevisions controlled by the given DaemonSet.
    // This also reconciles ControllerRef by adopting/orphaning.
    // Note that returned histories are pointers to objects in the cache.
    // If you want to modify one, you need to deep-copy it first.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. pkg/controller/disruption/disruption_test.go

    		},
    	}
    
    	for tn, tc := range testCases {
    		t.Run(tn, func(t *testing.T) {
    			controllerRef := &metav1.OwnerReference{
    				APIVersion: tc.apiVersion,
    				Kind:       tc.kind,
    				Name:       tc.name,
    				UID:        tc.uid,
    			}
    
    			controllerAndScale, _ := tc.finderFunc(ctx, controllerRef, metav1.NamespaceDefault)
    
    			if controllerAndScale == nil {
    				if tc.findsScale {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  6. pkg/printers/internalversion/printers.go

    	}
    
    	controllerRef := metav1.GetControllerOf(obj)
    	controllerName := "<none>"
    	if controllerRef != nil {
    		withKind := true
    		gv, err := schema.ParseGroupVersion(controllerRef.APIVersion)
    		if err != nil {
    			return nil, err
    		}
    		gvk := gv.WithKind(controllerRef.Kind)
    		controllerName = formatResourceName(gvk.GroupKind(), controllerRef.Name, withKind)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.7.md

    * Job controller now respects ControllerRef to avoid fighting over Pods. ([#42176](https://github.com/kubernetes/kubernetes/pull/42176), [@enisoc](https://github.com/enisoc))
    
    * CronJob controller now respects ControllerRef to avoid fighting with other controllers. ([#42177](https://github.com/kubernetes/kubernetes/pull/42177), [@enisoc](https://github.com/enisoc))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 13:44:43 UTC 2022
    - 308.7K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.6.md

    unschedulable pods, scale up is required and cloud provider is slow to set up networking for new nodes.
    Anyway, the cluster should get back to the proper size after 10 min.
    
    ### Deployment
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 304K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.8.md

    ### Apps
    
    - The `.spec.rollbackTo` field of the Deployment kind is deprecated in `extensions/v1beta1`.
    
    - The `kubernetes.io/created-by` annotation is deprecated and will be removed in version 1.9.
      Use [ControllerRef](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/controller-ref.md) instead to determine which controller, if any, owns an object.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 312.2K bytes
    - Viewed (0)
  10. pkg/controller/job/tracking_utils.go

    // the uidStoreLock.
    func (u *uidTrackingExpectations) getSet(controllerKey string) *uidSet {
    	if obj, exists, err := u.store.GetByKey(controllerKey); err == nil && exists {
    		return obj.(*uidSet)
    	}
    	return nil
    }
    
    func (u *uidTrackingExpectations) getExpectedUIDs(controllerKey string) sets.Set[string] {
    	uids := u.getSet(controllerKey)
    	if uids == nil {
    		return nil
    	}
    	uids.RLock()
    	set := uids.set.Clone()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top