Skip to content

Commit e1fb287

Browse files
address review comments
1 parent 86ab977 commit e1fb287

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Makefile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ kind-cluster-cleanup: kind ## Delete the kind cluster
9797
build: manifests generate fmt vet ## Build manager binary.
9898
go build -o bin/manager main.go
9999

100+
.PHONY: run-image
101+
run-image: docker-build kind-load install-cert-mgr install-rukpak install deploy wait ## Build the operator-controller then deploy it into an existing kind cluster.
102+
100103
.PHONY: run
101-
run: docker-build kind-cluster kind-load cert-mgr rukpak install deploy wait ## Build the operator-controller then deploy it into a new kind cluster.
104+
run: kind-cluster run-image ## Build the operator-controller then deploy it into a new kind cluster.
102105

103106
.PHONY: run-local
104107
run-local: manifests generate fmt vet ## Run a controller from your host. Make sure that necessary CRDs are installed in the cluster.
@@ -143,16 +146,24 @@ ifndef ignore-not-found
143146
endif
144147

145148
## TODO dfranz: replace cert-mgr and rukpak targets with our chosen method of distribution when available
146-
.PHONY: cert-mgr
147-
cert-mgr: ## Install cert-manager
149+
.PHONY: install-cert-mgr
150+
install-cert-mgr: ## Install cert-manager
148151
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MGR_VERSION)/cert-manager.yaml
149152
kubectl wait --for=condition=Available --namespace=cert-manager deployment/cert-manager-webhook --timeout=$(WAIT_TIMEOUT)
150153

151-
.PHONY: rukpak
152-
rukpak: ## Install rukpak
154+
.PHONY: uninstall-cert-mgr
155+
uninstall-cert-mgr: ## Install cert-manager
156+
kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MGR_VERSION)/cert-manager.yaml
157+
158+
.PHONY: install-rukpak
159+
install-rukpak: ## Install rukpak
153160
kubectl apply -f https://github.com/operator-framework/rukpak/releases/latest/download/rukpak.yaml
154161
kubectl wait --for=condition=Available --namespace=rukpak-system deployment/core --timeout=$(WAIT_TIMEOUT)
155162

163+
.PHONY: uninstall-rukpak
164+
uninstall-rukpak: ## Install rukpak
165+
kubectl delete -f https://github.com/operator-framework/rukpak/releases/latest/download/rukpak.yaml
166+
156167
.PHONY: install
157168
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
158169
$(KUSTOMIZE) build config/crd | kubectl apply -f -

0 commit comments

Comments
 (0)