-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
55 lines (47 loc) · 1.71 KB
/
main.tf
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
/**
* # AWS EKS Traefik Ingress controller Terraform module
*
* A Terraform module to deploy the [Traefik Ingress controller](https://traefik.io/traefik/) on Amazon EKS cluster.
*
* [![Terraform validate](https://github.com/lablabs/terraform-aws-eks-ingress-traefik/actions/workflows/validate.yaml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-ingress-traefik/actions/workflows/validate.yaml)
* [![pre-commit](https://github.com/lablabs/terraform-aws-eks-ingress-traefik/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-ingress-traefik/actions/workflows/pre-commit.yaml)
*/
locals {
crds = {
name = "ingress-traefik-crds"
helm_chart_name = "traefik-crds"
helm_chart_version = "1.2.0"
helm_repo_url = "https://traefik.github.io/charts"
helm_create_namespace = false # CRDs are cluster-wide resources
argo_sync_policy = {
automated = {}
syncOptions = [
"ServerSideApply=true"
]
}
argo_kubernetes_manifest_wait_fields = {
"status.sync.status" = "Synced"
"status.health.status" = "Healthy"
}
}
crds_values = yamlencode({
# FIXME config: add default values here
})
addon = {
name = "ingress-traefik"
helm_chart_name = "traefik"
helm_chart_version = "34.1.0"
helm_repo_url = "https://traefik.github.io/charts"
helm_skip_crds = var.crds_enabled # CRDs are installed by the CRDs module, if enabled
argo_spec = {
source = {
helm = {
skipCrds = var.crds_enabled # CRDs are installed by the CRDs module, if enabled
}
}
}
}
addon_values = yamlencode({
# FIXME config: add default values here
})
}