add step to clear prior manifests
All checks were successful
renovate / renovate (push) Successful in 1m54s
All checks were successful
renovate / renovate (push) Successful in 1m54s
This commit is contained in:
@@ -37,6 +37,11 @@ jobs:
|
|||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
version: v3.17.2 # Pending https://github.com/helm/helm/pull/30743
|
version: v3.17.2 # Pending https://github.com/helm/helm/pull/30743
|
||||||
|
|
||||||
|
- name: Remove Prior Manifests
|
||||||
|
run: |
|
||||||
|
cd ${MANIFEST_DIR}/clusters
|
||||||
|
rm -rf ./*
|
||||||
|
|
||||||
- name: Render Helm Manifests
|
- name: Render Helm Manifests
|
||||||
run: |
|
run: |
|
||||||
for cluster in ${CLUSTERS}; do
|
for cluster in ${CLUSTERS}; do
|
||||||
@@ -45,30 +50,30 @@ jobs:
|
|||||||
echo ">> Rendering chart: $chart_name"
|
echo ">> Rendering chart: $chart_name"
|
||||||
|
|
||||||
if [ -f "$chart_path/Chart.yaml" ]; then
|
if [ -f "$chart_path/Chart.yaml" ]; then
|
||||||
mkdir -p ${MANIFEST_DIR}/clusters/$cluster/manifests/$chart_name
|
mkdir -p ${MANIFEST_DIR}/clusters/$cluster/manifests/$chart_name
|
||||||
OUTPUT_FILE="${MANIFEST_DIR}/clusters/$cluster/manifests/$chart_name/$chart_name.yaml"
|
OUTPUT_FILE="${MANIFEST_DIR}/clusters/$cluster/manifests/$chart_name/$chart_name.yaml"
|
||||||
|
|
||||||
cd $chart_path
|
cd $chart_path
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Building helm dependency ..."
|
echo ">> Building helm dependency ..."
|
||||||
helm dependency build
|
helm dependency build
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Linting helm ..."
|
echo ">> Linting helm ..."
|
||||||
helm lint --namespace "$chart_name" --with-subcharts
|
helm lint --namespace "$chart_name" --with-subcharts
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Rendering templates ..."
|
echo ">> Rendering templates ..."
|
||||||
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Directory $chart_path does not contain a Chart.yaml. Skipping ..."
|
echo ">> Directory $chart_path does not contain a Chart.yaml. Skipping ..."
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user