Skip to content

Commit

Permalink
fix(scripts/release): avoid deleting crds subchart
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Mar 15, 2024
1 parent 74f167d commit 1dbc8e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ cleanup_and_exit() {
# Remove helm subcharts, if `helm dependency update` was run.
if [ "$_helm_dependencies_updated" = "true" ]; then
echo "Cleaning up helm chart dependencies..."
rm -rf "$CHART_DIR"/charts
for dep_chart in "$CHART_DIR"/charts/*; do
if [ "$dep_chart" = "$CHART_DIR/charts/crds" ]; then
continue
fi
rm -rf "$dep_chart"
done
fi

exit "$status"
Expand Down

0 comments on commit 1dbc8e7

Please sign in to comment.