Skip to content

Commit 8260531

Browse files
authored
[preview] Fix deploy of resources in multiple ns (#16924)
* [preview] Fix deploy of resources in multiple ns * Fix for namespaces: default to emptystring
1 parent aa61917 commit 8260531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/preview/workflow/preview/deploy-gitpod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ export -f diff-apply
590590
mkdir temp-installer || true
591591
pushd temp-installer
592592
# this will split the big yaml produced by the installer, so we can diff individual parts of it and run them in parallel
593-
yq4 -s '.kind + "_" + .metadata.name' "../${INSTALLER_RENDER_PATH}"
593+
yq4 -s '.kind + "_" + (.metadata.namespace // "") + "_" + .metadata.name' "../${INSTALLER_RENDER_PATH}"
594594
rm .yml || true # this one is a leftover from the split
595595
# shellcheck disable=SC2038
596596
find . | xargs -n 1 -I {} -P 5 bash -c "diff-apply ${PREVIEW_K3S_KUBE_CONTEXT} {}"

0 commit comments

Comments
 (0)