[stable/atlantis] fix the mount collision between repos.yaml and atlantis.yaml (#18434)

* stable/atlantis: fix mount collision when mounting configmap

Fixes a mount collision if both `repoConfig` and `config` are set in the values.yaml

Kubernetes mounts `config` which contains atlantis.yaml first then in the same dir (/etc/atlantis) mounts repos.yaml over it. So the server will not start since it's looking for `/etc/atlantis/atlantis.yaml`

Signed-off-by: Mike Zupan <mike@zcentric.com>

* bump the chart version

Signed-off-by: Mike Zupan <mike@zcentric.com>
This commit is contained in:
Mike Zupan
2019-10-30 01:50:52 -07:00
committed by Kubernetes Prow Robot
parent e677d7f936
commit 1068a628b4
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.8.2"
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 3.8.3
version: 3.8.4
keywords:
- terraform
home: https://www.runatlantis.io
+4 -2
View File
@@ -265,12 +265,14 @@ spec:
{{- end }}
{{- if .Values.repoConfig }}
- name: repo-config
mountPath: /etc/atlantis
mountPath: /etc/atlantis/repos.yaml
subPath: repos.yaml
readOnly: true
{{- end }}
{{- if .Values.config }}
- name: config
mountPath: /etc/atlantis
mountPath: /etc/atlantis/atlantis.yaml
subPath: atlantis.yaml
readOnly: true
{{- end }}
{{- if .Values.extraVolumeMounts }}