-
Notifications
You must be signed in to change notification settings - Fork 178
/
values.yaml
701 lines (613 loc) · 21 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
## -------------------------- ##
# Values to override for your instance.
## -------------------------- ##
# -- Provide a name to substitute for the full names of resources.
fullnameOverride: ""
# -- Provide a name to substitute for the name of the chart.
nameOverride: ""
# -- An option to override the atlantis url,
# if not using an ingress, set it to the external IP.
# Check values.yaml for examples.
atlantisUrl: ""
# Example: http://10.0.0.0
# -- Replace this with your own repo allowlist.
orgAllowlist: "<replace-me>"
# -- Deprecated in favor of orgAllowlist.
orgWhitelist: "<deprecated>"
# -- Specify the log level for Atlantis.
# Accepts: debug, info, warn, or error.
logLevel: ""
# -- If using GitHub, please enter your values as follows.
# The chart will perform the base64 encoding for values that are stored in secrets.
# The 'hostname' key is exclusive to GitHub Enterprise installations.
# Check values.yaml for examples.
github: {}
# github:
# user: foo
# token: bar
# secret: baz
# hostname: github.your.org
# -- If using a GitHub App, please enter your values as follows.
# The chart will perform the base64 encoding for you for values that are stored in secrets.
# Check values.yaml for examples.
githubApp: {}
# githubApp:
# id: 123456
# slug: foo
# key: |
# -----BEGIN PRIVATE KEY-----
# ...
# -----END PRIVATE KEY-----
# secret: baz
# -- If using GitLab, please enter your values as follows.
# The 'hostname' key is exclusive to GitLab Enterprise installations.
# The chart will perform the base64 encoding for you for values that are stored in secrets.
# Check values.yaml for examples.
gitlab: {}
# gitlab:
# user: foo
# token: bar
# secret: baz
# hostname: gitlab.your.org
# -- If using Bitbucket, there are two approaches:
# Bitbucket Server, deployed in your own infrastructure
# and Cloud available at (https://Bitbucket.org).
# The chart will perform the base64 encoding for you for values that are stored in secrets.
# Check values.yaml for examples.
bitbucket: {}
# Bitbucket Server
# bitbucket:
# user: foo
# token: bar
# secret: baz
# baseURL: https://bitbucket.yourorganization.com
# Bitbucket Cloud
# The recommendation is to genarate a service user on your cloud environment, but you can live on the edge using your own user :).
# Create an APP PASSWORD to the user for the token value.
# Base URL are not needed here, but keep in mind to provide an IP Whitelist as the Atlantis documentation.
# bitbucket:
# user: foo
# token: bar
# -- If using Azure DevOps, please enter your values as follows.
# The chart will perform the base64 encoding for you for values that are stored in secrets.
# Check values.yaml for examples.
azuredevops: {}
# azuredevops:
# user: foo
# token: bar
# webhookUser: foo
# webhookPassword: baz
# -- If managing secrets outside the chart for the webhook, use this variable to reference the secret name
vcsSecretName: ""
# -- When referencing Terraform modules in private repositories, it may be helpful
# (necessary?) to use redirection in a .gitconfig.
# Check values.yaml for examples.
gitconfig: ""
# gitconfig: |
# [url "https://YOUR_GH_TOKEN@github.com"]
# insteadOf = https://github.com
# [url "https://YOUR_GH_TOKEN@github.com"]
# insteadOf = ssh://git@github.com
# [url "https://oauth2:YOUR_GITLAB_TOKEN@gitlab.com"]
# insteadOf = https://gitlab.com
# [url "https://oauth2:YOUR_GITLAB_TOKEN@gitlab.com"]
# insteadOf = ssh://git@gitlab.com
# Source: https://stackoverflow.com/questions/42148841/github-clone-with-oauth-access-token
# -- If managing secrets outside the chart for the gitconfig, use this variable to reference the secret name
gitconfigSecretName: ""
# -- When referencing Terraform modules in private repositories or registries (such as Artfactory)
# configuing a .netrc file for authentication may be required.
# Check values.yaml for examples.
netrc: ""
# netrc: |
# machine artifactory.myapp.com login YOUR_USERNAME password YOUR_PASSWORD
# machine bitbucket.myapp.com login YOUR_USERNAME password YOUR_PASSWORD
# -- If managing secrets outside the chart for the netrc file, use this variable to reference the secret name
netrcSecretName: ""
# -- To specify AWS credentials to be mapped to ~/.aws or to aws.directory.
# Check values.yaml for examples.
aws: {}
# aws:
# credentials: |
# [default]
# aws_access_key_id=YOUR_ACCESS_KEY_ID
# aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
# region=us-east-1
# config: |
# [profile a_role_to_assume]
# role_arn = arn:aws:iam::123456789:role/service-role/roleToAssume
# source_profile = default
# directory: "/home/atlantis/.aws"
# -- To reference an already existing Secret object with AWS credentials
awsSecretName: ""
# -- To keep backwards compatibility only.
# Deprecated (see googleServiceAccountSecrets).
# To be used for mounting credential files (when using google provider).
# Check values.yaml for examples.
serviceAccountSecrets: {}
# serviceAccountSecrets:
# credentials: <json file as base64 encoded string>
# credentials-staging: <json file as base64 encoded string>
## -------------------------- ##
# Default values for atlantis (override as needed).
## -------------------------- ##
image:
repository: ghcr.io/runatlantis/atlantis
# -- If not set appVersion field from Chart.yaml is used
tag: ""
pullPolicy: Always
# -- Optionally specify an array of imagePullSecrets.
# Secrets must be manually created in the namespace.
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/.
# Check values.yaml for examples.
imagePullSecrets: []
# imagePullSecrets:
# - myRegistryKeySecretName
# -- Override atlantis main configuration by config map,
# ref: https://www.runatlantis.io/docs/using-slack-hooks.html#configuring-atlantis.
# Check values.yaml for examples.
config: ""
# config: |
# ---
# webhooks:
# - event: apply
# workspace-regex: .*
# branch-regex: .*
# kind: slack
# channel: my-channel
# -- Use Server Side Repo Config,
# ref: https://www.runatlantis.io/docs/server-side-repo-config.html.
# Check values.yaml for examples.
repoConfig: ""
# Example with default configuration:
# repoConfig: |
# ---
# repos:
# - id: /.*/
# apply_requirements: []
# workflow: default
# allowed_overrides: []
# allow_custom_workflows: false
# workflows:
# default:
# plan:
# steps: [init, plan]
# apply:
# steps: [apply]
# metrics:
# prometheus:
# endpoint: /metrics
# -- Enables atlantis to run on a fork Pull Requests.
allowForkPRs: false
# -- Enables atlantis to run on a draft Pull Requests.
allowDraftPRs: false
# -- Enables atlantis to hide previous plan comments.
hidePrevPlanComments: false
# -- Enables atlantis to hide no-changes plan comments from the pull request.
hideUnchangedPlanComments: false
# -- Sets the default terraform version to be used in atlantis server.
# Check values.yaml for examples.
defaultTFVersion: ""
# Example: "0.12.0".
# -- Disables running `atlantis apply` regardless of which flags are sent with it.
disableApply: false
# -- Disables running `atlantis apply` without any flags.
disableApplyAll: false
# -- Stops atlantis locking projects and or workspaces when running terraform.
disableRepoLocking: false
# -- Use Diff Markdown Format for color coding diffs.
enableDiffMarkdownFormat: false
# -- Optionally specify an username and a password for basic authentication.
basicAuth:
username: ""
password: ""
# -- If managing secrets outside the chart for the Basic Auth secret, use this variable to reference the secret name.
basicAuthSecretName: ""
# -- Optionally specify an API secret to enable the API.
# Check values.yaml for examples.
api: {}
# api:
# secret: "s3cr3t"
# -- If managing secrets outside the chart for the API secret, use this variable to reference the secret name.
apiSecretName: ""
# -- Override the command field of the Atlantis container.
command: []
# -- Common Labels for all resources created by this chart.
commonLabels: {}
livenessProbe:
enabled: true
# -- We only need to check every 60s since Atlantis is not a high-throughput service.
periodSeconds: 60
initialDelaySeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
scheme: HTTP
readinessProbe:
enabled: true
periodSeconds: 60
initialDelaySeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
scheme: HTTP
service:
type: NodePort
annotations: {}
port: 80
nodePort: null
targetPort: 4141
loadBalancerIP: null
loadBalancerSourceRanges: []
podTemplate:
# -- Check values.yaml for examples.
annotations: {}
# annotations:
# iam.amazonaws.com/role: role-arn # kube2iam example.
labels: {}
statefulSet:
annotations: {}
labels: {}
securityContext:
fsGroup: 1000
# -- It is not recommended to run atlantis as root.
runAsUser: 100
fsGroupChangePolicy: "OnRootMismatch"
priorityClassName: ""
updateStrategy: {}
# -- Option to share process namespace with atlantis container.
shareProcessNamespace: false
# -- (int) Optionally customize the termination grace period in seconds.
# @default -- default depends on the kubernetes version.
terminationGracePeriodSeconds:
ingress:
enabled: true
ingressClassName:
apiVersion: ""
labels: {}
# -- Check values.yaml for examples.
annotations: {}
# annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Use / for nginx.
path: /*
# -- Used when several paths under the same host, with different backend services, are required.
# Check values.yaml for examples.
paths: []
# - path: "/path1"
# service: test1
# port:
# - path: "/path2"
# service: test2
# port:
pathType: ImplementationSpecific
host: ""
# -- Used when several hosts are required.
# Check values.yaml for examples.
hosts: []
# - host: chart-example.local
# paths: ["/"]
# service: chart-example1
# - host: chart-example.local2
# service: chart-example1
# paths: ["/lala"]
# -- Check values.yaml for examples.
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
webhook_ingress:
# -- When true creates a secondary webhook.
enabled: false
ingressClassName:
apiVersion: ""
# -- Check values.yaml for examples.
annotations: {}
# annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Use / for nginx.
path: /*
# -- Used when several paths under the same host, with different backend services, are required.
# Check values.yaml for examples.
paths: []
# - path: "/path1"
# service: test1
# port:
# - path: "/path2"
# service: test2
# port:
pathType: ImplementationSpecific
host: ""
# -- Used when several hosts are required.
# Check values.yaml for examples.
hosts: []
# - host: chart-example.local
# paths: ["/"]
# service: chart-example1
# - host: chart-example.local2
# service: chart-example1
# paths: ["/lala"]
# -- TLS configuration.
# Check values.yaml for examples.
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
labels: {}
# -- Allows to override the /etc/ssl/certs/ca-certificates.cer with your custom one.
# You have to create a secret with the specified name.
customPem: ""
# -- Resources for Atlantis.
# Check values.yaml for examples.
resources: {}
# resources:
# requests:
# memory: 1Gi
# cpu: 100m
# limits:
# memory: 1Gi
# cpu: 100m
# -- Path to the data directory for the volumeMount.
atlantisDataDirectory: /atlantis-data
volumeClaim:
enabled: true
# -- Disk space available to check out repositories.
dataStorage: 5Gi
# -- Storage class name (if possible, use a resizable one).
storageClassName: ""
accessModes: ["ReadWriteOnce"]
# -- DEPRECATED - Disk space available to check out repositories.
# Example: 5Gi.
dataStorage: ""
# -- DEPRECATED - Storage class name for Atlantis disk.
storageClassName: ""
# -- Replica count for Atlantis pods.
replicaCount: 1
test:
# -- Enables test container.
enabled: true
image: bats/bats
imageTag: 1.9.0
annotations: {}
nodeSelector: {}
tolerations: []
affinity: {}
# -- You can use topology spread constraints to control how Pods are spread across your cluster among failure-domains such as regions,
# zones, nodes, and other user-defined topology domains. (requires Kubernetes >= 1.19).
# Check values.yaml for examples.
topologySpreadConstraints: []
# - labelSelector:
# matchLabels:
# app.kubernetes.io/name: aws-example-cluster
# maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule
serviceAccount:
# -- Specifies whether a ServiceAccount should be created.
create: true
# -- Set the `automountServiceAccountToken` field on the pod template spec.
# -- If false, no kubernetes service account token will be mounted to the pod.
mount: true
# -- The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template.
name: null
# -- Annotations for the Service Account.
# Check values.yaml for examples.
annotations: {}
# annotations:
# annotation1: value
# annotation2: value
# IRSA example:
# annotations:
# eks.amazonaws.com/role-arn: role-arn
# -- Optionally deploy rbac to allow for the serviceAccount to manage terraform state via the kubernetes backend.
enableKubernetesBackend: false
# -- TLS Secret Name for Atlantis pod.
tlsSecretName: ""
# -- Environtment values to add to the Atlantis pod.
# Check values.yaml for examples.
environment: {}
# environment:
# ATLANTIS_DEFAULT_TF_VERSION: v1.2.9
# -- Optionally specify additional environment variables to be populated from Kubernetes secrets.
# Useful for passing in TF_VAR_foo or other secret environment variables from Kubernetes secrets.
# Check values.yaml for examples.
environmentSecrets: []
# environmentSecrets:
# - name: THE_ENV_VAR
# secretKeyRef:
# name: the_k8s_secret_name
# key: the_key_of_the_value_in_the_secret
# -- Optionally specify additional environment variables in raw yaml format.
# Useful to specify variables refering to k8s objects.
# Check values.yaml for examples.
environmentRaw: []
# environmentRaw:
# - name: POD_IP
# valueFrom:
# fieldRef:
# fieldPath: status.podIP
# -- Optionally specify additional Kubernetes secrets to load environment variables from.
# All key-value pairs within these secrets will be set as environment variables.
# Note that any variables set here will be ignored if also defined in the env block of the atlantis statefulset.
# For example, providing ATLANTIS_GH_USER here and defining a value for github.user will result in the github.user value being used.
# Check values.yaml for examples.
loadEnvFromSecrets: []
# loadEnvFromSecrets:
# - secret_one
# - secret_two
# -- Optionally specify additional Kubernetes ConfigMaps to load environment variables from.
# All key-value pairs within these ConfigMaps will be set as environment variables.
# Note that any variables set here will be ignored if also defined in the env block of the atlantis statefulset.
# For example, providing ATLANTIS_ALLOW_FORK_PRS here and defining a value for allowForkPRs will result in the allowForkPRs value being used.
# Check values.yaml for examples.
loadEnvFromConfigMaps: []
# loadEnvFromConfigMaps:
# - config_one
# - config_two
# -- 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")}".
# Check values.yaml for examples.
googleServiceAccountSecrets: []
# googleServiceAccountSecrets:
# - name: some-secret-name
# secretName: the_k8s_secret_name
# -- Optionally specify additional volumes for the pod.
# Check values.yaml for examples.
extraVolumes: []
# extraVolumes:
# - name: some-volume-name
# emptyDir: {}
# -- Optionally specify additional volume mounts for the container.
# Check values.yaml for examples.
extraVolumeMounts: []
# extraVolumeMounts:
# - name: some-volume-name
# mountPath: /path/in/container
# -- Optionally specify additional manifests to be created.
# Check values.yaml for examples.
extraManifests: []
# extraManifests:
# - apiVersion: cloud.google.com/v1beta1
# kind: BackendConfig
# metadata:
# name: "{{ .Release.Name }}-test"
# spec:
# securityPolicy:
# name: "gcp-cloud-armor-policy-test"
# -- Optionally specify init containers manifests to be added to the Atlantis pod.
# Check values.yaml for examples.
initContainers: []
# initContainers:
# - name: example
# image: alpine:latest
# command: ['sh', '-c', 'echo The init container is running! && sleep 10']
initConfig:
# -- Install providers/plugins into a path shared with the Atlantis pod.
enabled: false
image: alpine:latest
imagePullPolicy: IfNotPresent
# -- SharedDir is set as env var INIT_SHARED_DIR.
sharedDir: /plugins
workDir: /tmp
# -- Size for the shared volume.
sizeLimit: 100Mi
# -- Security context for the container.
securityContext: {}
# -- Script to run on the init container.
# @default -- Check values.yaml.
script: |
#!/bin/sh
set -eoux pipefail
# example for terragrunt
TG_VERSION="v0.47.0"
TG_SHA256_SUM="98d45f6bfbfae84b51364c1ad6920f09ecb4d834908b0535e4e331a9fc6fc75b"
TG_FILE="${INIT_SHARED_DIR}/terragrunt"
wget https://github.com/gruntwork-io/terragrunt/releases/download/${TG_VERSION}/terragrunt_linux_amd64 -O "${TG_FILE}"
echo "${TG_SHA256_SUM} ${TG_FILE}" | sha256sum -c
chmod 755 "${TG_FILE}"
terragrunt -v
# example for terragrunt-atlantis-config
TAC_VERSION="1.16.0" # without v
TAC_SHA256_SUM="fc3b069cf4ae51e9b7a7d01f09862d1974b260fffb3ec857d661d7b1756fe26f"
TAC_FILE="${INIT_SHARED_DIR}/terragrunt-atlantis-config"
wget "https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v${TAC_VERSION}/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
echo "${TAC_SHA256_SUM} terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz" | sha256sum -c
tar xf "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
cp -fv "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64" "${TAC_FILE}"
chmod 755 "${TG_FILE}"
terragrunt-atlantis-config version
# -- Optionally specify hostAliases for the Atlantis pod.
# Check values.yaml for examples.
hostAliases: []
# hostAliases:
# - hostnames:
# - aaa.com
# - test.ccc.com
# ip: 10.0.0.0
# - hostnames:
# - bbb.com
# ip: 10.0.0.2
hostNetwork: false
# - These annotations will be added to all the resources.
# Check values.yaml for examples.
extraAnnotations: {}
# extraAnnotations:
# team: example
# -- Optionally specify extra arguments for the Atlantis pod.
# Check values.yaml for examples.
extraArgs: []
# extraArgs:
# - --disable-autoplan
# - --disable-repo-locking
# -- Optionally specify extra containers for the Atlantis pod.
# Check values.yaml for examples.
extraContainers: []
# extraContainers:
# - name: <container name>
# args:
# - ...
# image: <docker images>
# imagePullPolicy: IfNotPresent
# resources:
# limits:
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# volumeMounts:
# - ...
# -- Check values.yaml for examples.
containerSecurityContext: {}
# containerSecurityContext:
# allowPrivilegeEscalation: false
# readOnlyRootFilesystem: true
servicemonitor:
# -- To enable a Prometheus servicemonitor, set enabled to true,
# and enable the metrics in this file's repoConfig
# by setting a value for metrics.prometheus.endpoint.
enabled: false
interval: "30s"
path: /metrics
# -- Prometheus ServiceMonitor labels.
additionalLabels: {}
auth:
# -- If auth is enabled on Atlantis, use one of the following mechanism.
basicAuth:
# -- Authentication from the secret generated with the basicAuth values
# this will reference the username and password keys
# from the atlantis-basic-auth secret.
enabled: false
externalSecret:
# -- Authentication based on an external secret
enabled: false
name: ""
# -- Check values.yaml for examples.
keys: {}
# keys:
# username: USERNAME
# password: ATLANTIS_WEB_PASSWORD
# -- Enable this if you're using Google Managed Prometheus.
podMonitor:
enabled: false
interval: "30s"
# -- Set the desired Locking DB type
# Accepts boltdb or redis.
lockingDbType: ""
# -- Configure Redis Locking DB.
# lockingDbType value must be redis for the config to take effect.
# Check values.yaml for examples.
redis: {}
# redis:
# host: redis.host.name
# password: myRedisPassword
# port: 6379
# db: 0
# tlsEnabled: false
# insecureSkipVerify: false
# -- When managing secrets outside the chart for the Redis secret, use this variable to reference the secret name.
redisSecretName: ""
# -- Set lifecycle hooks.
# https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/.
lifecycle: {}