25 lines
587 B
Bash
Executable File
25 lines
587 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
for f in packages/*; do
|
|
if [[ -f ${f}/package.yaml ]]; then
|
|
if [[ -z $CHART || $CHART == $(basename -- ${f}) ]]; then
|
|
split_crds=$(yq r ${f}/package.yaml generateCRDChart.enabled)
|
|
if [[ "${split_crds}" == "true" && -d ${f}/charts-crd ]]; then
|
|
./scripts/clean-crds ${f}
|
|
fi
|
|
url=$(yq r ${f}/package.yaml url)
|
|
if [[ -n $url ]]; then
|
|
rm -rf ${f}/charts
|
|
fi
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for f in packages/*; do
|
|
if [[ -z $CHART || $CHART == $(basename -- ${f}) ]]; then
|
|
if [ -d "${f}/charts/charts" ]; then
|
|
rm -f ${f}/charts/charts/*.tgz
|
|
fi
|
|
fi
|
|
done
|