@@ -128,11 +128,11 @@ test-ci: manifests generate fmt vet envtest ## Run tests.
128128test-e2e :
129129 go test ./test/e2e/ -v -ginkgo.v -test.timeout 30m
130130
131- .PHONY : test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.
131+ .PHONY : test-keeper- e2e # Run the e2e tests against a Kind k8s instance that is spun up.
132132test-keeper-e2e :
133133 go test ./test/e2e/ -v -ginkgo.v --ginkgo.label-filter keeper -test.timeout 30m
134134
135- .PHONY : test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.
135+ .PHONY : test-clickhouse- e2e # Run the e2e tests against a Kind k8s instance that is spun up.
136136test-clickhouse-e2e :
137137 go test ./test/e2e/ -v -ginkgo.v --ginkgo.label-filter clickhouse -test.timeout 30m
138138
@@ -148,6 +148,11 @@ golangci-fmt: golangci-lint ## Run golangci-lint fmt
148148lint-fix : golangci-lint # # Run golangci-lint linter and perform fixes
149149 $(GOLANGCI_LINT ) run --fix
150150
151+ .PHONY : generate-helmchart
152+ generate-helmchart : kubebuilder # # Generate helm charts
153+ $(KUBEBUILDER ) edit --plugins=helm/v1-alpha
154+ rm .github/workflows/test-chart.yml
155+
151156# #@ Build
152157
153158.PHONY : build
@@ -232,12 +237,13 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize
232237CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
233238ENVTEST ?= $(LOCALBIN ) /setup-envtest
234239GOLANGCI_LINT = $(LOCALBIN ) /golangci-lint
240+ KUBEBUILDER ?= $(LOCALBIN ) /kubebuilder
235241
236242# # Tool Versions
237- KUSTOMIZE_VERSION ?= v5.4.3
238- CONTROLLER_TOOLS_VERSION ?= v0.16.1
239- ENVTEST_VERSION ?= release-0.19
240- GOLANGCI_LINT_VERSION ?= v2.3.1
243+ KUSTOMIZE_VERSION ?= v5.7.1
244+ CONTROLLER_TOOLS_VERSION ?= v0.19.0
245+ ENVTEST_VERSION ?= release-0.22
246+ GOLANGCI_LINT_VERSION ?= v2.4.0
241247
242248.PHONY : kustomize
243249kustomize : $(KUSTOMIZE ) # # Download kustomize locally if necessary.
@@ -259,6 +265,12 @@ golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
259265$(GOLANGCI_LINT ) : $(LOCALBIN )
260266 $(call go-install-tool,$(GOLANGCI_LINT ) ,github.com/golangci/golangci-lint/v2/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION ) )
261267
268+ .PHONY : kubebuilder
269+ kubebuilder : $(KUBEBUILDER ) # # Download kubebuilder locally if necessary.
270+ $(KUBEBUILDER ) : $(LOCALBIN )
271+ curl -L -o $(KUBEBUILDER ) " https://go.kubebuilder.io/dl/latest/$( shell go env GOOS) /$( shell rgo env GOARCH) "
272+ chmod +x $(KUBEBUILDER )
273+
262274# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
263275# $1 - target path with name of binary
264276# $2 - package url which can be installed
0 commit comments