From 9f21669a5d3910b675fc573d8db8a417ef2457cc Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 26 Jun 2019 00:28:37 +0800 Subject: [PATCH] [stable/atlantis] Add option to pass --disable-apply-all (#14242) Signed-off-by: Andy Aldo Dharmawan --- stable/atlantis/Chart.yaml | 4 ++-- stable/atlantis/README.md | 1 + stable/atlantis/templates/statefulset.yaml | 4 ++++ stable/atlantis/values.yaml | 5 ++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/stable/atlantis/Chart.yaml b/stable/atlantis/Chart.yaml index 3d8465f60d..21e0c1b5b2 100644 --- a/stable/atlantis/Chart.yaml +++ b/stable/atlantis/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: "v0.7.1" +appVersion: "v0.8.2" description: A Helm chart for Atlantis https://www.runatlantis.io name: atlantis -version: 3.5.4 +version: 3.6.0 keywords: - terraform home: https://www.runatlantis.io diff --git a/stable/atlantis/README.md b/stable/atlantis/README.md index 3c432f7fb1..494b9191bf 100644 --- a/stable/atlantis/README.md +++ b/stable/atlantis/README.md @@ -56,6 +56,7 @@ The following options are supported. See [values.yaml](values.yaml) for more de | `repoConfig` | [Server Side Repo Configuration](https://www.runatlantis.io/docs/server-side-repo-config.html) as a raw YAML string. Configuration is stored in ConfigMap. | n/a | | `defaultTFVersion` | Default Terraform version to be used by atlantis server | n/a | | `allowForkPRs` | Allow atlantis to run on fork Pull Requests | `false` | +| `disableApplyAll` | Disables running `atlantis apply` without any flags | `false` | | `serviceAccount.create` | Whether to create a Kubernetes ServiceAccount if no account matching `serviceAccount.name` exists. | `true` | | `serviceAccount.name` | Name of the Kubernetes ServiceAccount under which Atlantis should run. If no value is specified and `serviceAccount.create` is `true`, Atlantis will be run under a ServiceAccount whose name is the FullName of the Helm chart's instance, else Atlantis will be run under the `default` ServiceAccount. | n/a | | `serviceAccountSecrets.credentials` | JSON string representing secrets for a Google Cloud Platform production service account. Only applicable if hosting Atlantis on GKE. | n/a | diff --git a/stable/atlantis/templates/statefulset.yaml b/stable/atlantis/templates/statefulset.yaml index 1ae328b7d5..6eb2dc8c48 100644 --- a/stable/atlantis/templates/statefulset.yaml +++ b/stable/atlantis/templates/statefulset.yaml @@ -99,6 +99,10 @@ spec: - name: ATLANTIS_ALLOW_FORK_PRS value: {{ .Values.allowForkPRs | quote }} {{- end }} + {{- if .Values.disableApplyAll }} + - name: ATLANTIS_DISABLE_APPLY_ALL + value: {{ .Values.disableApplyAll | quote }} + {{- end }} {{- if .Values.defaultTFVersion }} - name: ATLANTIS_DEFAULT_TF_VERSION value: {{ .Values.defaultTFVersion }} diff --git a/stable/atlantis/values.yaml b/stable/atlantis/values.yaml index c50cd91e7b..acb613792c 100644 --- a/stable/atlantis/values.yaml +++ b/stable/atlantis/values.yaml @@ -79,7 +79,7 @@ serviceAccountSecrets: image: repository: runatlantis/atlantis - tag: v0.7.1 + tag: v0.8.2 pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. @@ -113,6 +113,9 @@ allowForkPRs: false ## defaultTFVersion set the default terraform version to be used in atlantis server # defaultTFVersion: v0.12.0 +# disableApplyAll disables running `atlantis apply` without any flags +disableApplyAll: false + # We only need to check every 60s since Atlantis is not a high-throughput service. livenessProbe: enabled: true