This commit is contained in:
@@ -219,7 +219,7 @@ 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
|
if ls "${OUTPUT_FOLDER}"/*.yaml 1> /dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user