From 3611622702445e7858131452a667ee9db77de9f1 Mon Sep 17 00:00:00 2001 From: Weslley Camilo Date: Thu, 29 Jun 2023 16:21:31 -0300 Subject: [PATCH] feat: add ATLANTIS_EXECUTABLE_NAME and ATLANTIS_SILENCE_NO_PROJECTS to chart template --- charts/atlantis/templates/statefulset.yaml | 8 ++++++++ charts/atlantis/values.yaml | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/charts/atlantis/templates/statefulset.yaml b/charts/atlantis/templates/statefulset.yaml index 06dc47cb..7d3f24f0 100644 --- a/charts/atlantis/templates/statefulset.yaml +++ b/charts/atlantis/templates/statefulset.yaml @@ -189,6 +189,14 @@ spec: name: {{ .secretKeyRef.name }} key: {{ .secretKeyRef.key }} {{- end }} + {{- if .Values.executableName }} + - name: ATLANTIS_EXECUTABLE_NAME + value: {{ .Values.executableName | quote }} + {{- end }} + {{- if .Values.silenceNoProjects }} + - name: ATLANTIS_SILENCE_NO_PROJECTS + value: {{ .Values.silenceNoProjects | quote }} + {{- end }} {{- if .Values.allowForkPRs }} - name: ATLANTIS_ALLOW_FORK_PRS value: {{ .Values.allowForkPRs | quote }} diff --git a/charts/atlantis/values.yaml b/charts/atlantis/values.yaml index 2fe06485..957cf9d3 100644 --- a/charts/atlantis/values.yaml +++ b/charts/atlantis/values.yaml @@ -172,6 +172,12 @@ disableApplyAll: false # disableRepoLocking stops atlantis locking projects and or workspaces when running terraform disableRepoLocking: false +# executableName comment command trigger executable name. Defaults to atlantis. +#executableName: "atlantis-development" + +# silenceNoProjects will tell Atlantis to ignore PRs if none of the modified files are part of a project defined in the atlantis.yaml file +#silenceNoProjects: true + # Use Diff Markdown Format for color coding diffs enableDiffMarkdownFormat: false