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"
|
appVersion: "1.3.4"
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 1.4.5
|
version: 1.5.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
|
@ -35,6 +35,7 @@ spec:
|
||||||
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- command:
|
||||||
- argocd-application-controller
|
- argocd-application-controller
|
||||||
|
|
|
@ -35,6 +35,7 @@ spec:
|
||||||
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.repoServer.name }}
|
- name: {{ .Values.repoServer.name }}
|
||||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default .Values.global.image.tag .Values.repoServer.image.tag }}
|
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 }}
|
{{- toYaml .Values.controller.podLabels | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.server.name }}
|
- name: {{ .Values.server.name }}
|
||||||
image: {{ default .Values.global.image.repository .Values.server.image.repository }}:{{ default .Values.global.image.tag .Values.server.image.tag }}
|
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
|
repository: argoproj/argocd
|
||||||
tag: v1.3.4
|
tag: v1.3.4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 999
|
||||||
|
runAsGroup: 999
|
||||||
|
fsGroup: 999
|
||||||
|
|
||||||
## Controller
|
## Controller
|
||||||
controller:
|
controller:
|
||||||
|
|
Loading…
Reference in a new issue