- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 738 for getPatch (0.15 sec)
-
cmd/kubeadm/app/util/apiclient/dryrunclient.go
} } patchAction, ok := action.(core.PatchAction) if ok { // Replace all occurrences of \" with a simple " when printing fmt.Fprintf(w, "[dryrun] Attached patch:\n\t%s\n", strings.Replace(string(patchAction.GetPatch()), `\"`, `"`, -1)) } } // PrintBytesWithLinePrefix prints objBytes to writer w with linePrefix in the beginning of every line func PrintBytesWithLinePrefix(w io.Writer, objBytes []byte, linePrefix string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 21 09:49:59 UTC 2022 - 10.3K bytes - Viewed (0) -
pkg/scheduler/util/utils_test.go
cs.AddReactor("patch", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) { actualPatchRequests++ patch := action.(clienttesting.PatchAction) actualPatchData = string(patch.GetPatch()) // For this test, we don't care about the result of the patched pod, just that we got the expected // patch request, so just returning &v1.Pod{} here is OK because scheduler doesn't use the response.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 14.5K bytes - Viewed (0) -
pkg/controller/history/controller_history_test.go
} b, err := strategicpatch.StrategicMergePatch( []byte(runtime.EncodeOrDie(clientscheme.Codecs.LegacyCodec(apps.SchemeGroupVersion), test.revision)), action.GetPatch(), test.revision) if err != nil { return true, nil, err } obj, err := runtime.Decode(clientscheme.Codecs.LegacyCodec(apps.SchemeGroupVersion), b) if err != nil { return true, nil, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 49.1K bytes - Viewed (0) -
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
} actions := client.Actions() var node *v1.Node if action := hasPatchAction(actions); action != nil { node, err = applyNodeStatusPatch(tc.existingNode, action.(clienttesting.PatchActionImpl).GetPatch()) assert.NoError(t, err) } else { node, err = client.CoreV1().Nodes().Get(context.TODO(), nodeName, metav1.GetOptions{}) assert.NoError(t, err) } if node == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 17 02:02:59 UTC 2022 - 34.3K bytes - Viewed (0) -
pkg/controller/podgc/gc_controller_test.go
} if patchAction != nil && test.expectedPatchedPod == nil { t.Fatalf("Pod was pactched but expectedPatchedPod is nil") } if test.expectedPatchedPod != nil { patchedPodBytes := patchAction.GetPatch() originalPod, err := json.Marshal(test.pod) if err != nil { t.Fatalf("Failed to marshal original pod %#v: %v", originalPod, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 08:16:48 UTC 2024 - 29K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_test.go
pods[2].Name = "x" + pods[2].Name ssc.kubeClient.(*fake.Clientset).PrependReactor("patch", "pods", func(action core.Action) (bool, runtime.Object, error) { patch := action.(core.PatchAction).GetPatch() target := action.(core.PatchAction).GetName() var pod *v1.Pod for _, p := range pods { if p.Name == target { pod = p break } } if pod == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.1K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
for _, action := range actions { if action.GetVerb() == "patch" { var ( err error patchAction = action.(core.PatchActionImpl) patchContent = patchAction.GetPatch() ) savedNode, err = applyNodeStatusPatch(test.existingNode, patchContent) if err != nil { t.Logf("node patching failed, %v", err) return false, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
cs.AddReactor("patch", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) { actualPatchRequests++ patch := action.(clienttesting.PatchAction) actualPatchData = string(patch.GetPatch()) // For this test, we don't care about the result of the patched pod, just that we got the expected // patch request, so just returning &v1.Pod{} here is OK because scheduler doesn't use the response.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/os/OperatingSystem.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 11.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/listener.go
} if match.GetPathSeparatedPrefix() != "" { conds = append(conds, fmt.Sprintf("PathPrefix:%s", match.GetPathSeparatedPrefix())) } if match.GetPath() != "" { conds = append(conds, match.GetPath()) } if match.GetSafeRegex() != nil { conds = append(conds, fmt.Sprintf("regex %s", match.GetSafeRegex().Regex)) } // Ignore headers return strings.Join(conds, " ") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 18.1K bytes - Viewed (0)