-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
193 lines (193 loc) · 6.01 KB
/
variables.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
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
variable "argocd_namespace" {
type = string
default = "argocd"
description = "The name of the target ArgoCD Namespace"
}
variable "repo_url" {
type = string
description = "Source of the Helm application manifests"
}
variable "target_revision" {
type = string
description = "Revision of the Helm application manifests to use"
default = ""
}
variable "app_source" {
default = "helm"
description = "Type of application source (helm, git)"
}
variable "chart" {
type = string
description = "The name of the Helm chart"
default = null
}
variable "path" {
type = string
description = ""
default = ""
}
variable "release_name" {
type = string
description = "Release name override (defaults to application name)"
default = null
}
variable "helm_parameters" {
type = list(object({
name : string,
value : any,
force_string : bool,
}))
description = "Parameters that will override helm_values"
default = []
}
variable "helm_values" {
type = any
description = "Helm values as a block of yaml"
default = null
}
variable "name" {
type = string
description = "The name of this application"
default = ""
}
variable "project" {
type = string
description = "The project that this ArgoCD application will be placed into."
default = "default"
}
variable "cascade_delete" {
type = bool
description = "Set to true if this application should cascade delete"
default = true
}
variable "destination_server" {
type = string
description = "Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API"
default = "https://kubernetes.default.svc"
}
variable "destination_server_name" {
type = string
description = "Name is an alternate way of specifying the target cluster by its symbolic name"
default = ""
}
variable "namespace" {
type = string
description = ""
}
variable "automated_prune" {
type = bool
description = "Specifies if resources should be pruned during auto-syncing"
default = true
}
variable "automated_self_heal" {
type = bool
description = "Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected"
default = true
}
variable "server_side_apply" {
type = bool
default = false
description = "If true, Argo CD will use kubectl apply --server-side command to apply changes."
}
variable "apply_out_of_sync_only" {
type = bool
default = false
description = "Currently when syncing using auto sync Argo CD applies every object in the application. Turning on selective sync option which will sync only out-of-sync resources. "
}
variable "replace" {
type = bool
default = false
description = "If true, the Argo CD will use kubectl replace or kubectl create command to apply changes."
}
variable "fail_on_shared_resource" {
type = bool
default = false
description = "If true, the Argo CD will fail the sync whenever it finds a resource in the current Application that is already applied in the cluster by another Application."
}
variable "sync_options" {
type = list(string)
description = "A list of sync options to apply to the application"
default = []
}
variable "sync_option_validate" {
type = bool
description = "disables resource validation (equivalent to 'kubectl apply --validate=true')"
default = false
}
variable "sync_option_create_namespace" {
type = bool
description = "Namespace Auto-Creation ensures that namespace specified as the application destination exists in the destination cluster."
default = true
}
variable "retry_limit" {
type = number
description = "Number of failed sync attempt retries; unlimited number of attempts if less than 0"
default = 5
}
variable "retry_backoff_duration" {
type = string
description = "The amount to back off. Default unit is seconds, but could also be a duration (e.g. `2m`, `1h`)"
default = "5s"
}
variable "retry_backoff_factor" {
type = number
description = "A factor to multiply the base duration after each failed retry"
default = 2
}
variable "retry_backoff_max_duration" {
type = string
description = "The maximum amount of time allowed for the backoff strategy"
default = "3m"
}
variable "ignore_differences" {
type = list(any)
description = "Ignore differences at the specified json pointers"
default = []
}
variable "labels" {
type = map(string)
description = ""
default = {}
}
variable "wait_until_healthy" {
type = bool
description = "If set to true, it will wait until the application has reached status healthy before proceeding further"
default = false
}
variable "wait_for_deletion" {
type = bool
description = "If set to true, will wait until the object is removed completely from kubernetes before proceeding further"
default = false
}
variable "skip_crd" {
default = false
description = "If set to true, it will skip the deployment of crd entities from the helm chart"
}
variable "annotations" {
type = map(string)
description = "Annotations for argocd Application"
default = {}
}
variable "helm_files_parameters" {
type = list(object({
name : string,
path : bool,
}))
default = null
description = "Use the contents of files as parameters (uses Helm's --set-file)"
}
variable "helm_values_files" {
type = list(string)
default = null
description = "Helm values files for overriding values in the helm chart. The path is relative to the var.path directory defined above"
}
variable "helm_values_object" {
type = any
default = null
description = "Values file as block file. This takes precedence over values"
}
variable "helm_ignore_missing_values" {
type = bool
default = false
description = "Ignore locally missing valueFiles when installing Helm chart"
}