Add support to run gitea with an optional securityContext (#115)
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/115 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: lafriks <lafriks@noreply.gitea.io> Co-authored-by: martencassel <martencassel@noreply.gitea.io> Co-committed-by: martencassel <martencassel@noreply.gitea.io>
This commit is contained in:
parent
4682597b04
commit
33903d8f6c
@ -327,6 +327,7 @@ Annotations can be added to the Gitea pod.
|
|||||||
| extraVolumes | Additional volumes to mount to the Gitea statefulset | {} |
|
| extraVolumes | Additional volumes to mount to the Gitea statefulset | {} |
|
||||||
| extraVolumeMounts | Additional volumes mounts for the Gitea containers | {} |
|
| extraVolumeMounts | Additional volumes mounts for the Gitea containers | {} |
|
||||||
| initPreScript | Bash script copied verbatim to start of init container | |
|
| initPreScript | Bash script copied verbatim to start of init container | |
|
||||||
|
| securityContext | Run as a specific securityContext | {} |
|
||||||
|
|
||||||
### Image
|
### Image
|
||||||
|
|
||||||
|
@ -87,6 +87,8 @@ spec:
|
|||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
@ -13,6 +13,8 @@ image:
|
|||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
|
||||||
|
securityContext: {}
|
||||||
|
|
||||||
service:
|
service:
|
||||||
http:
|
http:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
Loading…
Reference in New Issue
Block a user