From 77fb9fa5e9d8f7718cc6dd9a176dec648c670428 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Mon, 18 Mar 2019 21:41:33 +0100 Subject: [PATCH] fix(k8s): regression in remote K8s init flow --- garden-service/src/plugins/kubernetes/init.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/garden-service/src/plugins/kubernetes/init.ts b/garden-service/src/plugins/kubernetes/init.ts index 2b65732c7e..75ff4527b2 100644 --- a/garden-service/src/plugins/kubernetes/init.ts +++ b/garden-service/src/plugins/kubernetes/init.ts @@ -184,15 +184,17 @@ export async function prepareRemoteEnvironment({ ctx, log }: PrepareEnvironmentP await login({ ctx: k8sCtx, log }) } + const provider = k8sCtx.provider + // Note: We don't need the system namespaces for remote k8s for now - // const provider = k8sCtx.provider // const api = new KubeApi(provider.config.context) // const contextForLog = `Preparing environment for plugin "kubernetes"` // if (!await systemNamespaceUpToDate(api, log, contextForLog)) { // await recreateSystemNamespaces(api, log) // } - // await installTiller(k8sCtx, provider, log) + + await installTiller(k8sCtx, provider, log) return {} }