From c14bbcdbf2ab981eb8ead07445dfbc49f57ce6b8 Mon Sep 17 00:00:00 2001
From: Simon Li <spli@dundee.ac.uk>
Date: Mon, 18 Sep 2017 18:43:44 +0100
Subject: [PATCH] Include bin_dir when patching helm tiller with kubectl

---
 roles/kubernetes-apps/helm/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/kubernetes-apps/helm/tasks/main.yml b/roles/kubernetes-apps/helm/tasks/main.yml
index d01211e2f..460cb05ab 100644
--- a/roles/kubernetes-apps/helm/tasks/main.yml
+++ b/roles/kubernetes-apps/helm/tasks/main.yml
@@ -36,7 +36,7 @@
   when: helm_container.changed
 
 - name: Helm | Patch tiller deployment for RBAC
-  command: kubectl patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' -n {{ system_namespace }}
+  command: "{{bin_dir}}/kubectl patch deployment tiller-deploy -p '{\"spec\":{\"template\":{\"spec\":{\"serviceAccount\":\"tiller\"}}}}' -n {{ system_namespace }}"
   when: rbac_enabled
 
 - name: Helm | Set up bash completion
-- 
GitLab