Allow fetching a versioned chart
As of now, the auto-deploy
allows setting variables like AUTO_DEVOPS_CHART_REPOSITORY
and AUTO_DEVOPS_CHART
that one can utilize to grab and use a different chart.
helm repo add ${AUTO_DEVOPS_CHART_REPOSITORY_NAME:-gitlab} ${AUTO_DEVOPS_CHART_REPOSITORY:-https://charts.gitlab.io} ${AUTO_DEVOPS_CHART_REPOSITORY_USERNAME:+"--username" "$AUTO_DEVOPS_CHART_REPOSITORY_USERNAME"} ${AUTO_DEVOPS_CHART_REPOSITORY_PASSWORD:+"--password" "$AUTO_DEVOPS_CHART_REPOSITORY_PASSWORD"}
However it would be great we can customize it further to allow setting version of chart to helm fetch
through a environment variable here https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/blob/master/src/bin/auto-deploy#L49
helm fetch ${auto_chart} --untar
According to helm fetch
documentation
--version string specify the exact chart version to install. If this is not specified, the latest version is installed