feat: revert clean comments
All checks were successful
renovate / renovate (push) Successful in 2m4s
All checks were successful
renovate / renovate (push) Successful in 2m4s
This commit is contained in:
@@ -219,12 +219,12 @@ jobs:
|
|||||||
TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds)
|
TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds)
|
||||||
|
|
||||||
# Format and split rendered template
|
# Format and split rendered template
|
||||||
echo "${TEMPLATE}" | yq '... comments=""' | yq 'select(. != null)' | yq -s '"'"${OUTPUT_FOLDER}"'/" + .kind + "-" + .metadata.name + ".yaml"'
|
echo "${TEMPLATE}" | yq '... comments=""' | yq 'select(. != null)' | yq -s '"'"${OUTPUT_FOLDER}"'" + .kind + "-" + .metadata.name + ".yaml"'
|
||||||
|
|
||||||
# Strip comments again to ensure formatting correctness
|
# Strip comments again to ensure formatting correctness
|
||||||
if ls "${OUTPUT_FOLDER}"/*.yaml 1> /dev/null 2>&1; then
|
for file in "$OUTPUT_FOLDER"/*; do
|
||||||
yq -i '... comments=""' "${OUTPUT_FOLDER}"/*.yaml
|
yq -i '... comments=""' $file
|
||||||
fi
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for ${CHART_NAME} rendered to ${OUTPUT_FOLDER}:"
|
echo ">> Manifests for ${CHART_NAME} rendered to ${OUTPUT_FOLDER}:"
|
||||||
|
|||||||
Reference in New Issue
Block a user