From 70364b75dd8e2a51cdf9440e8571e38326c904ed Mon Sep 17 00:00:00 2001 From: Husni Alhamdani Date: Tue, 17 Oct 2023 16:45:51 +0200 Subject: [PATCH] update kubectl apply with server-side --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 23f9cba96..1242847fb 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ test-functionality: manifests generate fmt vet envtest ## Test functionality. KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -v -ginkgo.v -coverprofile cover.out -test.type functionality -ginkgo.focus "Testing functionality" test-deployment: manifests generate fmt vet envtest ## Test OLM deployment. - kubectl create namespace olm --dry-run=client -o yaml | kubectl apply -f --server-side - + kubectl create namespace olm --dry-run=client -o yaml | kubectl apply --server-side -f - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -v -ginkgo.v -coverprofile cover.out -test.type deployment -ginkgo.focus "Deploying KedaController manifest" test: manifests generate fmt vet envtest @@ -92,7 +92,7 @@ sign-images: ## Sign KEDA images published on GitHub Container Registry ##@ Deployment install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config. - $(KUSTOMIZE) build config/crd | kubectl apply -f --server-side - + $(KUSTOMIZE) build config/crd | kubectl apply --server-side -f - uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. $(KUSTOMIZE) build config/crd | kubectl delete -f - @@ -102,7 +102,7 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in $(KUSTOMIZE) edit set image ghcr.io/kedacore/keda-olm-operator=${IMAGE_CONTROLLER} cd config/default && \ $(KUSTOMIZE) edit add label -f app.kubernetes.io/version:${VERSION} - $(KUSTOMIZE) build config/default | kubectl apply -f --server-side - + $(KUSTOMIZE) build config/default | kubectl apply --server-side -f - undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. $(KUSTOMIZE) build config/default | kubectl delete -f - @@ -190,7 +190,7 @@ index-push: .PHONY: deploy-olm ## Deploy bundle. -- build & bundle to update if changes were made to code deploy-olm: build bundle docker-build docker-push bundle-build bundle-push index-build index-push - kubectl create namespace keda --dry-run=client -o yaml | kubectl apply -f --server-side - + kubectl create namespace keda --dry-run=client -o yaml | kubectl apply --server-side -f - operator-sdk run bundle ${BUNDLE} --namespace keda .PHONY: deploy-olm-testing