From 7248992d65b6b29b4a64f08fc1f4698391ccd671 Mon Sep 17 00:00:00 2001 From: ericpdurand Date: Sat, 26 Feb 2022 21:06:59 +0100 Subject: [PATCH] fix(argo-cd): Adding securityContext to copyutil container in repo-server (#1149) Signed-off-by: Eric Durand --- charts/argo-cd/Chart.yaml | 4 ++-- charts/argo-cd/templates/argocd-repo-server/deployment.yaml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 965386e8..e41db19a 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v2.2.5 description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 3.33.7 +version: 3.33.8 home: https://github.com/argoproj/argo-helm icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png keywords: @@ -21,4 +21,4 @@ dependencies: condition: redis-ha.enabled annotations: artifacthub.io/changes: | - - "[Added]: dex-server extraArgs" + - "[Fixed]: Added repo-server copyutil securityContext" diff --git a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml index 8217d84d..d485c613 100755 --- a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml @@ -203,6 +203,9 @@ spec: name: copyutil resources: {{- toYaml .Values.repoServer.copyutil.resources | nindent 10 }} + {{- if .Values.repoServer.containerSecurityContext }} + securityContext: {{- toYaml .Values.repoServer.containerSecurityContext | nindent 10 }} + {{- end }} volumeMounts: - mountPath: /var/run/argocd name: var-files