-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
140 lines (119 loc) · 5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
EXTERNAL_CHARTS = $(shell grep -P "^update-\S+:$$" Makefile | cut -d: -f1)
EXTERNAL_CHARTS_ACTUAL = $(shell find external -mindepth 1 -maxdepth 1 -type d | sed 's/external\//update-/')
MISSING_UPDATE_TARGETS = $(shell echo $(EXTERNAL_CHARTS_ACTUAL) $(EXTERNAL_CHARTS) | sed 's/ /\n/g' | sort | uniq -u)
generate-docs:
@echo "Generate chart docs"
@helm-docs -s file --template-files=charts/_templates.gotmpl --template-files=DOCS.md.gotmpl --template-files=README.md.gotmpl
list-missing-update-targets:
@echo $(MISSING_UPDATE_TARGETS) | sed 's/ /\n/g'
deps: $(EXTERNAL_CHARTS)
@echo "Updated chart dependencies"
update-cert-manager:
@echo "Updating cert-manager"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://charts.jetstack.io
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-common:
@echo "Updating common"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar bitnami/$(patsubst update-%,%,$@)
@echo ""
update-elasticsearch:
@echo "Updating elasticsearch"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://helm.elastic.co
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-fluent-bit:
@echo "Updating fluent-bit"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://fluent.github.io/helm-charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-grafana:
@echo "Updating grafana"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://grafana.github.io/helm-charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-graylog:
@echo "Updating graylog"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://charts.kong-z.com
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-ingress-nginx:
@echo "Updating ingress-nginx"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://kubernetes.github.io/ingress-nginx
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-kratos:
@echo "Updating kratos"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://k8s.ory.sh/helm/charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-hydra:
@echo "Updating Hydra"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://k8s.ory.sh/helm/charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-ory-commons:
@echo "Updating Hydra"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://k8s.ory.sh/helm/charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-minio:
@echo "Updating minio"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar bitnami/$(patsubst update-%,%,$@)
@echo ""
update-mockserver:
@echo "Updating mockserver"
@helm repo add mockserver https://www.mock-server.com
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar mockserver/$(patsubst update-%,%,$@)
@echo ""
update-mongodb:
@echo "Updating mongodb"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar bitnami/$(patsubst update-%,%,$@)
@echo ""
update-postgresql:
@echo "Updating postgresql"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar bitnami/$(patsubst update-%,%,$@)
@echo ""
update-redis:
@echo "Updating redis"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar bitnami/$(patsubst update-%,%,$@)
@echo ""
update-trivy:
@echo "Updating trivy"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://aquasecurity.github.io/helm-charts/
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-velero:
@echo "Updating velero"
@helm repo add bitnami https://charts.bitnami.com/bitnami
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://vmware-tanzu.github.io/helm-charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-nifi:
@echo "Updating NiFi"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://cetic.github.io/helm-charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""