Skip to content

Commit 8a69ba1

Browse files
committed
Merge branch 'master' into privatebin-0.20.2
2 parents 78e64a7 + 11ee63b commit 8a69ba1

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

charts/privatebin/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: privatebin
66
home: https://privatebin.info/
77
icon: https://raw.githubusercontent.com/PrivateBin/assets/master/images/preview/icon.png
88
type: application
9-
version: 0.20.2
9+
version: 0.21.1
1010
maintainers:
1111
- name: bdashrad
1212

charts/privatebin/templates/deployment.yaml

+10-6
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ spec:
3434
spec:
3535
serviceAccountName: {{ include "privatebin.serviceAccountName" . }}
3636
automountServiceAccountToken: false
37+
{{- if .Values.securityContext }}
3738
securityContext:
38-
runAsUser: {{ .Values.securityContext.runAsUser }}
39-
runAsGroup: {{ .Values.securityContext.runAsGroup }}
40-
fsGroup: {{ .Values.securityContext.fsGroup }}
39+
{{- with .Values.securityContext }}
40+
{{- toYaml . | nindent 8 }}
41+
{{- end }}
42+
{{- end }}
4143
{{- if .Values.image.pullSecrets }}
4244
imagePullSecrets:
4345
{{- range .Values.image.pullSecrets }}
@@ -52,10 +54,12 @@ spec:
5254
- name: http
5355
containerPort: 8080
5456
protocol: TCP
57+
{{- if .Values.podSecurityContext }}
5558
securityContext:
56-
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
57-
privileged: false
58-
allowPrivilegeEscalation: false
59+
{{- with .Values.podSecurityContext }}
60+
{{- toYaml . | nindent 12 }}
61+
{{- end }}
62+
{{- end }}
5963
livenessProbe:
6064
httpGet:
6165
path: /

charts/privatebin/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ securityContext:
5757
runAsUser: 65534
5858
runAsGroup: 82
5959
fsGroup: 82
60+
61+
podSecurityContext:
6062
readOnlyRootFilesystem: true
63+
privileged: false
64+
allowPrivilegeEscalation: false
6165

6266
extraVolumes: []
6367
# Optionally specify extra list of additional volumes for PrivateBin pod.

0 commit comments

Comments
 (0)