apply an additional formatting step
This commit is contained in:
@@ -193,6 +193,11 @@ jobs:
|
|||||||
echo ">> Formating rendered template ..."
|
echo ">> Formating 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
|
||||||
|
for $file in $OUTPUT_FOLDER; do
|
||||||
|
yq -i '... comments=""' $file
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
||||||
ls $OUTPUT_FOLDER
|
ls $OUTPUT_FOLDER
|
||||||
|
|||||||
@@ -178,6 +178,11 @@ jobs:
|
|||||||
echo ">> Formating rendered template ..."
|
echo ">> Formating 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
|
||||||
|
for $file in $OUTPUT_FOLDER; do
|
||||||
|
yq -i '... comments=""' $file
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
||||||
ls $OUTPUT_FOLDER
|
ls $OUTPUT_FOLDER
|
||||||
|
|||||||
@@ -198,6 +198,11 @@ jobs:
|
|||||||
echo ">> Formating rendered template ..."
|
echo ">> Formating 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
|
||||||
|
for $file in $OUTPUT_FOLDER; do
|
||||||
|
yq -i '... comments=""' $file
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
||||||
ls $OUTPUT_FOLDER
|
ls $OUTPUT_FOLDER
|
||||||
|
|||||||
@@ -196,6 +196,11 @@ jobs:
|
|||||||
echo ">> Formating rendered template ..."
|
echo ">> Formating 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
|
||||||
|
for $file in $OUTPUT_FOLDER; do
|
||||||
|
yq -i '... comments=""' $file
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"
|
||||||
ls $OUTPUT_FOLDER
|
ls $OUTPUT_FOLDER
|
||||||
|
|||||||
Reference in New Issue
Block a user