Skip to content

Commit

Permalink
update kubectl apply with server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
husnialhamdani committed Oct 17, 2023
1 parent f7b9701 commit 4ac487a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
kubectl create namespace olm --dry-run=client -o yaml | kubectl apply -f --server-side -
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
Expand Down Expand Up @@ -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 -
$(KUSTOMIZE) build config/crd | kubectl apply -f --server-side -

uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/crd | kubectl delete -f -
Expand All @@ -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 -
$(KUSTOMIZE) build config/default | kubectl apply -f --server-side -

undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default | kubectl delete -f -
Expand Down Expand Up @@ -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 -
kubectl create namespace keda --dry-run=client -o yaml | kubectl apply -f --server-side -
operator-sdk run bundle ${BUNDLE} --namespace keda

.PHONY: deploy-olm-testing
Expand Down

0 comments on commit 4ac487a

Please sign in to comment.