Skip to content

Commit b177318

Browse files
committed
allow to deploy worker and apps using helm
commit 25e73a3 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Jan 14 09:44:57 2026 +0100 formating, fix comment Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit e664f65 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 16:35:17 2025 +0100 fix app services and images Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 825b55c Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 16:35:02 2025 +0100 use shuffle-workers for worker name Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit fb07662 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 16:00:13 2025 +0100 set env variables on helm-deployed apps so that they work as expected Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 82edd74 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 15:59:28 2025 +0100 disable cleanup in k8s Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 49c996b Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 15:58:29 2025 +0100 allow to configure shuffle worker port Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 7e4aee5 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Fri Dec 5 15:15:46 2025 +0100 replace dots in app version Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 454ca00 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 15:11:40 2025 +0100 fix authentication failing for helm-deployed worker Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 135a2da Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 15:06:27 2025 +0100 add missing helper shuffle.worker.imagePullSecrets Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 48168c8 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 14:55:16 2025 +0100 another attempt to fix shuffle app images Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit df45fa3 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 14:53:20 2025 +0100 enhance notes after installing / upgrading helm chart Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 1f824ed Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 14:52:49 2025 +0100 fix app images having a duplicate registry Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 7d43e6f Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 14:15:57 2025 +0100 remove unneeded argument to app.matchLabels Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 79f25e0 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 12:56:47 2025 +0100 set app container name Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 4303031 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 12:56:05 2025 +0100 fix template issues Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit d63db15 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 12:43:29 2025 +0100 fix affinity rules for worker and apps Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit e3d78fb Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 12:02:26 2025 +0100 add vpa, hpa, and pdb for workers Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 69c7c7b Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Wed Dec 3 11:58:46 2025 +0100 fix label matching for worker and apps Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit b6376cf Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Tue Dec 2 12:57:51 2025 +0100 app deployment using helm with full per-app customization Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 78f5e6c Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Tue Dec 2 10:09:42 2025 +0100 use top-level apps value instead of app.deployViaHelm, add enabled toggle Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 7654a6e Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 17:37:05 2025 +0100 fix WORKER_HOSTNAME when not deploying via helm Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 21de378 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 17:20:38 2025 +0100 change version to 0.0.0 to indicate that it is not maintained in the file Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 42c5ba2 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 17:19:24 2025 +0100 restore orborus image tag default Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit ff25e58 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 17:12:12 2025 +0100 cleanup values, add docs, regenerate parameters and values schema Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 478c6fc Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 17:11:07 2025 +0100 remove orborus-env configmap, add helpers for env variables Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 2dcd094 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 16:51:22 2025 +0100 fix backend env Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 1aa375b Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 16:44:38 2025 +0100 cleanup main helpers Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 1bc4ac3 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 16:42:26 2025 +0100 add missing end Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 3cdc77d Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 16:41:48 2025 +0100 split helpers Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 3d38853 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 16:30:57 2025 +0100 remove shuffle-backend configmap Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 894c631 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 14:12:35 2025 +0100 customizable worker, fix worker and app labels Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 42c2892 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 14:11:27 2025 +0100 add documentation Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 9cbbf53 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 11:04:51 2025 +0100 readd missing env variable Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> commit 5923c68 Author: Pascal Sthamer <pascal+github@sthamer.xyz> Date: Mon Dec 1 10:52:18 2025 +0100 start working on helm-deployed workers and apps Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz> improve docs Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz>
1 parent b4204aa commit b177318

26 files changed

Lines changed: 3342 additions & 694 deletions

functions/kubernetes/charts/shuffle/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: shuffle
33
description: A Helm chart for deploying Shuffle on Kubernetes
44
type: application
5-
version: 2.1.0 # Set during publishing in GitHub actions
5+
version: 0.0.0 # Set during publishing in GitHub actions
66
appVersion: latest # Overwritten during publishing in GitHub actions
77
dependencies:
88
- name: common

functions/kubernetes/charts/shuffle/README.md

Lines changed: 370 additions & 27 deletions
Large diffs are not rendered by default.

functions/kubernetes/charts/shuffle/templates/NOTES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Access the pod you want to debug by executing
2222

2323
To access shuffle using port-forwarding:
2424

25-
1. Run `kubectl port-forward -n shuffle svc/shuffle-frontend 8080:http`
25+
1. Run `kubectl port-forward -n {{ .Release.Namespace }} svc/{{ include "shuffle.frontend.name" . }} 8080:http`
2626
2. Visit http://localhost:8080 with your browser
27-
27+
3. Create the administrator account, if not already done
Lines changed: 0 additions & 371 deletions
Original file line numberDiff line numberDiff line change
@@ -1,377 +1,6 @@
1-
{{/*
2-
Return the common name for backend componentes
3-
*/}}
4-
{{- define "shuffle.backend.name" -}}
5-
{{- printf "%s-backend" (include "common.names.fullname" .) | trunc 63 -}}
6-
{{- end -}}
7-
8-
{{/*
9-
Return the common name for frontend components
10-
*/}}
11-
{{- define "shuffle.frontend.name" -}}
12-
{{- printf "%s-frontend" (include "common.names.fullname" .) | trunc 63 -}}
13-
{{- end -}}
14-
15-
{{/*
16-
Return the common name for orborus components
17-
*/}}
18-
{{- define "shuffle.orborus.name" -}}
19-
{{- printf "%s-orborus" (include "common.names.fullname" .) | trunc 63 -}}
20-
{{- end -}}
21-
22-
{{/*
23-
Return the common name for worker components
24-
*/}}
25-
{{- define "shuffle.worker.name" -}}
26-
{{- printf "%s-worker" (include "common.names.fullname" .) | trunc 63 -}}
27-
{{- end -}}
28-
29-
{{/*
30-
Return the common name for app components
31-
*/}}
32-
{{- define "shuffle.app.name" -}}
33-
{{- printf "%s-app" (include "common.names.fullname" .) | trunc 63 -}}
34-
{{- end -}}
35-
36-
{{/*
37-
Return the common labels for backend components
38-
The shuffle app builder requires the io.kompose.service=backend label to be set on the backend pod.
39-
*/}}
40-
{{- define "shuffle.backend.labels" -}}
41-
{{- include "common.labels.standard" . }}
42-
app.kubernetes.io/component: backend
43-
io.kompose.service: backend
44-
{{- end -}}
45-
46-
{{/*
47-
Return the common labels for frontend components
48-
*/}}
49-
{{- define "shuffle.frontend.labels" -}}
50-
{{- include "common.labels.standard" . }}
51-
app.kubernetes.io/component: frontend
52-
{{- end -}}
53-
54-
{{/*
55-
Return the common labels for orborus components
56-
*/}}
57-
{{- define "shuffle.orborus.labels" -}}
58-
{{- include "common.labels.standard" . }}
59-
app.kubernetes.io/component: orborus
60-
{{- end -}}
61-
62-
{{/*
63-
Return the common labels for worker components
64-
*/}}
65-
{{- define "shuffle.worker.labels" -}}
66-
{{- include "common.labels.standard" . }}
67-
app.kubernetes.io/component: worker
68-
{{- end -}}
69-
70-
{{/*
71-
Return the common labels for app components
72-
*/}}
73-
{{- define "shuffle.app.labels" -}}
74-
{{- include "common.labels.standard" . }}
75-
app.kubernetes.io/component: app
76-
{{- end -}}
77-
78-
{{/*
79-
Return the match labels for backend components
80-
*/}}
81-
{{- define "shuffle.backend.matchLabels" -}}
82-
{{- include "common.labels.matchLabels" . }}
83-
app.kubernetes.io/component: backend
84-
{{- end -}}
85-
86-
{{/*
87-
Return the match labels for frontend components
88-
*/}}
89-
{{- define "shuffle.frontend.matchLabels" -}}
90-
{{- include "common.labels.matchLabels" . }}
91-
app.kubernetes.io/component: frontend
92-
{{- end -}}
93-
94-
{{/*
95-
Return the match labels for orborus components
96-
*/}}
97-
{{- define "shuffle.orborus.matchLabels" -}}
98-
{{- include "common.labels.matchLabels" . }}
99-
app.kubernetes.io/component: orborus
100-
{{- end -}}
101-
102-
{{/*
103-
Return the match labels for worker components
104-
NOTE: This does not match the labels from shuffle.worker.labels, but the labels set by the orborus GoLang app.
105-
*/}}
106-
{{- define "shuffle.worker.matchLabels" -}}
107-
app.kubernetes.io/name: shuffle-worker
108-
{{- end -}}
109-
110-
{{/*
111-
Return the match labels for app components
112-
NOTE: This does not match the labels from shuffle.worker.labels, but the labels set by the orborus GoLang app.
113-
*/}}
114-
{{- define "shuffle.app.matchLabels" -}}
115-
app.kubernetes.io/name: shuffle-app
116-
{{- end -}}
117-
1181
{{/*
1192
Return the proper image name (for the init container volume-permissions image)
1203
*/}}
1214
{{- define "shuffle.volumePermissions.image" -}}
1225
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global "chart" .Chart ) -}}
1236
{{- end -}}
124-
125-
{{/*
126-
Return the proper Shuffle backend image name
127-
*/}}
128-
{{- define "shuffle.backend.image" -}}
129-
{{- include "common.images.image" ( dict "imageRoot" .Values.backend.image "global" .Values.global "chart" .Chart ) -}}
130-
{{- end -}}
131-
132-
{{/*
133-
Return the proper Docker Image Registry Secret Names for the backend pod
134-
*/}}
135-
{{- define "shuffle.backend.imagePullSecrets" -}}
136-
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.backend.image) "context" $) -}}
137-
{{- end -}}
138-
139-
{{/*
140-
Return the proper Shuffle frontend image name
141-
*/}}
142-
{{- define "shuffle.frontend.image" -}}
143-
{{- include "common.images.image" ( dict "imageRoot" .Values.frontend.image "global" .Values.global "chart" .Chart ) -}}
144-
{{- end -}}
145-
146-
{{/*
147-
Return the proper Docker Image Registry Secret Names for the frontend pod
148-
*/}}
149-
{{- define "shuffle.frontend.imagePullSecrets" -}}
150-
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.frontend.image) "context" $) -}}
151-
{{- end -}}
152-
153-
{{/*
154-
Return the proper Shuffle orborus image name
155-
*/}}
156-
{{- define "shuffle.orborus.image" -}}
157-
{{- include "common.images.image" ( dict "imageRoot" .Values.orborus.image "global" .Values.global "chart" .Chart ) -}}
158-
{{- end -}}
159-
160-
{{/*
161-
Return the proper Docker Image Registry Secret Names for the orborus pod
162-
*/}}
163-
{{- define "shuffle.orborus.imagePullSecrets" -}}
164-
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.orborus.image) "context" $) -}}
165-
{{- end -}}
166-
167-
{{/*
168-
Return the proper Shuffle worker image name
169-
*/}}
170-
{{- define "shuffle.worker.image" -}}
171-
{{- include "common.images.image" ( dict "imageRoot" .Values.worker.image "global" .Values.global "chart" .Chart ) -}}
172-
{{- end -}}
173-
174-
{{/*
175-
Create the name of the service account to use for the Shuffle backend
176-
*/}}
177-
{{- define "shuffle.backend.serviceAccount.name" -}}
178-
{{- if .Values.backend.serviceAccount.create -}}
179-
{{ default (include "shuffle.backend.name" .) .Values.backend.serviceAccount.name | trunc 63 | trimSuffix "-" }}
180-
{{- else -}}
181-
{{ default "default" .Values.backend.serviceAccount.name }}
182-
{{- end -}}
183-
{{- end -}}
184-
185-
{{/*
186-
Return the proper Docker Image Registry Secret Names for the backend service account
187-
*/}}
188-
{{- define "shuffle.backend.serviceAccount.imagePullSecrets" -}}
189-
{{- $pullSecrets := list }}
190-
191-
{{- range .Values.global.imagePullSecrets -}}
192-
{{- if kindIs "map" . -}}
193-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
194-
{{- else -}}
195-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
196-
{{- end -}}
197-
{{- end -}}
198-
199-
{{- range .Values.backend.serviceAccount.imagePullSecrets -}}
200-
{{- if kindIs "map" . -}}
201-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
202-
{{- else -}}
203-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
204-
{{- end -}}
205-
{{- end -}}
206-
207-
{{- if (not (empty $pullSecrets)) -}}
208-
imagePullSecrets:
209-
{{- range $pullSecrets | uniq }}
210-
- name: {{ . }}
211-
{{- end }}
212-
{{- end }}
213-
{{- end -}}
214-
215-
{{/*
216-
Create the name of the service account to use for the Shuffle frontend
217-
*/}}
218-
{{- define "shuffle.frontend.serviceAccount.name" -}}
219-
{{- if .Values.frontend.serviceAccount.create -}}
220-
{{ default (include "shuffle.frontend.name" .) .Values.frontend.serviceAccount.name | trunc 63 | trimSuffix "-" }}
221-
{{- else -}}
222-
{{ default "default" .Values.frontend.serviceAccount.name }}
223-
{{- end -}}
224-
{{- end -}}
225-
226-
{{/*
227-
Return the proper Docker Image Registry Secret Names for the frontend service account
228-
*/}}
229-
{{- define "shuffle.frontend.serviceAccount.imagePullSecrets" -}}
230-
{{- $pullSecrets := list }}
231-
232-
{{- range .Values.global.imagePullSecrets -}}
233-
{{- if kindIs "map" . -}}
234-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
235-
{{- else -}}
236-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
237-
{{- end -}}
238-
{{- end -}}
239-
240-
{{- range .Values.frontend.serviceAccount.imagePullSecrets -}}
241-
{{- if kindIs "map" . -}}
242-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
243-
{{- else -}}
244-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
245-
{{- end -}}
246-
{{- end -}}
247-
248-
{{- if (not (empty $pullSecrets)) -}}
249-
imagePullSecrets:
250-
{{- range $pullSecrets | uniq }}
251-
- name: {{ . }}
252-
{{- end }}
253-
{{- end }}
254-
{{- end -}}
255-
256-
{{/*
257-
Create the name of the service account to use for Shuffle orborus
258-
*/}}
259-
{{- define "shuffle.orborus.serviceAccount.name" -}}
260-
{{- if .Values.orborus.serviceAccount.create -}}
261-
{{ default (include "shuffle.orborus.name" .) .Values.orborus.serviceAccount.name | trunc 63 | trimSuffix "-" }}
262-
{{- else -}}
263-
{{ default "default" .Values.orborus.serviceAccount.name }}
264-
{{- end -}}
265-
{{- end -}}
266-
267-
{{/*
268-
Return the proper Docker Image Registry Secret Names for the orborus service account
269-
*/}}
270-
{{- define "shuffle.orborus.serviceAccount.imagePullSecrets" -}}
271-
{{- $pullSecrets := list }}
272-
273-
{{- range .Values.global.imagePullSecrets -}}
274-
{{- if kindIs "map" . -}}
275-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
276-
{{- else -}}
277-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
278-
{{- end -}}
279-
{{- end -}}
280-
281-
{{- range .Values.orborus.serviceAccount.imagePullSecrets -}}
282-
{{- if kindIs "map" . -}}
283-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
284-
{{- else -}}
285-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
286-
{{- end -}}
287-
{{- end -}}
288-
289-
{{- if (not (empty $pullSecrets)) -}}
290-
imagePullSecrets:
291-
{{- range $pullSecrets | uniq }}
292-
- name: {{ . }}
293-
{{- end }}
294-
{{- end }}
295-
{{- end -}}
296-
297-
{{/*
298-
Create the name of the service account to use for Shuffle workers
299-
*/}}
300-
{{- define "shuffle.worker.serviceAccount.name" -}}
301-
{{- if .Values.worker.serviceAccount.create -}}
302-
{{ default (include "shuffle.worker.name" .) .Values.worker.serviceAccount.name | trunc 63 | trimSuffix "-" }}
303-
{{- else -}}
304-
{{ default "default" .Values.worker.serviceAccount.name }}
305-
{{- end -}}
306-
{{- end -}}
307-
308-
{{/*
309-
Return the proper Docker Image Registry Secret Names for the worker service account
310-
*/}}
311-
{{- define "shuffle.worker.serviceAccount.imagePullSecrets" -}}
312-
{{- $pullSecrets := list }}
313-
314-
{{- range .Values.global.imagePullSecrets -}}
315-
{{- if kindIs "map" . -}}
316-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
317-
{{- else -}}
318-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
319-
{{- end -}}
320-
{{- end -}}
321-
322-
{{- range .Values.worker.serviceAccount.imagePullSecrets -}}
323-
{{- if kindIs "map" . -}}
324-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
325-
{{- else -}}
326-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
327-
{{- end -}}
328-
{{- end -}}
329-
330-
{{- if (not (empty $pullSecrets)) -}}
331-
imagePullSecrets:
332-
{{- range $pullSecrets | uniq }}
333-
- name: {{ . }}
334-
{{- end }}
335-
{{- end }}
336-
{{- end -}}
337-
338-
{{/*
339-
Create the name of the service account to use for Shuffle apps
340-
*/}}
341-
{{- define "shuffle.app.serviceAccount.name" -}}
342-
{{- if .Values.app.serviceAccount.create -}}
343-
{{ default (include "shuffle.app.name" .) .Values.app.serviceAccount.name | trunc 63 | trimSuffix "-" }}
344-
{{- else -}}
345-
{{ default "default" .Values.app.serviceAccount.name }}
346-
{{- end -}}
347-
{{- end -}}
348-
349-
{{/*
350-
Return the proper Docker Image Registry Secret Names for the app service account
351-
*/}}
352-
{{- define "shuffle.app.serviceAccount.imagePullSecrets" -}}
353-
{{- $pullSecrets := list }}
354-
355-
{{- range .Values.global.imagePullSecrets -}}
356-
{{- if kindIs "map" . -}}
357-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
358-
{{- else -}}
359-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
360-
{{- end -}}
361-
{{- end -}}
362-
363-
{{- range .Values.app.serviceAccount.imagePullSecrets -}}
364-
{{- if kindIs "map" . -}}
365-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
366-
{{- else -}}
367-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
368-
{{- end -}}
369-
{{- end -}}
370-
371-
{{- if (not (empty $pullSecrets)) -}}
372-
imagePullSecrets:
373-
{{- range $pullSecrets | uniq }}
374-
- name: {{ . }}
375-
{{- end }}
376-
{{- end }}
377-
{{- end -}}

0 commit comments

Comments
 (0)