Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewUpdateAction (0.34 sec)

  1. pkg/controller/volume/pvprotection/pv_protection_controller_test.go

    				},
    			},
    			expectedActions: []clienttesting.Action{
    				// This fails
    				clienttesting.NewUpdateAction(pvVer, "", withProtectionFinalizer(pv())),
    				// This fails too
    				clienttesting.NewUpdateAction(pvVer, "", withProtectionFinalizer(pv())),
    				// This succeeds
    				clienttesting.NewUpdateAction(pvVer, "", withProtectionFinalizer(pv())),
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go

    				},
    			},
    			expectedActions: []clienttesting.Action{
    				// This fails
    				clienttesting.NewUpdateAction(pvcGVR, defaultNS, withProtectionFinalizer(pvc())),
    				// This fails too
    				clienttesting.NewUpdateAction(pvcGVR, defaultNS, withProtectionFinalizer(pvc())),
    				// This succeeds
    				clienttesting.NewUpdateAction(pvcGVR, defaultNS, withProtectionFinalizer(pvc())),
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  3. security/pkg/k8s/configutil_test.go

    		},
    		{
    			name:              "existing empty ConfigMap",
    			existingConfigMap: createConfigMap(namespaceName, configMapName, map[string]string{}),
    			expectedActions: []ktesting.Action{
    				ktesting.NewUpdateAction(gvr, namespaceName, createConfigMap(namespaceName, configMapName, testData)),
    			},
    			expectedErr: "",
    		},
    		{
    			name:              "existing nop ConfigMap",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    func (c *FakeExamples) Update(ctx context.Context, example *v1.Example, opts metav1.UpdateOptions) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewUpdateAction(examplesResource, c.ns, example), emptyResult)
    
    	if obj == nil {
    		return emptyResult, err
    	}
    	return obj.(*v1.Example), err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. pkg/controller/deployment/deployment_controller_test.go

    func (f *fixture) expectUpdateDeploymentStatusAction(d *apps.Deployment) {
    	action := core.NewUpdateAction(schema.GroupVersionResource{Resource: "deployments"}, d.Namespace, d)
    	action.Subresource = "status"
    	f.actions = append(f.actions, action)
    }
    
    func (f *fixture) expectUpdateDeploymentAction(d *apps.Deployment) {
    	action := core.NewUpdateAction(schema.GroupVersionResource{Resource: "deployments"}, d.Namespace, d)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top