Add securityContext. Fixes #96
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
parent
6faf1e77c8
commit
14c8258309
5 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||
appVersion: "1.3.4"
|
||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||
name: argo-cd
|
||||
version: 1.4.5
|
||||
version: 1.5.0
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
||||
keywords:
|
||||
|
|
|
@ -35,6 +35,7 @@ spec:
|
|||
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||
containers:
|
||||
- command:
|
||||
- argocd-application-controller
|
||||
|
|
|
@ -35,6 +35,7 @@ spec:
|
|||
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Values.repoServer.name }}
|
||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default .Values.global.image.tag .Values.repoServer.image.tag }}
|
||||
|
|
|
@ -35,6 +35,7 @@ spec:
|
|||
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Values.server.name }}
|
||||
image: {{ default .Values.global.image.repository .Values.server.image.repository }}:{{ default .Values.global.image.tag .Values.server.image.tag }}
|
||||
|
|
|
@ -12,6 +12,10 @@ global:
|
|||
repository: argoproj/argocd
|
||||
tag: v1.3.4
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
|
||||
## Controller
|
||||
controller:
|
||||
|
|
Loading…
Reference in a new issue