Skip to content

Commit

Permalink
Merge pull request #9 from gezb/feature/expose_disable_apply_server_flag
Browse files Browse the repository at this point in the history
Add the disableApply server flag to the helm chart
  • Loading branch information
lkysow committed Jan 13, 2021
2 parents fbede50 + c5b7857 commit cf3ca2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/atlantis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v0.16.0
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 3.12.6
version: 3.12.7
keywords:
- terraform
home: https://www.runatlantis.io
Expand Down
1 change: 1 addition & 0 deletions charts/atlantis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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` |
| `disableApply` | Disables running `atlantis apply` regardless of what options are specified | `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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ spec:
- name: ATLANTIS_ALLOW_FORK_PRS
value: {{ .Values.allowForkPRs | quote }}
{{- end }}
{{- if .Values.disableApply }}
- name: ATLANTIS_DISABLE_APPLY
value: {{ .Values.disableApply | quote }}
{{- end }}
{{- if .Values.disableApplyAll }}
- name: ATLANTIS_DISABLE_APPLY_ALL
value: {{ .Values.disableApplyAll | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ allowForkPRs: false
## defaultTFVersion set the default terraform version to be used in atlantis server
# defaultTFVersion: 0.12.0

# disableApply disables running `atlantis apply` regardless of which flags are sent with it
disableApply: false

# disableApplyAll disables running `atlantis apply` without any flags
disableApplyAll: false

Expand Down

0 comments on commit cf3ca2a

Please sign in to comment.