diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index e4cb814c..1f21a8ae 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v1 appVersion: "1.2.3" description: A Helm chart for Argo-CD name: argo-cd -version: 0.6.1 +version: 0.7.1 icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png diff --git a/charts/argo-cd/README.md b/charts/argo-cd/README.md index 4db2516a..15e506f7 100644 --- a/charts/argo-cd/README.md +++ b/charts/argo-cd/README.md @@ -87,3 +87,4 @@ $ helm install --name my-release argo/argo-cd | server.servicePortHttps | int | `443` | HTTPS Container port for server | | server.volumeMounts | list | `[]` | Additional volume mounts, see [values.yaml](./values.yaml) for syntax for SSH known hosts | | server.volumes | list | `[]` | Additional volumes, see [values.yaml](./values.yaml) for syntax for SSH known hosts | +| server.initContainers | list | `[]` | Initialisation containers, see [values.yaml](./values.yaml) for syntax for Helm v2.12.3 | diff --git a/charts/argo-cd/templates/argocd-server-deployment.yaml b/charts/argo-cd/templates/argocd-server-deployment.yaml index a25f2b8c..e478278a 100644 --- a/charts/argo-cd/templates/argocd-server-deployment.yaml +++ b/charts/argo-cd/templates/argocd-server-deployment.yaml @@ -74,3 +74,7 @@ spec: {{- if .Values.server.volumes }} {{ toYaml .Values.server.volumes | nindent 6 | trim }} {{- end }} + {{- if .Values.server.initContainers }} + initContainers: + {{ toYaml .Values.server.initContainers | nindent 6 | trim }} + {{- end }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index bbdd8ec6..7060efd7 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -27,6 +27,18 @@ server: # - name: ssh-known-hosts # configMap: # name: argocd-ssh-known-hosts-cm + # - name: custom-tools + # emptyDir: {} + initContainers: [] + # - name: download-tools + # image: alpine:3.8 + # command: [sh, -c] + # args: + # - wget -qO- https://storage.googleapis.com/kubernetes-helm/helm-v2.12.3-linux-amd64.tar.gz | tar -xvzf - && + # mv linux-amd64/helm /custom-tools/ + # volumeMounts: + # - mountPath: /custom-tools + # name: custom-tools annotations: {} repoServer: