2024-01-02 11:15:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
curr_chart=$1
|
|
|
|
|
|
|
|
if [ -z "$curr_chart" ]
|
|
|
|
then
|
|
|
|
echo "No chart name provided"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Chart name: $curr_chart"
|
|
|
|
|
2024-03-16 10:47:30 +00:00
|
|
|
if [[ "$curr_chart" == "charts/premium/metallb-config" ]]; then
|
2024-01-02 11:15:02 +00:00
|
|
|
echo "Installing metallb chart"
|
|
|
|
helm install metallb oci://tccr.io/truecharts/metallb --namespace metallb --create-namespace --wait
|
|
|
|
if [[ "$?" != "0" ]]; then
|
|
|
|
echo "Failed to install metallb chart"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo "Done installing metallb chart"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2024-03-16 10:47:30 +00:00
|
|
|
if [[ "$curr_chart" == "charts/premium/clusterissuer" ]]; then
|
2024-01-02 11:15:02 +00:00
|
|
|
echo "Installing cert-manager chart"
|
|
|
|
helm install cert-manager oci://tccr.io/truecharts/cert-manager --namespace cert-manager --create-namespace --wait
|
|
|
|
if [[ "$?" != "0" ]]; then
|
|
|
|
echo "Failed to install cert-manager chart"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo "Done installing cert-manager chart"
|
|
|
|
fi
|
|
|
|
|
2024-03-16 10:47:30 +00:00
|
|
|
if [[ "$curr_chart" != "charts/system/prometheus-operator" ]]; then
|
2024-02-27 16:52:56 +00:00
|
|
|
echo "Installing prometheus-operator chart"
|
|
|
|
helm install prometheus-operator oci://tccr.io/truecharts/prometheus-operator --namespace prometheus-operator --create-namespace --wait
|
2024-02-26 16:38:36 +00:00
|
|
|
if [[ "$?" != "0" ]]; then
|
2024-02-27 16:52:56 +00:00
|
|
|
echo "Failed to install prometheus-operator chart"
|
2024-02-26 16:38:36 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2024-02-27 16:52:56 +00:00
|
|
|
echo "Done installing prometheus-operator chart"
|
2024-01-02 11:15:02 +00:00
|
|
|
fi
|
|
|
|
|
2024-03-16 10:47:30 +00:00
|
|
|
if [[ "$curr_chart" != "charts/system/cloudnative-pg" ]]; then
|
2024-02-27 18:37:19 +00:00
|
|
|
echo "Installing cloudnative-pg chart"
|
|
|
|
helm install cloudnative-pg oci://tccr.io/truecharts/cloudnative-pg --namespace cloudnative-pg --create-namespace --wait
|
|
|
|
if [[ "$?" != "0" ]]; then
|
|
|
|
echo "Failed to install cloudnative-pg chart"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo "Done installing cloudnative-pg chart"
|
|
|
|
fi
|
|
|
|
|
2024-03-16 10:47:30 +00:00
|
|
|
if [[ "$curr_chart" != "charts/premium/traefik" ]]; then
|
2024-01-21 13:56:08 +00:00
|
|
|
echo "Installing traefik chart"
|
|
|
|
helm install traefik oci://tccr.io/truecharts/traefik --namespace traefik --create-namespace --wait \
|
|
|
|
--set "service.main.type=ClusterIP" --set "service.tcp.type=ClusterIP"
|
|
|
|
if [[ "$?" != "0" ]]; then
|
|
|
|
echo "Failed to install traefik chart"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo "Done installing traefik chart"
|
|
|
|
fi
|