Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NewHistory (0.14 sec)

  1. pkg/registry/apps/controllerrevision/strategy_test.go

    	)
    
    	cases := []struct {
    		name       string
    		newHistory *apps.ControllerRevision
    		oldHistory *apps.ControllerRevision
    		isValid    bool
    	}{
    		{
    			name:       "valid",
    			newHistory: valid,
    			oldHistory: valid,
    			isValid:    true,
    		},
    		{
    			name:       "changed data",
    			newHistory: changedData,
    			oldHistory: valid,
    			isValid:    false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 4.5K bytes
    - Viewed (0)
  2. pkg/controller/history/controller_history.go

    }
    
    // NewHistory returns an instance of Interface that uses client to communicate with the API Server and lister to list
    // ControllerRevisions. This method should be used to create an Interface for all scenarios other than testing.
    func NewHistory(client clientset.Interface, lister appslisters.ControllerRevisionLister) Interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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