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
test: .test.proto test.client test.controller test.sidecar ## Run tests including unit tests
67
72
68
73
.PHONY: test-e2e
69
-
test-e2e: # Run e2e tests
70
-
@echo "unimplemented placeholder"
74
+
test-e2e: chainsaw # Run e2e tests against the K8s cluster specified in ~/.kube/config. It requires both controller and driver deployed. If you need to create a cluster beforehand, consider using 'cluster' and 'deploy' targets.
75
+
$(CHAINSAW)test --values ./test/e2e/values.yaml
71
76
72
77
.PHONY: lint
73
78
lint: golangci-lint.client golangci-lint.controller golangci-lint.sidecar ## Run all linters (suggest `make -k`)
74
79
75
80
.PHONY: lint-fix
76
81
lint-fix: golangci-lint-fix.client golangci-lint-fix.controller golangci-lint-fix.sidecar ## Run all linters and perform fixes where possible (suggest `make -k`)
.PHONY: FORCE # use this to force phony behavior for targets with pattern rules
162
136
FORCE:
137
+
138
+
##@ Deployment
139
+
140
+
.PHONY: cluster
141
+
cluster: kind ctlptl ## Create Kind cluster and local registry
142
+
$(CTLPTL) apply -f ctlptl.yaml
143
+
144
+
.PHONY: cluster-reset
145
+
cluster-reset: kind ctlptl ## Delete Kind cluster
146
+
$(CTLPTL) delete -f ctlptl.yaml
147
+
148
+
.PHONY: deploy
149
+
deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. The 'generate' and 'codegen' targets should be run manually, and are expected to be run at least once before the 'deploy' target, as those are not cached.
150
+
$(KUSTOMIZE) build .|$(KUBECTL) apply -f -
151
+
152
+
.PHONY: undeploy
153
+
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
0 commit comments