- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for UpdateAction (0.29 sec)
-
pilot/pkg/leaderelection/k8sleaderelection/leaderelection_test.go
}, }, { verb: "update", objectType: primaryType, reaction: func(action fakeclient.Action) (handled bool, ret runtime.Object, err error) { return true, action.(fakeclient.UpdateAction).GetObject(), nil }, }, { verb: "get", objectType: secondaryType, reaction: func(action fakeclient.Action) (handled bool, ret runtime.Object, err error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 23 16:39:43 UTC 2023 - 42.5K bytes - Viewed (0) -
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) -
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) -
pkg/controlplane/reconcilers/helpers_test.go
errors := []error{} updates := []k8stesting.UpdateAction{} creates := []k8stesting.CreateAction{} for _, action := range fakeClient.Actions() { if action.GetVerb() == "update" { updates = append(updates, action.(k8stesting.UpdateAction)) } else if action.GetVerb() == "create" { creates = append(creates, action.(k8stesting.CreateAction)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 27 12:46:23 UTC 2022 - 4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 5K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/testing/testvolumespec.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 17 08:48:30 UTC 2023 - 16.5K bytes - Viewed (0) -
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) -
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) -
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) -
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)