Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add community deploy for non kind clusters #86

Merged
merged 1 commit into from
May 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ GOARCH = $(shell go env GOARCH)
GOOS = $(shell go env GOOS)
# Deployment configuration
CONTROLLER_NAMESPACE ?= open-cluster-management-agent-addon
WATCH_NAMESPACE ?= managed
MANAGED_CLUSTER_NAME ?= managed
WATCH_NAMESPACE ?= $(MANAGED_CLUSTER_NAME)
# Handle KinD configuration
KIND_NAME ?= test-managed
KIND_VERSION ?= latest
Expand Down Expand Up @@ -75,6 +76,11 @@ deploy:
kubectl apply -f deploy/crds/ -n $(CONTROLLER_NAMESPACE)
kubectl set env deployment/$(IMG) -n $(CONTROLLER_NAMESPACE) WATCH_NAMESPACE=$(WATCH_NAMESPACE)

deploy-controller: create-ns install-crds
@echo installing $(IMG)
kubectl -n $(CONTROLLER_NAMESPACE) apply -f deploy/
kubectl set env deployment/$(IMG) -n $(CONTROLLER_NAMESPACE) WATCH_NAMESPACE=$(WATCH_NAMESPACE)

create-ns:
@kubectl create namespace $(CONTROLLER_NAMESPACE) || true
@kubectl create namespace $(WATCH_NAMESPACE) || true
Expand Down