diff --git a/.github/scripts/install_dependencies.sh b/.github/scripts/install_dependencies.sh index 15eea9f835c..c409200126c 100755 --- a/.github/scripts/install_dependencies.sh +++ b/.github/scripts/install_dependencies.sh @@ -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