Skip to content

Commit d91ad01

Browse files
authored
fix: security/resources configurable (#25)
1 parent db9d699 commit d91ad01

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

chart/k8soauth2-proxy-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ keywords:
1313
name: k8soauth2-proxy-controller
1414
sources:
1515
- https://github.com/DoodleScheduling/k8soauth2-proxy-controller
16-
version: 0.2.3
16+
version: 0.2.4

chart/k8soauth2-proxy-controller/templates/deployment.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,9 @@ spec:
9696
name: https
9797
protocol: TCP
9898
resources:
99-
limits:
100-
cpu: 500m
101-
memory: 128Mi
102-
requests:
103-
cpu: 5m
104-
memory: 64Mi
99+
{{- toYaml .Values.kubeRBACProxy.resources | nindent 10 }}
100+
securityContext:
101+
{{- toYaml .Values.kubeRBACProxy.securityContext | nindent 10 }}
105102
terminationMessagePath: /dev/termination-log
106103
terminationMessagePolicy: File
107104
{{- end }}
@@ -114,6 +111,8 @@ spec:
114111
secret:
115112
secretName: {{ .secretName }}
116113
{{- end }}
114+
securityContext:
115+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
117116
affinity:
118117
{{- toYaml .Values.affinity | nindent 8 }}
119118
imagePullSecrets:

chart/k8soauth2-proxy-controller/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ securityContext:
8787
capabilities:
8888
drop: ["all"]
8989
readOnlyRootFilesystem: true
90+
91+
podSecurityContext:
9092
runAsGroup: 10000
9193
runAsNonRoot: true
9294
runAsUser: 10000
@@ -131,4 +133,12 @@ prometheusRule:
131133
kubeRBACProxy:
132134
enabled: true
133135

136+
securityContext:
137+
allowPrivilegeEscalation: false
138+
capabilities:
139+
drop: ["all"]
140+
readOnlyRootFilesystem: true
141+
142+
resources: {}
143+
134144
tolerations: []

0 commit comments

Comments
 (0)