-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
41 additions
and
1,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ go.work | |
blank.yaml | ||
cilium/ | ||
manager | ||
valkey-operator-chart/ | ||
valkey-operator-chart-*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,24 +182,27 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize-$(KUSTOMIZE_VERSION) | |
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen-$(CONTROLLER_TOOLS_VERSION) | ||
ENVTEST ?= $(LOCALBIN)/setup-envtest-$(ENVTEST_VERSION) | ||
GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION) | ||
HELMIFY := $(LOCALBIN)/helmify-$(HELMIFY_VERSION) | ||
HELM := $(LOCALBIN)/helm | ||
|
||
## Tool Versions | ||
KUSTOMIZE_VERSION ?= v5.4.1 | ||
CONTROLLER_TOOLS_VERSION ?= v0.16.0 | ||
ENVTEST_VERSION ?= release-0.18 | ||
GOLANGCI_LINT_VERSION ?= v1.57.2 | ||
HELMIFY_VERSION ?= v0.4.13 | ||
|
||
######################### Helmify | ||
HELMIFY ?= $(LOCALBIN)/helmify | ||
|
||
.PHONY: helmify | ||
helmify: $(HELMIFY) ## Download helmify locally if necessary. | ||
$(HELMIFY): $(LOCALBIN) | ||
test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/[email protected] | ||
helm-gen: manifests kustomize helmify ## Generate Helm chart from Kustomize manifests | ||
$Q$(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir valkey-operator-chart | ||
|
||
helm: manifests kustomize helmify ## Generate Helm chart from Kustomize manifests | ||
$Q$(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir config/chart | ||
helm-package: helm-gen ## Package Helm chart | ||
$Q$(HELM) package valkey-operator-chart --app-version $(VERSION) --version $(VERSION) | ||
|
||
helm-publish: helm-package ## Publish Helm chart | ||
$Q$(HELM) push valkey-operator-chart-$(VERSION).tgz oci://ghcr.io/hyperspike | ||
|
||
.PHONY: minikube tunnel registry-proxy prometheus-proxy | ||
minikube: ## Spool up a local minikube cluster for development | ||
|
@@ -243,6 +246,16 @@ golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary. | |
$(GOLANGCI_LINT): $(LOCALBIN) | ||
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,${GOLANGCI_LINT_VERSION}) | ||
|
||
.PHONY: helmify | ||
helmify: $(HELMIFY) ## Download helmify locally if necessary. | ||
$(HELMIFY): $(LOCALBIN) | ||
$(call go-install-tool,$(GOLANGCI_LINT),github.com/artttor/helmify/cmd/helmify,${HELMIFY_VERSION}) | ||
|
||
.PHONY: helm | ||
helm: $(HELM) ## Download helm locally if necessary. | ||
$(HELM): $(LOCALBIN) | ||
$(call go-install-tool,$(HELM),helm.sh/helm/v3/cmd/helm,latest) | ||
|
||
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist | ||
# $1 - target path with name of binary (ideally with version) | ||
# $2 - package url which can be installed | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.