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
build: image-import k8s-apply ## Builds a new version of the dogu and deploys it into the K8s-EcoSystem.
42
+
43
+
##@ Release
44
+
45
+
.PHONY: controller-release
46
+
controller-release: ## Interactively starts the release workflow.
47
+
@echo "Starting git flow release..."
48
+
@build/make/release.sh controller-tool
49
+
50
+
##@ K8s - Development
51
+
52
+
.PHONY: build-controller
53
+
build-controller: ${SRC} compile ## Builds the controller Go binary.
54
+
55
+
# Allows to perform tasks before locally running the controller
56
+
K8S_RUN_PRE_TARGETS ?=
57
+
.PHONY: run
58
+
run: manifests generate vet $(K8S_RUN_PRE_TARGETS)## Run a controller from your host.
59
+
go run -ldflags "-X main.Version=$(VERSION)" ./main.go
60
+
61
+
##@ K8s - Integration test with envtest
62
+
63
+
$(K8S_INTEGRATION_TEST_DIR):
64
+
@mkdir -p $@
65
+
66
+
.PHONY: k8s-integration-test
67
+
k8s-integration-test: $(K8S_INTEGRATION_TEST_DIR) manifests generate vet envtest ## Run k8s integration tests.
68
+
@echo "Running K8s integration tests..."
69
+
@KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test -tags=k8s_integration ./... -coverprofile ${K8S_INTEGRATION_TEST_DIR}/report-k8s-integration.out
70
+
71
+
##@ K8s - Controller Resource
72
+
73
+
# The pre generation script creates a K8s resource yaml containing generated manager yaml.
@sed "s|NAMESPACE|$(ARTIFACT_NAMESPACE)|g"$(K8S_RESOURCE_DOGU_CR_TEMPLATE_YAML)| sed "s|NAME|$(ARTIFACT_ID)|g"| sed "s|VERSION|$(VERSION)|g">>$(K8S_RESOURCE_TEMP_YAML)
37
+
@echo "Done."
38
+
39
+
##@ K8s - Dogu
40
+
41
+
.PHONY: install-dogu-descriptor
42
+
install-dogu-descriptor: $(TARGET_DIR)## Installs a configmap with current dogu.json into the cluster.
0 commit comments