Skip to content

Commit 35b75c3

Browse files
committed
Avoid random werft namespace errors
Signed-off-by: Manuel de Brito Fontes <[email protected]>
1 parent 7a58c39 commit 35b75c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ rm -f /tmp/public-api
615615
# ===============
616616

617617
log_info "Applying manifests (installing)"
618-
618+
# avoid random werft namespace errors
619+
kubectl --kubeconfig "${PREVIEW_K3S_KUBE_PATH}" --context "${PREVIEW_K3S_KUBE_CONTEXT}" create namespace werft || true
619620
kubectl --kubeconfig "${PREVIEW_K3S_KUBE_PATH}" --context "${PREVIEW_K3S_KUBE_CONTEXT}" delete -n "${PREVIEW_NAMESPACE}" job migrations || true
620621
# export the function so we can use it in xargs
621622
export -f diff-apply

0 commit comments

Comments
 (0)