Skip to content

Commit 45f85cb

Browse files
Merge pull request kustomize-everything#44 from kustomize-everything/navneet-bairwal-yq-regex-patch-1
Fix: rewrite regex to support latest yq version
2 parents ed6f2e2 + f09e456 commit 45f85cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kustomize-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pushd "${RENDER_DIR}" || exit 1
3838
if [[ -s "${RENDER_FILE}" ]]; then
3939
# Split the rendered file into individual files for each resource
4040
# Invalid GitHub artifact path name characters: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?
41-
yq -s '.kind + "-" + (.apiVersion | sub("/", "_")) + "-" + .metadata.name + ".yaml"' < "${RENDER_FILE}"
41+
yq -s '.kind + "-" + (.apiVersion | sub("/", "_")) + "-" + (.metadata.name | sub("[:<>|*?/]", "_")) + ".yaml"' < "${RENDER_FILE}"
4242

4343
if is_debug; then
4444
echo "[debug] ls ${RENDER_DIR} post-yq"

0 commit comments

Comments
 (0)