Skip to content

Commit

Permalink
fix(k8s): avoid "no deployed releases" errors after Helm install fail…
Browse files Browse the repository at this point in the history
…ure (#1046)
  • Loading branch information
edvald authored Jul 30, 2019
1 parent 514f9f5 commit 87dc922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions garden-service/src/plugins/kubernetes/helm/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export async function deployService(
"--name", releaseName,
"--namespace", namespace,
"--values", valuesPath,
// Make sure chart gets purged if it fails to install
"--atomic",
"--timeout", "600",
]
if (force) {
installArgs.push("--replace")
Expand Down
2 changes: 2 additions & 0 deletions garden-service/src/plugins/kubernetes/helm/helm-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ export async function helm(namespace: string, context: string, log: LogEntry, ..
return helmCmd.stdout({
log,
args,
// Helm itself will time out pretty reliably, so we shouldn't time out early on our side.
timeout: 3600,
})
}

0 comments on commit 87dc922

Please sign in to comment.