-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmirror.sh
executable file
·27 lines (24 loc) · 1.26 KB
/
mirror.sh
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
#!/bin/bash
echo Download repositories...
./helm-mirror repo/ prometheus-community https://prometheus-community.github.io/helm-charts &
./helm-mirror repo/ autoscaler https://kubernetes.github.io/autoscaler &
./helm-mirror repo/ jetstack https://charts.jetstack.io &
./helm-mirror repo/ velero https://vmware-tanzu.github.io/helm-charts &
./helm-mirror repo/ ingress-nginx https://kubernetes.github.io/ingress-nginx &
./helm-mirror repo/ grafana https://grafana.github.io/helm-charts &
./helm-mirror repo/ elastic https://helm.elastic.co &
./helm-mirror repo/ harbor https://helm.goharbor.io &
./helm-mirror repo/ prometheus-msteams https://prometheus-msteams.github.io/prometheus-msteams/ &
./helm-mirror repo/ ot-helm https://ot-container-kit.github.io/helm-charts/ &
wait
echo Download karpenter from OCI...
mkdir -p repo/karpenter
for version in 0.35.{0..2} 0.35.{4..11} 0.36.{0..8} 0.37.{0..6}; do
if ! [ -s repo/karpenter/karpenter-${version}.tgz ]; then
helm fetch oci://public.ecr.aws/karpenter/karpenter --version $version --destination repo/karpenter
fi
if ! [ -s repo/karpenter/karpenter-crd-${version}.tgz ]; then
helm fetch oci://public.ecr.aws/karpenter/karpenter-crd --version $version --destination repo/karpenter
fi
done
helm repo index repo/karpenter