Skip to content

Commit

Permalink
fix(helm-chart): prioritize orgAllowlist (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMartinez-Sisti committed Apr 2, 2024
1 parent 2895061 commit a55d939
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/atlantis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
appVersion: v0.27.2
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 4.24.0
version: 4.24.1
keywords:
- terraform
home: https://www.runatlantis.io
Expand Down
2 changes: 1 addition & 1 deletion charts/atlantis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ extraManifests:
| netrcSecretName | string | `""` | If managing secrets outside the chart for the netrc file, use this variable to reference the secret name |
| nodeSelector | object | `{}` | |
| orgAllowlist | string | `"<replace-me>"` | Replace this with your own repo allowlist. |
| orgWhitelist | string | `"<replace-me>"` | Deprecated in favor of orgAllowlist. |
| orgWhitelist | string | `"<deprecated>"` | Deprecated in favor of orgAllowlist. |
| podMonitor | object | `{"enabled":false,"interval":"30s"}` | Enable this if you're using Google Managed Prometheus. |
| podTemplate.annotations | object | `{}` | Check values.yaml for examples. |
| podTemplate.labels | object | `{}` | |
Expand Down
6 changes: 5 additions & 1 deletion charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ spec:
- name: ATLANTIS_DATA_DIR
value: {{ .Values.atlantisDataDirectory }}
- name: ATLANTIS_REPO_ALLOWLIST
value: {{ toYaml (coalesce .Values.orgWhitelist .Values.orgAllowlist) }}
{{- if .Values.orgAllowlist }}
value: {{ .Values.orgAllowlist | quote }}
{{- else }}
value: {{ .Values.orgWhitelist | quote }}
{{- end }}
- name: ATLANTIS_PORT
value: "4141"
{{- if .Values.repoConfig }}
Expand Down
2 changes: 1 addition & 1 deletion charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ atlantisUrl: ""
orgAllowlist: "<replace-me>"

# -- Deprecated in favor of orgAllowlist.
orgWhitelist: "<replace-me>"
orgWhitelist: "<deprecated>"

# -- Specify the log level for Atlantis.
# Accepts: debug, info, warn, or error.
Expand Down

0 comments on commit a55d939

Please sign in to comment.