Use kubectl patch

This commit is contained in:
Raj Perera 2017-06-16 12:29:13 -04:00 committed by Raj Perera
parent 9924a33d6f
commit b800f7bb07

View file

@ -25,10 +25,7 @@
when: helm_container.changed when: helm_container.changed
- name: Helm | Patch tiller deployment for RBAC - name: Helm | Patch tiller deployment for RBAC
shell: > command: kubectl patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' -n {{ system_namespace }}
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 -
when: rbac_enabled when: rbac_enabled
- name: Helm | Set up bash completion - name: Helm | Set up bash completion