chore(ci): change when cnpg gets loaded as install dependency
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
@@ -53,7 +53,7 @@ if [[ "$curr_chart" == "charts/premium/clusterissuer" ]]; then
|
||||
fi
|
||||
|
||||
|
||||
if [[ "$curr_chart" != "charts/system/cloudnative-pg" ]]; then
|
||||
if grep -q "cnpg:" "$curr_chart/values.yaml"; then
|
||||
echo "Installing cloudnative-pg chart"
|
||||
helm install cloudnative-pg oci://tccr.io/truecharts/cloudnative-pg --namespace cloudnative-pg --create-namespace --wait
|
||||
if [[ "$?" != "0" ]]; then
|
||||
@@ -61,12 +61,13 @@ if [[ "$curr_chart" != "charts/system/cloudnative-pg" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
echo "Done installing cloudnative-pg chart"
|
||||
else
|
||||
echo "cnpg: not found in $curr_chart/values.yaml, skipping installation."
|
||||
fi
|
||||
|
||||
if [[ "$curr_chart" != "charts/premium/traefik" ]]; then
|
||||
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 [[ "$curr_chart" != "charts/system/traefik-crds" ]]; then
|
||||
echo "Installing traefik-crds chart"
|
||||
helm install traefik oci://tccr.io/truecharts/traefik-crds --namespace traefik --create-namespace --wait
|
||||
if [[ "$?" != "0" ]]; then
|
||||
echo "Failed to install traefik chart"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user