From 0605eb5447515d30ec385f3226edd1569b05a839 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 3 Aug 2025 13:13:13 +0200 Subject: [PATCH] fix(setup): use server-side apply for kustomization Update kustomization apply commands to use server-side apply for better resource management and concurrency handling. This change ensures that all applied resources are updated in a more efficient manner and helps avoid conflicts in multi-node environments. --- setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup b/setup index 60e9fde..80b29d3 100755 --- a/setup +++ b/setup @@ -15,11 +15,11 @@ kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab" kustomized="$(mktemp --suffix .unboundkind.yaml --tmpdir=/tmp/)" kubectl kustomize --enable-helm ./kind > "${kustomized}" -kubectl apply -f "${kustomized}" || true +kubectl apply -f "${kustomized}" --server-side || true kubectl wait --for=condition=Ready pods -n cert-manager -l app=cert-manager --timeout 5m kubectl wait --for=condition=Ready pods -n cert-manager -l app=cainjector --timeout 5m kubectl wait --for=condition=Ready pods -n cert-manager -l app=webhook --timeout 5m kubectl wait --for=condition=Ready pods --all -n external-secrets --timeout=5m -kubectl apply -f "${kustomized}" +kubectl apply -f "${kustomized}" --server-side kubectl wait --for=condition=Ready pods --all --timeout=5m