Skip to content

Commit 18ec8fa

Browse files
authored
fix: Allow to set empty securityContext for all deployments (#534)
2 parents baa4bb4 + a46922c commit 18ec8fa

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

helm/flowforge/templates/broker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ spec:
3232
priorityClassName: "{{ .Values.forge.priorityClassName}}"
3333
{{- end }}
3434
automountServiceAccountToken: false
35+
{{- if .Values.forge.broker.podSecurityContext }}
3536
securityContext:
3637
{{- toYaml .Values.forge.broker.podSecurityContext | nindent 8 }}
38+
{{- end }}
3739
containers:
3840
- name: broker
3941
image: {{ .Values.forge.broker.image }}

helm/flowforge/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ spec:
4040
{{- end }}
4141
serviceAccountName: flowforge
4242
automountServiceAccountToken: true
43+
{{- if .Values.forge.podSecurityContext }}
4344
securityContext:
4445
{{- toYaml .Values.forge.podSecurityContext | nindent 8 }}
46+
{{- end }}
4547
initContainers:
4648
- name: config
4749
image: "ruby:2.7-slim"

helm/flowforge/templates/file-storage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ spec:
5353
priorityClassName: "{{ .Values.forge.priorityClassName}}"
5454
{{- end }}
5555
automountServiceAccountToken: false
56+
{{- if .Values.forge.fileStore.podSecurityContext }}
5657
securityContext:
5758
{{- toYaml .Values.forge.fileStore.podSecurityContext | nindent 8 }}
59+
{{- end }}
5860
initContainers:
5961
- name: config
6062
image: "ruby:2.7-slim"

0 commit comments

Comments
 (0)