-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathgenerate_cache.sh
More file actions
executable file
·33 lines (28 loc) · 994 Bytes
/
generate_cache.sh
File metadata and controls
executable file
·33 lines (28 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -eo pipefail
shopt -s expand_aliases
tmp=$(mktemp -d)
function clean_before_exit {
# delay before exiting, so stdout/stderr flushes through the logging system
rm -rf $tmp
sleep 3
}
trap clean_before_exit EXIT
cd $tmp
helm repo add cilium https://helm.cilium.io/
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add longhorn https://charts.longhorn.io
helm repo add jetstack https://charts.jetstack.io
helm repo add svc-cat https://kubernetes-sigs.github.io/service-catalog
helm repo update
helm fetch cilium/cilium
helm fetch bitnami/metallb
helm fetch ingress-nginx/ingress-nginx
helm fetch longhorn/longhorn
helm fetch jetstack/cert-manager
helm fetch svc-cat/catalog
for tar in `ls $tmp | grep .tgz`
do
curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@$tar "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
done