Skip to content

Commit f09e456

Browse files
refining regex
rewrite regex to support the new yq version
1 parent ed6f2e2 commit f09e456

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)