File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -145,19 +145,6 @@ jobs:
145
145
with :
146
146
version : v3.5.2
147
147
148
- - name : Add dependency chart repos
149
- # Todo replace this by https://github.com/grafana/helm-charts/issues/1534
150
- run : |
151
- helm repo add elastic https://helm.elastic.co
152
- helm repo add grafana https://grafana.github.io/helm-charts
153
- helm repo add prometheus https://prometheus-community.github.io/helm-charts
154
- helm repo add bitnami https://charts.bitnami.com/bitnami
155
- helm repo add bitnami-pre-2022 https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami
156
- helm repo add hashicorp https://helm.releases.hashicorp.com
157
- helm repo add minio-new https://charts.min.io
158
- helm repo add jetstack https://charts.jetstack.io
159
- helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
160
-
161
148
- name : Parse Chart.yaml
162
149
id : parse-chart
163
150
run : |
@@ -175,6 +162,21 @@ jobs:
175
162
fi
176
163
echo "packagename=${name}-${version}" >> $GITHUB_OUTPUT
177
164
165
+ - name : Add dependency chart repos
166
+ run : |
167
+ cd source
168
+ # Skip the header line and make sure that tabs are expanded into spaces
169
+ deps=$(helm dependency list "${{ steps.parse-chart.outputs.chartpath }}" | tail +2 | expand)
170
+ while read -r row; do
171
+ IFS=' ' read -ra parts <<< "$row"
172
+ name="${parts[0]}"
173
+ repo="${parts[2]}"
174
+ case "$repo" in
175
+ "https://"*) helm repo add "$name" "$repo" ;;
176
+ *) echo >&2 "Skipping dependency $name: unsupported schema for \"$repo\"" ;;
177
+ esac
178
+ done <<< "$deps"
179
+
178
180
- name : Install CR tool
179
181
run : |
180
182
mkdir "${CR_TOOL_PATH}"
You can’t perform that action at this time.
0 commit comments