From 61439372e814a616d742cb251fd4cc83e6c8f0ad Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 19 Oct 2024 16:34:05 +0200 Subject: [PATCH] chore(ci): change when cnpg gets loaded as install dependency Signed-off-by: Kjeld Schouten --- .github/scripts/install_dependencies.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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