Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for UpdateAction (0.17 sec)

  1. pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go

    						t.Fatalf("unexpected action %#v", action)
    					}
    					updateAction, ok := action.(clienttesting.UpdateAction)
    					if !ok {
    						t.Fatalf("unexpected action %#v", action)
    					}
    					if !equality.Semantic.DeepEqual(updateAction.GetObject().(*rbacv1.ClusterRole), test.expectedClusterRole) {
    						t.Fatalf("%v", cmp.Diff(test.expectedClusterRole, updateAction.GetObject().(*rbacv1.ClusterRole)))
    					}
    				}
    			})
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_pod_control_test.go

    	fakeClient.AddReactor("update", "pods", func(action core.Action) (bool, runtime.Object, error) {
    		update := action.(core.UpdateAction)
    		return true, update.GetObject(), nil
    	})
    	fakeClient.AddReactor("create", "persistentvolumeclaims", func(action core.Action) (bool, runtime.Object, error) {
    		update := action.(core.UpdateAction)
    		return true, update.GetObject(), nil
    	})
    	var updated *v1.Pod
    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. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy

            then:
            1 * fileAccess.writeFile(!null) >> { it[0].run() }
    
            when:
            cache.update({ value ->
                assert value == "foo"
                return "foo bar"
            } as ObjectHolder.UpdateAction)
    
            then:
            1 * fileAccess.updateFile(!null) >> { it[0].run() }
    
            when:
            def result = cache.get()
    
            then:
            result == "foo bar"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		updateAction := action.(core.UpdateAction)
    		node := updateAction.GetObject().(*v1.Node)
    		for index, n := range nodes.Items {
    			if n.Name == node.Name {
    				nodes.Items[index] = *node
    			}
    		}
    		return true, updateAction.GetObject(), nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  5. pkg/controlplane/controller/kubernetesservice/controller_test.go

    			if err != nil {
    				t.Errorf("case %q: unexpected error: %v", test.testName, err)
    			}
    			updates := []core.UpdateAction{}
    			for _, action := range fakeClient.Actions() {
    				if action.GetVerb() == "update" {
    					updates = append(updates, action.(core.UpdateAction))
    				}
    			}
    			if test.expectUpdate != nil {
    				if len(updates) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/testing/testing.go

    	if err != nil {
    		return true, nil, err
    	}
    
    	// Test did not request to inject an error, continue simulating API server.
    	switch {
    	case action.Matches("create", "persistentvolumes"):
    		obj := action.(core.UpdateAction).GetObject()
    		volume := obj.(*v1.PersistentVolume)
    
    		// check the volume does not exist
    		_, found := r.volumes[volume.Name]
    		if found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/scopeids/DefaultPersistentScopeIdLoader.java

            return buildTreeScopedCacheBuilderFactory;
        }
    
        private UniqueId get(ScopeParams params) {
            ObjectHolder<UniqueId> store = store(params);
    
            return store.maybeUpdate(new ObjectHolder.UpdateAction<UniqueId>() {
                @Override
                public UniqueId update(UniqueId oldValue) {
                    if (oldValue == null) {
                        return generator.create();
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 18:14:29 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. pkg/controller/volume/pvprotection/pv_protection_controller_test.go

    	i := 0
    	return func(action clienttesting.Action) (bool, runtime.Object, error) {
    		i++
    		if i <= failures {
    			// Update fails
    			update, ok := action.(clienttesting.UpdateAction)
    
    			if !ok {
    				t.Fatalf("Reactor got non-update action: %+v", action)
    			}
    			acc, _ := meta.Accessor(update.GetObject())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. pkg/controller/certificates/rootcacertpublisher/publisher_test.go

    				if len(actions) != 1 {
    					t.Fatal(actions)
    				}
    				if actions[0].GetVerb() != "update" {
    					t.Fatal(actions)
    				}
    				actualObj := actions[0].(clienttesting.UpdateAction).GetObject()
    				if actualObj.(*v1.ConfigMap).Annotations[DescriptionAnnotation] != Description {
    					t.Fatal(actions)
    				}
    				if !reflect.DeepEqual(actualObj.(*v1.ConfigMap).Data["ca.crt"], "fake") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. plugin/pkg/admission/resourcequota/admission_test.go

    	}
    
    	decimatedActions := removeListWatch(kubeClient.Actions())
    	lastActionIndex := len(decimatedActions) - 1
    	usage := decimatedActions[lastActionIndex].(testcore.UpdateAction).GetObject().(*corev1.ResourceQuota)
    	expectedUsage := corev1.ResourceQuota{
    		Status: corev1.ResourceQuotaStatus{
    			Hard: corev1.ResourceList{
    				corev1.ResourceCPU:    resource.MustParse("3"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
Back to top