#!/usr/bin/env bash repos=( "jetstack=https://charts.jetstack.io" "stable=https://kubernetes-charts.storage.googleapis.com/" "minio=https://helm.min.io/" "anchore=https://charts.anchore.io" "prometheus-community=https://prometheus-community.github.io/helm-charts" "bitnami=https://charts.bitnami.com/bitnami" "hashicorp=https://helm.releases.hashicorp.com" "ingress-nginx=https://kubernetes.github.io/ingress-nginx" ) update_helm_repos () { for i in ${repos[@]}; do k=$(echo "$i" | cut -d= -f1) v=$(echo "$i" | cut -d= -f2) helm repo add $k $v done helm repo update } update_helm_repos