Skip to content

Commit eaa8c59

Browse files
committed
use extraXXX model
1 parent b8bcf73 commit eaa8c59

File tree

8 files changed

+13
-20
lines changed

8 files changed

+13
-20
lines changed

charts/retool/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: retool
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 6.3.1
5+
version: 6.3.2
66
maintainers:
77
- name: Retool Engineering
88

charts/retool/templates/deployment_backend.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,11 @@ spec:
325325
{{ toYaml .Values.tolerations | indent 8 }}
326326
{{- if .Values.securityContext.enabled }}
327327
securityContext:
328-
{{- if .Values.securityContext.values }}
329-
{{ toYaml .Values.securityContext.values | indent 8 }}
330-
{{- else }}
331328
runAsUser: {{ .Values.securityContext.runAsUser }}
332329
fsGroup: {{ .Values.securityContext.fsGroup }}
333330
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
331+
{{- if .Values.securityContext.extraSecurityContext }}
332+
{{ toYaml .Values.securityContext.extraSecurityContext | indent 8 }}
334333
{{- end }}
335334
{{- end }}
336335
volumes:

charts/retool/templates/deployment_jobs.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,11 @@ spec:
239239
{{ toYaml .Values.tolerations | indent 8 }}
240240
{{- if .Values.securityContext.enabled }}
241241
securityContext:
242-
{{- if .Values.securityContext.values }}
243-
{{ toYaml .Values.securityContext.values | indent 8 }}
244-
{{- else }}
245242
runAsUser: {{ .Values.securityContext.runAsUser }}
246243
fsGroup: {{ .Values.securityContext.fsGroup }}
247244
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
245+
{{- if .Values.securityContext.extraSecurityContext }}
246+
{{ toYaml .Values.securityContext.extraSecurityContext | indent 8 }}
248247
{{- end }}
249248
{{- end }}
250249
volumes:

charts/retool/templates/deployment_multiplayer_ws.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,11 @@ spec:
184184
{{ toYaml .Values.tolerations | indent 8 }}
185185
{{- if .Values.securityContext.enabled }}
186186
securityContext:
187-
{{- if .Values.securityContext.values }}
188-
{{ toYaml .Values.securityContext.values | indent 8 }}
189-
{{- else }}
190187
runAsUser: {{ .Values.securityContext.runAsUser }}
191188
fsGroup: {{ .Values.securityContext.fsGroup }}
192189
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
190+
{{- if .Values.securityContext.extraSecurityContext }}
191+
{{ toYaml .Values.securityContext.extraSecurityContext | indent 8 }}
193192
{{- end }}
194193
{{- end }}
195194
volumes:

charts/retool/templates/deployment_workflows.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,11 @@ spec:
290290
{{ toYaml .Values.tolerations | indent 8 }}
291291
{{- if .Values.securityContext.enabled }}
292292
securityContext:
293-
{{- if .Values.securityContext.values }}
294-
{{ toYaml .Values.securityContext.values | indent 8 }}
295-
{{- else }}
296293
runAsUser: {{ .Values.securityContext.runAsUser }}
297294
fsGroup: {{ .Values.securityContext.fsGroup }}
298295
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
296+
{{- if .Values.securityContext.extraSecurityContext }}
297+
{{ toYaml .Values.securityContext.extraSecurityContext | indent 8 }}
299298
{{- end }}
300299
{{- end }}
301300
volumes:

charts/retool/templates/deployment_workflows_worker.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,11 @@ spec:
302302
{{ toYaml .Values.tolerations | indent 8 }}
303303
{{- if .Values.securityContext.enabled }}
304304
securityContext:
305-
{{- if .Values.securityContext.values }}
306-
{{ toYaml .Values.securityContext.values | indent 8 }}
307-
{{- else }}
308305
runAsUser: {{ .Values.securityContext.runAsUser }}
309306
fsGroup: {{ .Values.securityContext.fsGroup }}
310307
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
308+
{{- if .Values.securityContext.extraSecurityContext }}
309+
{{ toYaml .Values.securityContext.extraSecurityContext | indent 8 }}
311310
{{- end }}
312311
{{- end }}
313312
volumes:

charts/retool/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,7 @@ securityContext:
637637
runAsUser: 1000
638638
fsGroup: 2000
639639
# Use this section to define additional security context values not provided by default.
640-
# Existing values above will be fully replaced by the values in this section.
641-
values: {}
640+
extraSecurityContext: {}
642641

643642
extraConfigMapMounts: []
644643

values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,7 @@ securityContext:
637637
runAsUser: 1000
638638
fsGroup: 2000
639639
# Use this section to define additional security context values not provided by default.
640-
# Existing values above will be fully replaced by the values in this section.
641-
values: {}
640+
extraSecurityContext: {}
642641

643642
extraConfigMapMounts: []
644643

0 commit comments

Comments
 (0)