diff --git a/hack/scripts/ct.sh b/hack/scripts/ct.sh index 0dd44fa29..71ee2e6b2 100755 --- a/hack/scripts/ct.sh +++ b/hack/scripts/ct.sh @@ -21,8 +21,13 @@ for dir in charts/*/; do dir=${dir##*/} num_files=$(find charts/${dir}/templates -type f | wc -l) echo $dir - if [ $num_files -le 1 ] || [[ "$dir" =~ "-crds" ]] || [[ "$dir" =~ "-metrics" ]] || [[ "$dir" =~ "-grafana-dashboards" ]]; then + if [ $num_files -le 1 ] || + [[ "$dir" =~ "-crds" ]] || + [[ "$dir" =~ "-metrics" ]] || + [[ "$dir" =~ "-grafana-dashboards" ]]; then make ct CT_COMMAND=lint TEST_CHARTS=charts/$dir + elif [[ "$dir" = "prepare-cluster" ]]; then + make ct TEST_CHARTS=charts/$dir || true else ns=app-$(date +%s | head -c 6) kubectl create ns $ns