Skip to content

Commit

Permalink
Fix chart testing
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 1, 2023
1 parent 876956a commit 80e7366
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/scripts/ct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80e7366

Please sign in to comment.