-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
variables.tf
37 lines (33 loc) · 1.22 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
variable "helm_config" {
description = "ArgoCD Helm Chart Config values"
type = any
default = {}
}
variable "applications" {
description = "ArgoCD Application config used to bootstrap a cluster."
type = any
default = {}
validation {
condition = alltrue([for k, v in var.applications : length(regexall("^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", k)) > 0])
error_message = "All ArgoCD application config keys must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
}
}
variable "addon_config" {
description = "Configuration for managing add-ons via ArgoCD"
type = any
default = {}
}
variable "addon_context" {
description = "Input configuration for the addon"
type = object({
aws_caller_identity_account_id = string
aws_caller_identity_arn = string
aws_eks_cluster_endpoint = string
aws_partition_id = string
aws_region_name = string
eks_cluster_id = string
eks_oidc_issuer_url = string
eks_oidc_provider_arn = string
tags = map(string)
})
}