Skip to content

Commit

Permalink
fix: Handle Helm home for both versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvichery committed Apr 2, 2020
1 parent 88d1e47 commit 11e478f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,17 @@ async function run() {
"--wait",
"--atomic",
`--namespace=${namespace}`,
'--home=/root/.helm/',
];

// Per https://helm.sh/docs/faq/#xdg-base-directory-support
if (helm === "helm3") {
process.env.XDG_DATA_HOME = "/root/.helm/"
process.env.XDG_CACHE_HOME = "/root/.helm/"
process.env.XDG_CONFIG_HOME = "/root/.helm/"
} else {
process.env.HELM_HOME = "/root/.helm/"
}

if (dryRun) args.push("--dry-run");
if (appName) args.push(`--set=app.name=${appName}`);
if (version) args.push(`--set=app.version=${version}`);
Expand Down

0 comments on commit 11e478f

Please sign in to comment.