From 0104a4e870b26b0427c5600837a64ac2bfa99d6d Mon Sep 17 00:00:00 2001 From: zirain Date: Sat, 3 May 2025 18:21:12 +0800 Subject: [PATCH] ci: make helm-generate should failed as expected Signed-off-by: zirain --- tools/make/helm.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/make/helm.mk b/tools/make/helm.mk index 2dc788de67..21797c33ba 100644 --- a/tools/make/helm.mk +++ b/tools/make/helm.mk @@ -73,11 +73,11 @@ helm-generate.%: @for file in $(wildcard test/helm/${CHART_NAME}/*.in.yaml); do \ filename=$$(basename $${file}); \ output="$${filename%.in.*}.out.yaml"; \ - if [ ${CHART_NAME} == "gateway-addons-helm" ]; then \ - helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output --namespace=monitoring; \ - elif [ ${CHART_NAME} == "gateway-crds-helm" ]; then \ - helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output; \ - else \ - helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output --namespace=envoy-gateway-system; \ + if [ ${CHART_NAME} == "gateway-addons-helm" ]; then \ + helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output --namespace=monitoring || exit 1; \ + elif [ ${CHART_NAME} == "gateway-crds-helm" ]; then \ + helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output || exit 1; \ + else \ + helm template ${CHART_NAME} charts/${CHART_NAME} -f $${file} > test/helm/${CHART_NAME}/$$output --namespace=envoy-gateway-system || exit 1; \ fi; \ done