Skip to content

Commit df52e3c

Browse files
authored
feat: Add ability to define securityContext (#99)
Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
1 parent 7414793 commit df52e3c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

helm/templates/service.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ spec:
8585
- name: SSL_CERT_DIR
8686
value: {{ .Values.image.sslCertDir }}
8787
{{- end }}
88+
{{- with .Values.securityContext }}
89+
securityContext:
90+
{{- toYaml . | nindent 12 }}
91+
{{- end }}
8892
{{- if .Values.volumeMounts }}
8993
volumeMounts: {{- toYaml .Values.volumeMounts | nindent 12 }}
9094
{{- end }}

helm/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ tolerations:
8989
# labels -- The pod labels for coder-logstream-kube. See:
9090
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
9191
labels: {}
92+
93+
# securityContext -- Container-level security context
94+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
95+
securityContext: {}
96+
# allowPrivilegeEscalation: false
97+
# capabilities:
98+
# drop:
99+
# - ALL
100+
# readOnlyRootFilesystem: true
101+
# runAsNonRoot: true
102+
# seccompProfile:
103+
# type: RuntimeDefault

0 commit comments

Comments
 (0)