Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewHistory (0.15 sec)

  1. pkg/controller/history/controller_history_test.go

    		informer := informerFactory.Apps().V1().ControllerRevisions()
    		informerFactory.WaitForCacheSync(stop)
    		for i := range test.revisions {
    			informer.Informer().GetIndexer().Add(test.revisions[i])
    		}
    
    		history := NewHistory(client, informer.Lister())
    		revisions, err := history.ListControllerRevisions(test.parent, test.selector)
    		if err != nil {
    			t.Errorf("%s: %s", test.name, err)
    		}
    		got := make(map[string]bool)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  2. pkg/apis/apps/validation/validation.go

    func ValidateControllerRevisionUpdate(newHistory, oldHistory *apps.ControllerRevision) field.ErrorList {
    	errs := field.ErrorList{}
    
    	errs = append(errs, apivalidation.ValidateObjectMetaUpdate(&newHistory.ObjectMeta, &oldHistory.ObjectMeta, field.NewPath("metadata"))...)
    	errs = append(errs, ValidateControllerRevision(newHistory)...)
    	errs = append(errs, apivalidation.ValidateImmutableField(newHistory.Data, oldHistory.Data, field.NewPath("data"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  3. pkg/apis/apps/validation/validation_test.go

    	)
    
    	cases := []struct {
    		name       string
    		newHistory apps.ControllerRevision
    		oldHistory apps.ControllerRevision
    		isValid    bool
    	}{{
    		name:       "valid",
    		newHistory: valid,
    		oldHistory: valid,
    		isValid:    true,
    	}, {
    		name:       "invalid",
    		newHistory: noVersion,
    		oldHistory: valid,
    		isValid:    false,
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set.go

    			NewStatefulPodControl(
    				kubeClient,
    				podInformer.Lister(),
    				pvcInformer.Lister(),
    				recorder),
    			NewRealStatefulSetStatusUpdater(kubeClient, setInformer.Lister()),
    			history.NewHistory(kubeClient, revInformer.Lister()),
    		),
    		pvcListerSynced: pvcInformer.Informer().HasSynced,
    		revListerSynced: revInformer.Informer().HasSynced,
    		queue: workqueue.NewTypedRateLimitingQueueWithConfig(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top