You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Build image and load it into kind cluster, deploy etcd-operator, RBAC, webhook certs
19
+
```shell
20
+
make deploy
21
+
```
22
+
23
+
4. To deploy your code changes, redeploy etcd-operator:
24
+
```shell
25
+
make redeploy
26
+
```
27
+
28
+
5. To clean up after all, delete kind cluster:
29
+
```shell
30
+
make kind-delete
31
+
```
25
32
26
33
### Advanced way
27
34
Using *easy way* you will not be able to debug golang code locally and every change will be necessary to build as an image, upload to the cluster and then restart operator.
Copy file name to clipboardExpand all lines: Makefile
+41-19Lines changed: 41 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -94,10 +94,6 @@ run: manifests generate fmt vet ## Run a controller from your host.
94
94
docker-build: ## Build docker image with the manager.
95
95
$(CONTAINER_TOOL) build -t ${IMG}.
96
96
97
-
.PHONY: docker-push
98
-
docker-push: ## Push docker image with the manager.
99
-
$(CONTAINER_TOOL) push ${IMG}
100
-
101
97
# PLATFORMS defines the target platforms for the manager image be built to provide support to multiple
102
98
# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
103
99
# - be able to use docker buildx. More info: https://docs.docker.com/build/buildx/
@@ -127,6 +123,12 @@ build-installer: manifests generate kustomize ## Generate a consolidated YAML wi
127
123
128
124
##@ Deployment
129
125
126
+
KIND_CLUSTER_NAME ?= etcd-operator-kind
127
+
NAMESPACE ?= etcd-operator-system
128
+
129
+
PROMETHEUS_OPERATOR_VERSION ?= v0.72.0
130
+
CERT_MANAGER_VERSION ?= v1.14.4
131
+
130
132
ifndefignore-not-found
131
133
ignore-not-found = false
132
134
endif
@@ -137,30 +139,44 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
137
139
138
140
.PHONY: uninstall
139
141
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
0 commit comments