Skip to content

Commit

Permalink
fix(k8s): avoid repeated Tiller install causing slower init
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and thsig committed Apr 29, 2019
1 parent e0543ad commit 766ef18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions garden-service/src/plugins/kubernetes/helm/tiller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export async function checkTillerStatus(ctx: PluginContext, provider: Kubernetes
}

export async function installTiller(ctx: PluginContext, provider: KubernetesProvider, log: LogEntry) {
if (await checkTillerStatus(ctx, provider, log) === "ready") {
return
}

const namespace = await getAppNamespace(ctx, log, provider)
const context = provider.config.context

Expand Down

0 comments on commit 766ef18

Please sign in to comment.