forked from SumoLogic/sumologic-kubernetes-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (55 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
71
lint: shellcheck markdownlint helm-lint yamllint markdown-links-lint markdown-table-formatter-check
shellcheck:
./ci/shellcheck.sh
test:
./ci/tests.sh
push-helm-chart:
./ci/push-helm-chart.sh
markdownlint:
markdownlint --config .markdownlint.jsonc \
deploy/docs \
CHANGELOG.md
.PHONY: helm-version
helm-version:
helm version
.PHONY: helm-dependency-update
helm-dependency-update: helm-version
helm dependency update deploy/helm/sumologic
.PHONY: helm-lint
helm-lint: helm-version
# TODO: we should add back the --strict flag but because we have made the PodDisruptionBudget
# API version dependent on cluster capabilities and because helm lint does not accept
# an --api-versions flag like helm template does we cannot make this configurable.
#
# Perhaps we could at some point run this against a cluster with particular k8s version?
#
# https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1943
helm lint \
--set sumologic.accessId=X \
--set sumologic.accessKey=X \
deploy/helm/sumologic/
helm lint --with-subcharts \
--set sumologic.accessId=X \
--set sumologic.accessKey=X \
deploy/helm/sumologic/ || true
yamllint:
yamllint -c .yamllint.yaml\
deploy/helm/sumologic/values.yaml \
vagrant/values.yaml
markdown-links-lint:
./ci/markdown_links_lint.sh
markdown-link-check:
./ci/markdown_link_check.sh
markdown-table-formatter-check:
./ci/markdown_table_formatter.sh --check
markdown-table-formatter-format:
./ci/markdown_table_formatter.sh --format
# Vagrant commands
vup:
vagrant up
vssh:
vagrant ssh -c 'cd /sumologic; exec "$$SHELL"'
vhalt:
vagrant halt
vdestroy:
vagrant destroy -f