diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 2848766a..23b3695c 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.4.2" description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 2.0.2 +version: 2.0.3 home: https://github.com/argoproj/argo-helm icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png keywords: diff --git a/charts/argo-cd/README.md b/charts/argo-cd/README.md index d4d8a188..3a6123c9 100644 --- a/charts/argo-cd/README.md +++ b/charts/argo-cd/README.md @@ -60,6 +60,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i | global.image.tag | If defined, a tag applied to all ArgoCD deployments. | `"v1.4.2"` | | global.securityContext | Toggle and define securityContext | See [values.yaml](values.yaml) |  | global.imagePullSecrets | If defined, uses a Secret to pull an image from a private Docker registry or repository. | `[]` |  +| global.hostAliases | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files | `[]` | | nameOverride | Provide a name in place of `argocd` | `"argocd"` | | installCRDs | bool | `true` | Install CRDs if you are using Helm2. | | configs.knownHosts.data.ssh_known_hosts | Known Hosts | See [values.yaml](values.yaml) | diff --git a/charts/argo-cd/templates/argocd-application-controller/deployment.yaml b/charts/argo-cd/templates/argocd-application-controller/deployment.yaml index 5bab57d6..b785e463 100755 --- a/charts/argo-cd/templates/argocd-application-controller/deployment.yaml +++ b/charts/argo-cd/templates/argocd-application-controller/deployment.yaml @@ -113,6 +113,10 @@ spec: {{- toYaml .Values.controller.affinity | nindent 8 }} {{- end }} serviceAccountName: {{ template "argo-cd.controllerServiceAccountName" . }} +{{- with .Values.global.hostAliases }} + hostAliases: +{{ toYaml . | indent 6 }} +{{- end }} {{- if .Values.controller.volumes }} volumes: {{- toYaml .Values.controller.volumes | nindent 8 }} diff --git a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml index ff6d796c..0431bd63 100755 --- a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml @@ -120,6 +120,10 @@ spec: {{- toYaml .Values.repoServer.affinity | nindent 8 }} {{- end }} serviceAccountName: {{ template "argo-cd.repoServerServiceAccountName" . }} +{{- with .Values.global.hostAliases }} + hostAliases: +{{ toYaml . | indent 6 }} +{{- end }} volumes: {{- if .Values.repoServer.volumes }} {{- toYaml .Values.repoServer.volumes | nindent 6}} diff --git a/charts/argo-cd/templates/argocd-server/deployment.yaml b/charts/argo-cd/templates/argocd-server/deployment.yaml index 6ce87df3..f9e84bd2 100755 --- a/charts/argo-cd/templates/argocd-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-server/deployment.yaml @@ -130,6 +130,10 @@ spec: {{- toYaml .Values.server.affinity | nindent 8 }} {{- end }} serviceAccountName: {{ template "argo-cd.serverServiceAccountName" . }} +{{- with .Values.global.hostAliases }} + hostAliases: +{{ toYaml . | indent 6 }} +{{- end }} volumes: {{- if .Values.server.volumes }} {{- toYaml .Values.server.volumes | nindent 6}} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 74e14938..0f810c1a 100755 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -17,6 +17,10 @@ global: # runAsGroup: 999 # fsGroup: 999 imagePullSecrets: [] + hostAliases: [] + # - ip: 10.20.30.40 + # hostnames: + # - git.myhostname ## Controller controller: