Skip to content

Commit 4ac5bb9

Browse files
committed
feat: volume management
1 parent 50858d0 commit 4ac5bb9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

charts/frankenphp/templates/crons.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ spec:
1818
backoffLimit: {{ (default .backoffLimit 0) }}
1919
template:
2020
spec:
21-
serviceAccountName: {{ include "helm-frankenphp.serviceAccountName" $context }}
21+
{{- with $.Values.serviceAccount }}
22+
serviceAccountName: {{ include "helm-frankenphp.serviceAccountName" . }}
23+
{{- end }}
2224
restartPolicy: {{ (default .restartPolicy "Never") }}
2325
containers:
2426
- name: {{ $cronName | lower }}

charts/frankenphp/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ spec:
2525
imagePullSecrets:
2626
{{- toYaml . | nindent 8 }}
2727
{{- end }}
28+
{{- with .Values.serviceAccount }}
2829
serviceAccountName: {{ include "helm-frankenphp.serviceAccountName" . }}
30+
{{- end }}
2931
containers:
3032
- name: {{ .Chart.Name }}
3133
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

charts/frankenphp/templates/worker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ spec:
2323
labels:
2424
app: {{ $workerName }}
2525
spec:
26+
{{- with $.Values.serviceAccount }}
2627
serviceAccountName: {{ include "helm-frankenphp.serviceAccountName" $context }}
28+
{{- end }}
2729
restartPolicy: Always
2830
containers:
2931
- name: {{ $workerName }}

0 commit comments

Comments
 (0)