From 5945723cac51ef65f38132f29616a8b98d1403ae Mon Sep 17 00:00:00 2001 From: Philip Gough <philip.p.gough@gmail.com> Date: Tue, 26 Mar 2024 16:06:58 +0000 Subject: [PATCH] Add server-side apply to kubectl Make targets --- operators/multiclusterobservability/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operators/multiclusterobservability/Makefile b/operators/multiclusterobservability/Makefile index 3556917c7..94904fd26 100644 --- a/operators/multiclusterobservability/Makefile +++ b/operators/multiclusterobservability/Makefile @@ -79,7 +79,7 @@ run: generate fmt vet manifests # Install CRDs into a cluster install: manifests kustomize - $(KUSTOMIZE) build config/crd | kubectl apply -f - + $(KUSTOMIZE) build config/crd | kubectl apply --server-side=true -f - # Uninstall CRDs from a cluster uninstall: manifests kustomize @@ -88,7 +88,7 @@ uninstall: manifests kustomize # Deploy controller in the configured Kubernetes cluster in ~/.kube/config deploy: manifests kustomize cd config/manager && $(KUSTOMIZE) edit set image quay.io/stolostron/multicluster-observability-operator=${IMG} - $(KUSTOMIZE) build config/default | kubectl apply -f - + $(KUSTOMIZE) build config/default | kubectl apply --server-side=true -f - # UnDeploy controller from the configured Kubernetes cluster in ~/.kube/config undeploy: