[stable/atlantis] Pass server configurations via environment variable (#13321)

* [stable/atlantis] pass flags as environment variable

Signed-off-by: Andy Aldo Dharmawan <andyaldodharmawan@gmail.com>

* [stable/atlantis] Bump chart version (MINOR)

Signed-off-by: Andy Aldo Dharmawan <andyaldodharmawan@gmail.com>

* [stable/atlantis] Update README.md

Add notes to indicate that server configurations are passed via
environment variables

Signed-off-by: Andy Aldo Dharmawan <andyaldodharmawan@gmail.com>
This commit is contained in:
Andy
2019-04-26 11:46:29 -07:00
committed by Kubernetes Prow Robot
parent b08ef62807
commit 7ef5561d54
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.7.1"
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 3.1.0
version: 3.2.0
keywords:
- terraform
home: https://www.runatlantis.io
+2
View File
@@ -62,6 +62,8 @@ The following options are supported. See [values.yaml](values.yaml) for more de
| `ingress.host` | Domain name Kubernetes Ingress rule looks for. Set it to the domain Atlantis will be hosted on. | `chart-example.local` |
| `ingress.tls` | Kubernetes tls block. See [Kubernetes docs](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls) for details. | `[]` |
**NOTE**: All the [Server Configurations](https://www.runatlantis.io/docs/server-configuration.html) are passed as [Environment Variables](https://www.runatlantis.io/docs/server-configuration.html#environment-variables).
## Upgrading
### From 2.* to 3.*
+8 -6
View File
@@ -74,12 +74,6 @@ spec:
{{- end}}
args:
- server
{{- if .Values.allowForkPRs }}
- --allow-fork-prs
{{- end }}
{{- if .Values.defaultTFVersion }}
- --default-tf-version={{ .Values.defaultTFVersion }}
{{- end }}
ports:
- name: atlantis
containerPort: 4141
@@ -88,6 +82,14 @@ spec:
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- if .Values.allowForkPRs }}
- name: ATLANTIS_ALLOW_FORK_PRS
value: {{ .Values.allowForkPRS }}
{{- end }}
{{- if .Values.defaultTFVersion }}
- name: ATLANTIS_DEFAULT_TF_VERSION
value: {{ .Values.defaultTFVersion }}
{{- end }}
{{- if .Values.logLevel }}
- name: ATLANTIS_LOG_LEVEL
value: {{ .Values.logLevel | quote}}