From d4d95012c75f71cc6628bdee4e0a3023f63ae9df Mon Sep 17 00:00:00 2001 From: Alexey Odinokov Date: Fri, 24 Apr 2020 05:14:08 +0000 Subject: [PATCH] Added needed calls for HelmV3 --- .../v1/chartinflator/ChartInflator | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/plugin/someteam.example.com/v1/chartinflator/ChartInflator b/plugin/someteam.example.com/v1/chartinflator/ChartInflator index aba44f26e..3cdca0f26 100755 --- a/plugin/someteam.example.com/v1/chartinflator/ChartInflator +++ b/plugin/someteam.example.com/v1/chartinflator/ChartInflator @@ -145,8 +145,13 @@ function v2PullChart { } function v3PullChart { - # TODO implement - echo "?? helmV3 pull --repo https://hub.helm.sh/charts/ stable/minecraft --destination /tmp/junk" + if [ ! -d "$chartHome/$chartName" ]; then + v3RunHelm pull $chartVersionArg \ + $chartRepoArg \ + --untar \ + --untardir $chartHome \ + $chartNameArg + fi } function v2InflateChart { @@ -158,8 +163,12 @@ function v2InflateChart { } function v3InflateChart { - # TODO implement - true + v3RunHelm template \ + --release-name $releaseName \ + --namespace $releaseNamespace \ + --values $valuesFile \ + $chartHome/$chartName + } HELM_VERSION=$($helmBin version -c --short)