-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
59 lines (48 loc) · 2.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
HELM_DOCS_VERSION = v1.12.0
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
.PHONY: install-helm-docs
install-helm-docs: ## Install helm-docs tool
go install github.com/norwoodj/helm-docs/cmd/helm-docs@${HELM_DOCS_VERSION}
.PHONY: docs
docs: install-helm-docs ## Run helm-docs
$(GOBIN)/helm-docs -c charts/greptimedb-cluster --chart-search-root=charts/greptimedb-cluster --template-files=README.md.gotmpl
$(GOBIN)/helm-docs -c charts/greptimedb-operator --chart-search-root=charts/greptimedb-operator --template-files=README.md.gotmpl
$(GOBIN)/helm-docs -c charts/greptimedb-standalone --chart-search-root=charts/greptimedb-standalone --template-files=README.md.gotmpl
.PHONY: check-docs
check-docs: docs ## Check docs
@git diff --quiet || \
(echo "Need to update documentation, please run 'make docs'"; \
exit 1)
.PHONY: e2e-greptimedb-cluster
e2e-greptimedb-cluster: ## Run greptimedb-cluster e2e tests
./scripts/e2e/greptimedb-cluster.sh
.PHONY: e2e-greptimedb-standalone
e2e-greptimedb-standalone: ## Run greptimedb-standalone e2e tests
./scripts/e2e/greptimedb-standalone.sh
.PHONY: e2e
e2e: ## Run e2e tests
./scripts/e2e/greptimedb-cluster.sh
./scripts/e2e/greptimedb-standalone.sh
.PHONY: update-crds
update-crds: ## Run update crd
./scripts/crds/update-crds.sh
.PHONY: upgrade-crds
upgrade-crds: ## Upgrade the crds in the cluster.
./scripts/crds/upgrade-crds.sh $(CRDS_VERSION)
.PHONY: check-crds
check-crds: update-crds ## Check crd
@git diff --quiet || \
(echo "Need to update crds, please run 'make crds'"; \
exit 1)
# For example: make update-chart CHART=${CHART_NAME} VERSION=${IMAGE_TAG}
# make update-chart CHART=greptimedb-standalone VERSION=v0.7.2
# make update-chart CHART=greptimedb-cluster VERSION=v0.7.2
# make update-chart CHART=greptimedb-operator VERSION=v0.1.0-alpha.28
.PHONY: update-chart
update-chart: ## Run update chart
./scripts/update-chart.sh $(CHART) $(VERSION)