Use kubectl patch

This commit is contained in:
Raj Perera 2017-06-16 12:29:13 -04:00 committed by jwfang
parent 5a86194038
commit 442ebce3d8

View file

@ -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