Skip to content

Commit

Permalink
improvement(k8s): set --atomic flag on helm upgrade
Browse files Browse the repository at this point in the history
This avoids issues with dangling resources after a failed upgrade.
  • Loading branch information
edvald committed Dec 18, 2019
1 parent b0ebf22 commit 7a9ed31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garden-service/src/plugins/kubernetes/helm/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function deployHelmService({
await helm({ ctx: k8sCtx, namespace, log, args: [...installArgs] })
} else {
log.silly(`Upgrading Helm release ${releaseName}`)
const upgradeArgs = ["upgrade", releaseName, chartPath, "--install", ...commonArgs]
const upgradeArgs = ["upgrade", releaseName, chartPath, "--install", "--atomic", ...commonArgs]
await helm({ ctx: k8sCtx, namespace, log, args: [...upgradeArgs] })
}

Expand Down

0 comments on commit 7a9ed31

Please sign in to comment.