1## -------------------------- ##
2# Values to override for your instance.
3## -------------------------- ##
5# -- Provide a name to substitute for the full names of resources.
7# -- Provide a name to substitute for the name of the chart.
9# -- An option to override the atlantis url,
10# if not using an ingress, set it to the external IP.
11# When unset and the ingress is enabled, it is derived from the first entry of ingress.hosts or from ingress.host.
12# Check values.yaml for examples.
14# Example: http://10.0.0.0
16# -- Replace this with your own repo allowlist.
17orgAllowlist: "<replace-me>"
18# -- Deprecated in favor of orgAllowlist.
19orgWhitelist: "<deprecated>"
20# -- Specify the log level for Atlantis.
21# Accepts: debug, info, warn, or error.
23# -- If using GitHub, please enter your values as follows.
24# The chart will perform the base64 encoding for values that are stored in secrets.
25# The 'hostname' key is exclusive to GitHub Enterprise installations.
26# The 'org' key is used to restrict which GitHub org Atlantis will respond to.
27# Check values.yaml for examples.
33# hostname: github.your.org
36# -- If using a GitHub App, please enter your values as follows.
37# The chart will perform the base64 encoding for you for values that are stored in secrets.
38# installationId is necessary when there are multiple installs of the Github App.
39# Check values.yaml for examples.
46# -----BEGIN PRIVATE KEY-----
48# -----END PRIVATE KEY-----
51# -- If using Gitea, please enter your values as follows.
52# The 'baseUrl' key is exclusive to self-hosted Gitea installations.
53# The chart will perform the base64 encoding for you for values that are stored in secrets.
54# Check values.yaml for examples.
60# baseUrl: gitea.your.org
62# -- If using GitLab, please enter your values as follows.
63# The 'hostname' key is exclusive to GitLab Enterprise installations.
64# The chart will perform the base64 encoding for you for values that are stored in secrets.
65# Check values.yaml for examples.
71# hostname: gitlab.your.org
73# -- If using Bitbucket, there are two approaches:
74# Bitbucket Server, deployed in your own infrastructure
75# and Cloud available at (https://Bitbucket.org).
76# The chart will perform the base64 encoding for you for values that are stored in secrets.
77# Check values.yaml for examples.
84# baseURL: https://bitbucket.yourorganization.com
87# The recommendation is to genarate a service user on your cloud environment, but you can live on the edge using your own user :).
88# Create an APP PASSWORD to the user for the token value.
89# Base URL are not needed here, but keep in mind to provide an IP Whitelist as the Atlantis documentation.
90# For API token authentication (recommended over app passwords), specify apiUser which may differ from the user field.
91# Set secret to the webhook secret configured on the Bitbucket Cloud webhook so Atlantis can validate incoming requests.
92# When using vcsSecretName, add the webhook secret under the bitbucket_secret key; it is loaded only if present.
96# apiUser: foo@example.com # Optional: specify if using API tokens and the API user differs from user
97# secret: baz # Optional: webhook secret
99# -- If using Azure DevOps, please enter your values as follows.
100# The chart will perform the base64 encoding for you for values that are stored in secrets.
101# Check values.yaml for examples.
107# webhookPassword: baz
109# -- If managing secrets outside the chart for the webhook, use this variable to reference the secret name
111# -- When referencing Terraform modules in private repositories, it may be helpful
112# (necessary?) to use redirection in a .gitconfig.
113# Check values.yaml for examples.
116# [url "https://YOUR_GH_TOKEN@github.com"]
117# insteadOf = https://github.com
118# [url "https://YOUR_GH_TOKEN@github.com"]
119# insteadOf = ssh://git@github.com
120# [url "https://oauth2:YOUR_GITLAB_TOKEN@gitlab.com"]
121# insteadOf = https://gitlab.com
122# [url "https://oauth2:YOUR_GITLAB_TOKEN@gitlab.com"]
123# insteadOf = ssh://git@gitlab.com
124# Source: https://stackoverflow.com/questions/42148841/github-clone-with-oauth-access-token
126# -- When true gitconfig file is mounted as read only.
127# When false, the gitconfig value will be copied to '/home/atlantis/.gitconfig' before starting the atlantis process,
128# instead of being mounted as a file.
129gitconfigReadOnly: true
130# -- If managing secrets outside the chart for the gitconfig, use this variable to reference the secret name
131gitconfigSecretName: ""
132# -- When referencing Terraform modules in private repositories or registries (such as Artfactory)
133# configuing a .netrc file for authentication may be required.
134# Check values.yaml for examples.
137# machine artifactory.myapp.com login YOUR_USERNAME password YOUR_PASSWORD
138# machine bitbucket.myapp.com login YOUR_USERNAME password YOUR_PASSWORD
140# -- If managing secrets outside the chart for the netrc file, use this variable to reference the secret name
142# -- Terraform CLI configuration file mounted at `~/.terraformrc`, e.g. to authenticate
143# with private module registries or to use a provider network mirror.
144# OpenTofu also reads this file when `~/.tofurc` does not exist.
145# Do not combine with `--tfe-token` (`ATLANTIS_TFE_TOKEN`): Atlantis then writes its own
146# `~/.terraformrc` and fails to start if the file has different contents. Add a `credentials` block here instead.
147# Check values.yaml for examples.
150# credentials "app.terraform.io" {
151# token = "YOUR_TOKEN"
153# provider_installation {
155# url = "https://terraform-mirror.example.com/providers/"
159# -- If managing secrets outside the chart for the terraformrc file, use this variable to reference the secret name.
160# Mutually exclusive with `terraformrc`.
161# The key containing the file contents must be called 'terraformrc'.
162terraformrcSecretName: ""
163# -- To specify AWS credentials to be mapped to ~/.aws or to aws.directory.
164# Check values.yaml for examples.
169# aws_access_key_id=YOUR_ACCESS_KEY_ID
170# aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
173# [profile a_role_to_assume]
174# role_arn = arn:aws:iam::123456789:role/service-role/roleToAssume
175# source_profile = default
176# directory: "/home/atlantis/.aws"
178# -- To reference an already existing Secret object with AWS credentials
180# -- To keep backwards compatibility only.
181# Deprecated (see googleServiceAccountSecrets).
182# To be used for mounting credential files (when using google provider).
183# Check values.yaml for examples.
184serviceAccountSecrets: {}
185# serviceAccountSecrets:
186# credentials: <json file as base64 encoded string>
187# credentials-staging: <json file as base64 encoded string>
189## -------------------------- ##
190# Default values for atlantis (override as needed).
191## -------------------------- ##
193# -- (int) [optional] Define the port you would like atlantis to run on. When 0, the value of service.targetPort is used.
196 repository: cgr.dev/chainguard-private/atlantis
197 # -- If not set appVersion field from Chart.yaml is used
198 tag: 0.50.0-r0@sha256:a61ec4072b273e955988ab1fc47d58dc835228e188f7853822f6942bc61d999d
200# -- Optionally specify an array of imagePullSecrets.
201# Secrets must be manually created in the namespace.
202# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/.
203# Check values.yaml for examples.
206# - myRegistryKeySecretName
208# -- Override atlantis main configuration by config map,
209# ref: https://www.runatlantis.io/docs/using-slack-hooks.html#configuring-atlantis.
210# Check values.yaml for examples.
221# -- Use Server Side Repo Config,
222# ref: https://www.runatlantis.io/docs/server-side-repo-config.html.
223# Check values.yaml for examples.
225# Example with default configuration:
230# apply_requirements: []
232# allowed_overrides: []
233# allow_custom_workflows: false
244# -- Enables atlantis to run on a fork Pull Requests.
246# -- Enables atlantis to run on a draft Pull Requests.
248# -- Enables atlantis to hide previous plan comments.
249hidePrevPlanComments: false
250# -- Enables atlantis to hide no-changes plan comments from the pull request.
251hideUnchangedPlanComments: false
252# -- Sets the default terraform distribution to use. Can be set to terraform or opentofu.
253defaultTFDistribution: terraform
254# -- Sets the default terraform version to be used in atlantis server.
255# Check values.yaml for examples.
259# -- Disables running `atlantis apply` regardless of which flags are sent with it.
261# -- Disables running `atlantis apply` without any flags.
262disableApplyAll: false
263# -- Stops atlantis locking projects and or workspaces when running terraform.
264disableRepoLocking: false
265# -- Use Diff Markdown Format for color coding diffs.
266enableDiffMarkdownFormat: false
267# -- Optionally specify an username and a password for basic authentication.
271# -- If managing secrets outside the chart for the Basic Auth secret, use this variable to reference the secret name.
272basicAuthSecretName: ""
273# -- Optionally specify an API secret to enable the API.
274# Check values.yaml for examples.
279# -- If managing secrets outside the chart for the API secret, use this variable to reference the secret name. The key containing the secret must be called 'apisecret'.
281# -- Override the command field of the Atlantis container.
283# -- Common Labels for all resources created by this chart.
287 # -- HTTP path for the liveness probe.
289 # -- We only need to check every 60s since Atlantis is not a high-throughput service.
291 initialDelaySeconds: 5
298 # -- HTTP path for the readiness probe.
299 # `/readyz` (Atlantis v0.44.0+) also checks the locking backend, e.g. Redis, and returns 503 when it is unreachable.
302 initialDelaySeconds: 5
313 # -- (int) [optional] Define the port you would like atlantis to run on. Defaults to 4141.
315 # -- (list) [optional] Additional ports to expose on the service, e.g. for an auth proxy sidecar. Each entry is a standard Service port object.
318 loadBalancerSourceRanges: []
319 externalTrafficPolicy: null
320 # -- (string) [optional] Internal traffic policy for the Service. One of: Cluster, Local.
321 internalTrafficPolicy: null
322 # -- (string) [optional] Kubernetes Service sessionAffinity setting. One of: ClientIP, None.
323 sessionAffinity: null
324 # -- (object) [optional] Kubernetes Service sessionAffinityConfig. Only applicable when sessionAffinity=ClientIP.
325 sessionAffinityConfig: null
327 # -- Check values.yaml for examples.
330 # iam.amazonaws.com/role: role-arn # kube2iam example.
337 # -- It is not recommended to run atlantis as root.
339 fsGroupChangePolicy: "OnRootMismatch"
342 priorityClassName: ""
343 # -- Name of the [RuntimeClass](https://kubernetes.io/docs/concepts/containers/runtime-class/) used to run the pod, e.g. `sysbox-runc`.
346 # -- Option to share process namespace with atlantis container.
347 shareProcessNamespace: false
352 # -- Check values.yaml for examples.
355 # kubernetes.io/ingress.class: nginx
356 # kubernetes.io/tls-acme: "true"
357 # -- Use / for nginx.
359 # -- Used when several paths under the same host, with different backend services, are required.
360 # Check values.yaml for examples.
368 pathType: ImplementationSpecific
370 # -- Used when several hosts are required.
371 # Check values.yaml for examples.
373 # - host: chart-example.local
375 # service: chart-example1
376 # - host: chart-example.local2
377 # service: chart-example1
379 # -- Check values.yaml for examples.
381 # - secretName: chart-example-tls
383 # - chart-example.local
385 # -- When true creates a secondary webhook.
388 # -- Check values.yaml for examples.
391 # kubernetes.io/ingress.class: nginx
392 # kubernetes.io/tls-acme: "true"
393 # -- Use / for nginx.
395 # -- Used when several paths under the same host, with different backend services, are required.
396 # Check values.yaml for examples.
404 pathType: ImplementationSpecific
406 # -- Used when several hosts are required.
407 # Check values.yaml for examples.
409 # - host: chart-example.local
411 # service: chart-example1
412 # - host: chart-example.local2
413 # service: chart-example1
415 # -- TLS configuration.
416 # Check values.yaml for examples.
418 # - secretName: chart-example-tls
420 # - chart-example.local
424 # -- Enables or disables the route
426 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
427 apiVersion: gateway.networking.k8s.io/v1
428 # -- Set the route kind
433 # - atlantis.example.com
441 ## Filters define the filters that are applied to requests that match this rule.
443 ## Additional custom rules that can be added to the route
445 ## httpsRedirect adds a filter for redirecting to https (HTTP 301 Moved Permanently).
447# -- Allows to override the /etc/ssl/certs/ca-certificates.cer with your custom one.
448# You have to create a secret with the specified name.
450# -- Resources for Atlantis.
451# Check values.yaml for examples.
461# -- Path to the data directory for the volumeMount.
462atlantisDataDirectory: /atlantis-data
463# -- Path to a directory to store Terraform plan files, decoupled from the data directory.
464# When unset, plan files stay in the data directory and ATLANTIS_SHARE_PLAN_DIR is not set.
465# When sharePlanDirVolumeClaim.enabled is true and this is unset, defaults to /atlantis-plans.
467sharePlanDirVolumeClaim:
468 # -- Enable a separate PersistentVolumeClaim mounted at sharePlanDir. When true and sharePlanDir is unset, sharePlanDir defaults to /atlantis-plans.
470 # -- Disk space available for plan file storage.
472 # -- Storage class name (if possible, use a resizable one).
474 # -- Volume attributes class name.
475 volumeAttributesClassName: ""
476 # -- Access modes for the sharePlanDir volume. Use ReadWriteMany for multi-replica deployments.
477 accessModes: ["ReadWriteMany"]
480 # -- Disk space available to check out repositories.
482 # -- Storage class name (if possible, use a resizable one).
484 # -- Volume attributes class name.
485 volumeAttributesClassName: ""
486 accessModes: ["ReadWriteOnce"]
487# -- DEPRECATED - Disk space available to check out repositories.
490# -- DEPRECATED - Storage class name for Atlantis disk.
492# -- Replica count for Atlantis pods.
494# Pod disruption budget for the Atlantis StatefulSet, to keep Atlantis
495# available during voluntary disruptions such as node drains.
496# Note: Atlantis is stateful and typically runs a single replica; enabling a
497# PDB with minAvailable set to 1 will block voluntary evictions of that pod.
499 # -- Whether to create a PodDisruptionBudget for Atlantis.
501 # -- Minimum number or percentage of pods that must remain available.
502 # Used when maxUnavailable is not set. Mutually exclusive with maxUnavailable.
504 # -- Maximum number or percentage of pods that can be unavailable.
505 # When set, it takes precedence over minAvailable. Mutually exclusive with minAvailable.
507 # -- Additional labels to add to the PodDisruptionBudget.
509 # -- Additional annotations to add to the PodDisruptionBudget.
512 # -- Enables test container.
520# -- You can use topology spread constraints to control how Pods are spread across your cluster among failure-domains such as regions,
521# zones, nodes, and other user-defined topology domains. (requires Kubernetes >= 1.19).
522# Check values.yaml for examples.
523topologySpreadConstraints: []
526# app.kubernetes.io/name: aws-example-cluster
530# nodeAffinityPolicy: Honor
531# nodeTaintsPolicy: Ignore
532# topologyKey: topology.kubernetes.io/zone
533# whenUnsatisfiable: DoNotSchedule
536 # -- Specifies whether a ServiceAccount should be created.
538 # -- Set the `automountServiceAccountToken` field on the pod template spec.
539 # -- If false, no kubernetes service account token will be mounted to the pod.
541 # -- The name of the ServiceAccount to use.
542 # If not set and create is true, a name is generated using the fullname template.
544 # -- Annotations for the Service Account.
545 # Check values.yaml for examples.
552 # eks.amazonaws.com/role-arn: role-arn
553# -- Optionally deploy rbac to allow for the serviceAccount to manage terraform state via the kubernetes backend.
554enableKubernetesBackend: false
555# -- TLS Secret Name for Atlantis pod.
557# -- Additional path (`:` separated) that will be appended to the system `PATH` environment variable.
559# -- Environment values to add to the Atlantis pod.
560# Check values.yaml for examples.
563# ATLANTIS_DEFAULT_TF_VERSION: v1.2.9
565# -- Optionally specify additional environment variables to be populated from Kubernetes secrets.
566# Useful for passing in TF_VAR_foo or other secret environment variables from Kubernetes secrets.
567# Set `secretKeyRef.optional: true` to let the pod start even if the secret or the key does not exist.
568# Check values.yaml for examples.
569environmentSecrets: []
573# name: the_k8s_secret_name
574# key: the_key_of_the_value_in_the_secret
575# - name: AN_OPTIONAL_ENV_VAR
577# name: another_k8s_secret_name
578# key: the_key_of_the_value_in_the_secret
581# -- Optionally specify additional environment variables in raw yaml format.
582# Useful to specify variables refering to k8s objects.
583# Check values.yaml for examples.
589# fieldPath: status.podIP
591# -- Optionally specify additional Kubernetes secrets to load environment variables from.
592# All key-value pairs within these secrets will be set as environment variables.
593# Note that any variables set here will be ignored if also defined in the env block of the atlantis statefulset.
594# For example, providing ATLANTIS_GH_USER here and defining a value for github.user will result in the github.user value being used.
595# Entries are either a secret name or an object with a `name` and an `optional` flag.
596# Set `optional: true` to let the pod start even if the secret does not exist.
597# Check values.yaml for examples.
598loadEnvFromSecrets: []
602# - name: secret_three
605# -- Optionally specify additional Kubernetes ConfigMaps to load environment variables from.
606# All key-value pairs within these ConfigMaps will be set as environment variables.
607# Note that any variables set here will be ignored if also defined in the env block of the atlantis statefulset.
608# For example, providing ATLANTIS_ALLOW_FORK_PRS here and defining a value for allowForkPRs will result in the allowForkPRs value being used.
609# Entries are either a ConfigMap name or an object with a `name` and an `optional` flag.
610# Set `optional: true` to let the pod start even if the ConfigMap does not exist.
611# Check values.yaml for examples.
612loadEnvFromConfigMaps: []
613# loadEnvFromConfigMaps:
616# - name: config_three
619# -- Optionally specify google service account credentials as Kubernetes secrets. If you are using the terraform google provider you can specify the credentials as "${file("/var/secrets/some-secret-name/key.json")}".
620# Check values.yaml for examples.
621googleServiceAccountSecrets: []
622# googleServiceAccountSecrets:
623# - name: some-secret-name
624# secretName: the_k8s_secret_name
626# -- Optionally specify additional volumes for the pod. May be a list, or a
627# string with Go template directives that renders to a list (evaluated via tpl).
628# Check values.yaml for examples.
631# - name: some-volume-name
634# -- Optionally specify additional volume mounts for the container.
635# Check values.yaml for examples.
638# - name: some-volume-name
639# mountPath: /path/in/container
641# -- Optionally specify additional manifests to be created.
642# Check values.yaml for examples.
645# - apiVersion: cloud.google.com/v1beta1
648# name: "{{ .Release.Name }}-test"
651# name: "gcp-cloud-armor-policy-test"
653# -- Optionally specify init containers manifests to be added to the Atlantis pod.
654# Check values.yaml for examples. May be a list, or a string with Go template
655# directives that renders to a list (evaluated via tpl).
659# image: alpine:latest
660# command: ['sh', '-c', 'echo The init container is running! && sleep 10']
663 # -- Install providers/plugins into a path shared with the Atlantis pod.
665 image: cgr.dev/chainguard-private/busybox:latest@sha256:c9bf20fc544edce1905f6679822ca672c33e89576b8e5483f0da1cfb335b9af0
666 pullPolicy: IfNotPresent
667 # -- SharedDir is set as env var INIT_SHARED_DIR.
669 sharedDirReadOnly: true
671 # -- Size for the shared volume.
673 # -- Security context for the container.
674 containerSecurityContext: {}
675 # -- Script to run on the init container.
676 # @default -- Check values.yaml.
681 # example for terragrunt
683 TG_SHA256_SUM="4e5ae67854a774be6419f7215733990b481662375dc0bd5f2eda05211a692cf0"
684 TG_FILE="${INIT_SHARED_DIR}/terragrunt"
685 wget https://github.com/gruntwork-io/terragrunt/releases/download/${TG_VERSION}/terragrunt_linux_amd64 -O "${TG_FILE}"
686 echo "${TG_SHA256_SUM} ${TG_FILE}" | sha256sum -c
687 chmod 755 "${TG_FILE}"
690 # example for terragrunt-atlantis-config
691 TAC_VERSION="1.18.0" # without v
692 TAC_SHA256_SUM="59178dcd3e426abf4b5d8fcb1ac8dbdea548a04aa64eaf39be200484a5e6f2ca"
693 TAC_FILE="${INIT_SHARED_DIR}/terragrunt-atlantis-config"
694 wget "https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v${TAC_VERSION}/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64"
695 echo "${TAC_SHA256_SUM} terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64" | sha256sum -c
696 cp -fv "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64" "${TAC_FILE}"
697 chmod 755 "${TAC_FILE}"
698 terragrunt-atlantis-config version
699# -- Optionally specify hostAliases for the Atlantis pod.
700# Check values.yaml for examples.
711# -- Optionally specify dnsPolicy parameter to specify a DNS policy for a pod
712# Check https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
713dnsPolicy: "ClusterFirst"
714# -- Optionally specify dnsConfig for the Atlantis pod. May be an object, or a
715# string with Go template directives that renders to an object (evaluated via tpl).
716# Check values.yaml for examples.
729 # -- Annotations for the Secrets.
730 # Check values.yaml for examples.
735# -- These annotations will be added to all the resources.
736# Check values.yaml for examples.
741# -- Optionally specify extra arguments for the Atlantis pod.
742# Check values.yaml for examples.
745# - --disable-autoplan
746# - --disable-repo-locking
748# -- Optionally specify extra containers for the Atlantis pod. May be a list, or
749# a string with Go template directives that renders to a list (evaluated via tpl).
750# Check values.yaml for examples.
753# - name: <container name>
756# image: <docker images>
757# imagePullPolicy: IfNotPresent
767# -- Security context for the atlantis container.
768# `readOnlyRootFilesystem` is left off by default because Atlantis writes to its home
769# directory at runtime (`~/.git-credentials`, `~/.gitconfig`). Setting it to true is
770# supported and the StatefulSet then mounts emptyDir volumes at /home/atlantis and
771# /tmp for you -- see guides/read-only-root-filesystem.md in the chart.
772containerSecurityContext:
773 allowPrivilegeEscalation: false
780 # -- To enable a Prometheus servicemonitor, set enabled to true,
781 # and enable the metrics in this file's repoConfig
782 # by setting a value for metrics.prometheus.endpoint.
786 # -- Prometheus ServiceMonitor labels.
789 # -- If auth is enabled on Atlantis, use one of the following mechanism.
791 # -- Authentication from the secret generated with the basicAuth values
792 # this will reference the username and password keys
793 # from the atlantis-basic-auth secret.
796 # -- Authentication based on an external secret
799 # -- Check values.yaml for examples.
803 # password: ATLANTIS_WEB_PASSWORD
804 # -- Optional metric relabelings to drop or modify metrics.
805 metricRelabelings: []
808 # regex: "atlantis_project_apply_execution_.*"
809 # sourceLabels: [__name__]
810# -- Enable this if you're using Google Managed Prometheus.
815# -- Set the desired Locking DB type
816# Accepts boltdb or redis.
818# -- Configure Redis Locking DB.
819# lockingDbType value must be redis for the config to take effect.
820# Check values.yaml for examples.
823# host: redis.host.name
824# password: myRedisPassword
828# insecureSkipVerify: false
830# -- When managing secrets outside the chart for the Redis secret, use this variable to reference the secret name.
832# -- Key within the existing Redis secret that contains the password value.
833redisSecretPasswordKey: password
834# -- (int) Optionally customize the termination grace period in seconds.
835# @default -- default depends on the kubernetes version.
836terminationGracePeriodSeconds:
837# terminationGracePeriodSeconds: 300
839# -- Set lifecycle hooks.
840# https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/.
848# - while pgrep -x "terraform|tofu|terragrunt" > /dev/null; do sleep 1; done