argo-cd: add server init containers

fix #122
This commit is contained in:
AntoineDao 2019-10-22 13:30:50 +10:00
parent 22607a897b
commit 874576fddc
4 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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 |

View file

@ -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 }}

View file

@ -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: