Fix rootless image usage with enhanced security-context #160

Merged
justusbunsi merged 1 commits from refs/pull/160/head into master 2021-06-07 13:27:26 +00:00
2 changed files with 5 additions and 2 deletions

View File

@ -80,6 +80,8 @@ spec:
value: /data
- name: GITEA_TEMP
value: /tmp/gitea
- name: TMPDIR
value: /tmp/gitea
{{- if .Values.statefulset.env }}
{{- toYaml .Values.statefulset.env | nindent 12 }}
{{- end }}
@ -137,7 +139,7 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
volumeMounts:
- name: temp
mountPath: /tmp/gitea
mountPath: /tmp
- name: data
mountPath: /data
{{- if .Values.extraVolumeMounts }}

View File

@ -8,12 +8,13 @@ clusterDomain: cluster.local
image:
repository: gitea/gitea
tag: 1.14.1
tag: 1.14.2
pullPolicy: Always
rootless: false # only possible when running 1.14 or later
imagePullSecrets: []
# only usable with rootless image due to image design
securityContext: {}
# allowPrivilegeEscalation: false
# capabilities: