From b800f7bb074aac3afa3d7e770e8bf8a9d6ab5b1b Mon Sep 17 00:00:00 2001 From: Raj Perera Date: Fri, 16 Jun 2017 12:29:13 -0400 Subject: [PATCH] Use kubectl patch --- roles/kubernetes-apps/helm/tasks/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/roles/kubernetes-apps/helm/tasks/main.yml b/roles/kubernetes-apps/helm/tasks/main.yml index 8c8123eb0..aaa1d3c5d 100644 --- a/roles/kubernetes-apps/helm/tasks/main.yml +++ b/roles/kubernetes-apps/helm/tasks/main.yml @@ -25,10 +25,7 @@ when: helm_container.changed - name: Helm | Patch tiller deployment for RBAC - shell: > - kubectl --namespace={{ system_namespace }} get deployment tiller-deploy -o json | \ - python -c 'import sys,json;a=json.load(sys.stdin);a["spec"]["template"]["spec"]["serviceAccount"]="tiller";json.dump(a,sys.stdout)' | \ - kubectl apply -n {{ system_namespace }} -f - + command: kubectl patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' -n {{ system_namespace }} when: rbac_enabled - name: Helm | Set up bash completion