From cf75707edf963e75eaf87f4f702ae4d838b2e124 Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Mon, 20 May 2024 22:36:24 +0200 Subject: [PATCH] fix patch command --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 28bbdbb..bd1bae4 100755 --- a/init.sh +++ b/init.sh @@ -49,7 +49,7 @@ done sleep 2 # patch kuberoes resource with the new image -kubectl patch kuberoapps.application.kubero.dev ${APP} -p "{\"spec\":{\"image\":{\"repository\":"${REPOSITORY}",\"tag\":\"${TAG}\"}}}" +kubectl patch --type=merge kuberoapps.application.kubero.dev ${APP} -p "{\"spec\":{\"image\":{\"repository\":\"${REPOSITORY}\",\"tag\":\"${TAG}\"}}}" if [ $? -ne 0 ]; then echo "Failed to patch kubero app resource" exit 1