Skip to content

Commit a2a7e73

Browse files
authored
Feature: Add support for defining custom container securityContext (#68)
* Feature: Add support for defining custom container securityContext * Bump chart version to 5.2.0
1 parent 94f8c3b commit a2a7e73

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 5.1.0
2+
version: 5.2.0
33
apiVersion: v2
44
appVersion: 7.2.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ spec:
189189
{{ toYaml .Values.extraVolumeMounts | indent 8 }}
190190
{{- end }}
191191
{{- if .Values.securityContext.enabled }}
192+
{{- $securityContext := unset .Values.securityContext "enabled" }}
192193
securityContext:
193-
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
194-
{{- end}}
194+
{{- toYaml $securityContext | nindent 10 }}
195+
{{- end }}
195196
volumes:
196197
{{- with .Values.config.google }}
197198
{{- if and .adminEmail (or .serviceAccountJson .existingSecret) }}

helm/oauth2-proxy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ readinessProbe:
182182
securityContext:
183183
enabled: false
184184
runAsNonRoot: true
185+
# allowPrivilegeEscalation: false
186+
# runAsUser: 2000
185187

186188
podAnnotations: {}
187189
podLabels: {}

0 commit comments

Comments
 (0)