Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OpenTofu support to helm chart #430

Merged
merged 12 commits into from
Oct 13, 2024
2 changes: 1 addition & 1 deletion charts/atlantis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
# renovate: datasource=docker depName=ghcr.io/runatlantis/atlantis
appVersion: v0.29.0
appVersion: v0.30.0
seifrajhi marked this conversation as resolved.
Show resolved Hide resolved
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 5.6.0
Expand Down
1 change: 1 addition & 0 deletions charts/atlantis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ extraManifests:
| customPem | string | `""` | Allows to override the /etc/ssl/certs/ca-certificates.cer with your custom one. You have to create a secret with the specified name. |
| dataStorage | string | `""` | DEPRECATED - Disk space available to check out repositories. Example: 5Gi. |
| defaultTFVersion | string | `""` | Sets the default terraform version to be used in atlantis server. Check values.yaml for examples. |
| defaultTFDistribution | string | `terraform` | Sets the default terraform distribution to use. Can be set to terraform or opentofu. |
| disableApply | bool | `false` | Disables running `atlantis apply` regardless of which flags are sent with it. |
| disableApplyAll | bool | `false` | Disables running `atlantis apply` without any flags. |
| disableRepoLocking | bool | `false` | Stops atlantis locking projects and or workspaces when running terraform. |
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 @@ -307,6 +307,10 @@ spec:
- name: ATLANTIS_DEFAULT_TF_VERSION
value: {{ .Values.defaultTFVersion }}
{{- end }}
{{- if .Values.defaultTFDistribution }}
- name: ATLANTIS_TF_DISTRIBUTION
value: {{ .Values.defaultTFDistribution }}
{{- end }}
{{- if .Values.logLevel }}
- name: ATLANTIS_LOG_LEVEL
value: {{ .Values.logLevel | quote}}
Expand Down
9 changes: 9 additions & 0 deletions charts/atlantis/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,15 @@
"type": "string",
"description": "Default Terraform version to be used by atlantis server"
},
"defaultTFDistribution": {
"type": "string",
"description": "Default Atlantis distribution to be used by atlantis server. Either Opentufu or terraform",
seifrajhi marked this conversation as resolved.
Show resolved Hide resolved
"default": "terraform",
"enum": [
"terraform",
"opentofu"
]
},
"disableApply": {
"type": "boolean",
"description": "Disables running `atlantis apply` regardless of what options are specified",
Expand Down
3 changes: 3 additions & 0 deletions charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ hideUnchangedPlanComments: false
defaultTFVersion: ""
# Example: "0.12.0".

### -- Sets the default terraform distribution to use. Can be set to terraform or opentofu.
defaultTFDistribution: terraform

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

Expand Down