diff --git a/charts/argo-cd/README.md b/charts/argo-cd/README.md index 4a2e4be9..fb95ca48 100644 --- a/charts/argo-cd/README.md +++ b/charts/argo-cd/README.md @@ -189,6 +189,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i | server.certificate.domain | Certificate manager domain | `"argocd.example.com"` | | server.certificate.enabled | Enables a certificate manager certificate. | `false` | | server.certificate.issuer | Certificate manager issuer | `{}` | +| server.initContainers | initContainers for server can be used for custom plugin wgets | `{}` | | server.clusterAdminAccess.enabled | Enable RBAC for local cluster deployments. | `true` | | server.config | [General Argo CD configuration](https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#repositories) | See [values.yaml](values.yaml) | | server.containerPort | Server container port. | `8080` | diff --git a/charts/argo-cd/templates/argocd-server/deployment.yaml b/charts/argo-cd/templates/argocd-server/deployment.yaml index d73e3df4..605077ac 100755 --- a/charts/argo-cd/templates/argocd-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-server/deployment.yaml @@ -46,6 +46,10 @@ spec: {{- end }} {{- if .Values.global.securityContext }} securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }} + {{- end }} + {{- if .Values.server.initContainers }} + initContainers: +{{- toYaml .Values.server.initContainers | nindent 8 }} {{- end }} containers: - name: {{ .Values.server.name }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index b47acbbf..d45fa0ad 100755 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -342,6 +342,15 @@ server: ## podLabels: {} + ## initContainer + 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/ + ## Configures the server port containerPort: 8080