From 18a5ef9b6f588ed671729e37811160a4da6ab16a Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 6 Dec 2025 20:52:03 -0600 Subject: [PATCH] strip comments from yaml --- .gitea/workflows/render-manifests-automerge.yaml | 2 +- .gitea/workflows/render-manifests-dispatch.yaml | 2 +- .gitea/workflows/render-manifests-merge.yaml | 2 +- .gitea/workflows/render-manifests-push.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/render-manifests-automerge.yaml b/.gitea/workflows/render-manifests-automerge.yaml index ce42ed27c..b27313460 100644 --- a/.gitea/workflows/render-manifests-automerge.yaml +++ b/.gitea/workflows/render-manifests-automerge.yaml @@ -191,7 +191,7 @@ jobs: echo "" echo ">> Formating rendered template ..." - echo "$TEMPLATE" | yq 'select(. != null)' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' + echo "$TEMPLATE" | yq 'select(. != null)' | yq '... comments=""' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' echo "" echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER" diff --git a/.gitea/workflows/render-manifests-dispatch.yaml b/.gitea/workflows/render-manifests-dispatch.yaml index 63de42b84..9f83a5e0a 100644 --- a/.gitea/workflows/render-manifests-dispatch.yaml +++ b/.gitea/workflows/render-manifests-dispatch.yaml @@ -176,7 +176,7 @@ jobs: echo "" echo ">> Formating rendered template ..." - echo "$TEMPLATE" | yq 'select(. != null)' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' + echo "$TEMPLATE" | yq 'select(. != null)' | yq '... comments=""' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' echo "" echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER" diff --git a/.gitea/workflows/render-manifests-merge.yaml b/.gitea/workflows/render-manifests-merge.yaml index 41ee7d6c8..a2e843856 100644 --- a/.gitea/workflows/render-manifests-merge.yaml +++ b/.gitea/workflows/render-manifests-merge.yaml @@ -196,7 +196,7 @@ jobs: echo "" echo ">> Formating rendered template ..." - echo "$TEMPLATE" | yq 'select(. != null)' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' + echo "$TEMPLATE" | yq 'select(. != null)' | yq '... comments=""' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' echo "" echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER" diff --git a/.gitea/workflows/render-manifests-push.yaml b/.gitea/workflows/render-manifests-push.yaml index ebb7568c1..69fcfe8f9 100644 --- a/.gitea/workflows/render-manifests-push.yaml +++ b/.gitea/workflows/render-manifests-push.yaml @@ -194,7 +194,7 @@ jobs: echo "" echo ">> Formating rendered template ..." - echo "$TEMPLATE" | yq 'select(. != null)' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' + echo "$TEMPLATE" | yq 'select(. != null)' | yq '... comments=""' | yq -s '"'"$OUTPUT_FOLDER"'" + .kind + "-" + .metadata.name + ".yaml"' echo "" echo ">> Manifests for $chart_name rendered to $OUTPUT_FOLDER"