-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
87 lines (74 loc) · 2.52 KB
/
variables.tf
File metadata and controls
87 lines (74 loc) · 2.52 KB
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
#######################
## Standard variables
#######################
variable "cluster_name" {
description = "Name given to the cluster. Value used for naming some the resources created by the module."
type = string
}
variable "base_domain" {
description = "Base domain of the cluster. Value used for the ingress' URL of the application."
type = string
}
variable "argocd_namespace" {
description = "Namespace used by Argo CD where the Application and AppProject resources should be created."
type = string
default = "argocd"
}
variable "argocd_project" {
description = "Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application."
type = string
default = null
}
variable "argocd_labels" {
description = "Labels to attach to the Argo CD Application resource."
type = map(string)
default = {}
}
variable "destination_cluster" {
description = "Destination cluster where the application should be deployed."
type = string
default = "in-cluster"
}
variable "target_revision" {
description = "Override of target revision of the application chart."
type = string
default = "develop" # x-release-please-version
}
variable "cluster_issuer" {
description = "SSL certificate issuer to use. Usually you would configure this value as `letsencrypt-staging` or `letsencrypt-prod` on your root `*.tf` files."
type = string
default = "ca-issuer"
}
variable "namespace" {
description = "Namespace where the applications's Kubernetes resources should be created. Namespace will be created in case it doesn't exist."
type = string
default = "database"
}
variable "enable_service_monitor" {
description = "Enable Prometheus ServiceMonitor in the Helm chart."
type = bool
default = true
}
variable "helm_values" {
description = "Helm chart value overrides. They should be passed as a list of HCL structures."
type = any
default = []
}
variable "app_autosync" {
description = "Automated sync options for the Argo CD Application resource."
type = object({
allow_empty = optional(bool)
prune = optional(bool)
self_heal = optional(bool)
})
default = {
allow_empty = false
prune = true
self_heal = true
}
}
variable "dependency_ids" {
description = "IDs of the other modules on which this module depends on."
type = map(string)
default = {}
}