-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
43 lines (34 loc) · 1.47 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
# renovate: datasource=github-releases depName=norwoodj/helm-docs
HELM_DOCS_PACKAGE_VERSION := v1.13.1
KUBE_LINTER_PACKAGE_VERSION := latest
KUBECONFORM_PACKAGE_VERSION := latest
SHELL := bash
DIST := dist
GO ?= go
HELM_DOCS_PACKAGE ?= github.com/norwoodj/helm-docs/cmd/helm-docs@$(HELM_DOCS_PACKAGE_VERSION)
KUBE_LINTER_PACKAGE ?= golang.stackrox.io/kube-linter/cmd/kube-linter@$(KUBE_LINTER_PACKAGE_VERSION)
KUBECONFORM_PACKAGE ?= github.com/yannh/kubeconform/cmd/kubeconform@$(KUBECONFORM_PACKAGE_VERSION)
all: docs lint api clean
.PHONY: docs
docs:
$(GO) run $(HELM_DOCS_PACKAGE) --badge-style=flat --template-files ci/README.md.gotmpl --output-file=README.md
.PHONY: ci-template
ci-template:
helm template charts/owncloud -f ci/ci-values.yaml > ci/owncloud-ci-templated.yaml
.PHONY: clean
clean:
rm -rf ci/owncloud-ci-templated.yaml
rm -rf $(DIST)
.PHONY: lint
lint: ci-template
helm lint charts/owncloud
$(GO) run $(KUBE_LINTER_PACKAGE) lint ci/owncloud-ci-templated.yaml
.PHONY: api
api: ci-template
$(GO) run $(KUBECONFORM_PACKAGE) -kubernetes-version 1.21.0 -summary -strict ci/owncloud-ci-templated.yaml
$(GO) run $(KUBECONFORM_PACKAGE) -kubernetes-version 1.22.0 -summary -strict ci/owncloud-ci-templated.yaml
$(GO) run $(KUBECONFORM_PACKAGE) -kubernetes-version 1.23.0 -summary -strict ci/owncloud-ci-templated.yaml
$(GO) run $(KUBECONFORM_PACKAGE) -kubernetes-version 1.24.0 -summary -strict ci/owncloud-ci-templated.yaml
.PHONY: package
package:
cr package charts/owncloud/