Skip to content

Commit 39f1b4a

Browse files
committed
[preview] Fix kubectl patch blocking preview creation
1 parent caae7ce commit 39f1b4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/preview/workflow/preview/deploy-monitoring-satellite.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,6 @@ echo "Patching grafana deployment"
9797
kubectl \
9898
--kubeconfig "${PREVIEW_K3S_KUBE_PATH}" \
9999
--context "${PREVIEW_K3S_KUBE_CONTEXT}" \
100-
patch deployments.apps -n monitoring-satellite grafana --type=json -p="[{'op': 'remove', 'path': '/spec/template/spec/nodeSelector'}]"
100+
patch deployments.apps -n monitoring-satellite grafana --type=json \
101+
-p='[{"op": "test", "path": "/spec/template/spec/nodeSelector"}, {"op": "remove", "path": "/spec/template/spec/nodeSelector"}]' \
102+
2>/dev/null || true

0 commit comments

Comments
 (0)