From 1540bc97593f82faf0b12b6d4d17df106a48354e Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Fri, 16 Nov 2018 11:35:02 +0100 Subject: [PATCH] Fix patch type in kubectl patch for hostnameOverride (#3725) --- roles/win_nodes/kubernetes_patch/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/win_nodes/kubernetes_patch/tasks/main.yml b/roles/win_nodes/kubernetes_patch/tasks/main.yml index ef4452c97..89574cbff 100644 --- a/roles/win_nodes/kubernetes_patch/tasks/main.yml +++ b/roles/win_nodes/kubernetes_patch/tasks/main.yml @@ -19,7 +19,7 @@ register: current_kube_proxy_command - name: Apply hostnameOverride patch for kube-proxy daemonset - shell: "{{bin_dir}}/kubectl patch ds kube-proxy --namespace=kube-system --type=strategic -p \"$(cat hostnameOverride-patch.json)\"" + shell: "{{bin_dir}}/kubectl patch ds kube-proxy --namespace=kube-system --type=json -p \"$(cat hostnameOverride-patch.json)\"" args: chdir: "{{ kubernetes_user_manifests_path }}" register: patch_kube_proxy_command