-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
184 lines (158 loc) · 6.61 KB
/
Makefile
File metadata and controls
184 lines (158 loc) · 6.61 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
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)
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-cloudnativepg-operator:
@echo "Updating cloudnativepg-operator"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://cloudnative-pg.github.io/charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/cloudnative-pg
@mv external/cloudnative-pg external/$(patsubst update-%,%,$@)
@echo ""
update-cloudnativepg-cluster:
@echo "Updating cloudnativepg-cluster"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://cloudnative-pg.github.io/charts
@helm pull -d external --untar $(patsubst update-%,%,$@)/cluster
@mv external/cluster external/$(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-nifi-cluster:
@echo "Updating NiFi Cluster"
@rm -rf external/$(patsubst update-%,%,$@)
@mkdir -p /tmp/nifikop
@git clone https://github.com/konpyutaika/nifikop.git /tmp/nifikop
@mkdir -p external/$(patsubst update-%,%,$@)
@cp -r /tmp/nifikop/helm/nifi-cluster/* external/$(patsubst update-%,%,$@)/
@rm -rf /tmp/nifikop
@echo ""
update-nifikop:
@echo "Updating NiFiKop"
@rm -rf external/$(patsubst update-%,%,$@)
@mkdir -p /tmp/nifikop
@git clone https://github.com/konpyutaika/nifikop.git /tmp/nifikop
@mkdir -p external/$(patsubst update-%,%,$@)
@cp -r /tmp/nifikop/helm/nifikop/* external/$(patsubst update-%,%,$@)/
@rm -rf /tmp/nifikop
@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-operator:
@echo "Updating redis-operator"
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar ot-container-kit/$(patsubst update-%,%,$@)
@echo ""
update-redis-cluster:
@echo "Updating redis-cluster"
@rm -rf external/$(patsubst update-%,%,$@)
@helm pull -d external --untar ot-container-kit/$(patsubst update-%,%,$@)
@echo ""
update-strimzi-kafka-operator:
@echo "Updating strimzi-kafka-operator"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://strimzi.io/charts/
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(patsubst update-%,%,$@)
@echo ""
update-strimzi-registry-operator:
@echo "Updating strimzi-registry-operator"
@rm -rf external/$(patsubst update-%,%,$@)
@helm repo add $(patsubst update-%,%,$@) https://lsst-sqre.github.io/charts/
@helm pull -d external --untar $(patsubst update-%,%,$@)/$(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 ""