-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
212 lines (176 loc) · 5.77 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
variable "cluster_name" {
description = "Name of the cluster"
}
variable "tenant_id" {
description = "The directory tenant that you want to request permission from."
default = ""
}
variable "ci_service_account_name" {
default = "ci"
description = "Name of the CI service account."
}
variable "ingress_domain" {
}
variable "administrative_groups" {
type = list(string)
description = "List of groups who have administrative access to system namespaces."
}
variable "platform_image_repository_credentials_enable" {
type = bool
default = false
}
variable "platform_image_bases" {
type = map(string)
description = "Overwrite base image location (MUST contain a trailing slash)"
default = {}
}
variable "platform_image_repository" {
default = "docker.io"
}
variable "platform_image_repository_username" {
default = ""
description = "The username for the repository where the image is stored"
sensitive = true
}
variable "platform_image_repository_password" {
default = ""
description = "The password for the repository where the image is stored"
sensitive = true
}
variable "platform_image_repository_email" {
default = ""
description = "The email for the repository where the image is stored"
sensitive = true
}
variable "platform_image_repository_auth" {
default = ""
description = "The auth token used to authenticate to a private image registry."
sensitive = true
}
variable "platform_helm_repositories" {
type = map(string)
default = {}
# default = {
# aad_pod_identity = "https://raw.githubusercontent.com/Azure/aad-pod-identity/master/charts"
# gatekeeper = "https://open-policy-agent.github.io/gatekeeper/charts"
# prometheus = "https://statcan.github.com/charts"
# }
}
variable "platform_helm_repository_username" {
default = ""
description = "The username of the repository where the Helm chart is stored"
sensitive = true
}
variable "platform_helm_repository_password" {
default = ""
description = "The password of the repository where the Helm chart is stored"
sensitive = true
}
variable "load_balancer_subnet" {
description = "Load balancer subnet"
default = null
}
variable "additional_istio_ingress_gateways" {
type = map(object({
hosts = list(string)
certificate_secret_name = string
dns_names = list(string)
}))
description = <<-EOD
A map of objects which specify the configurations of addditional Istio Ingress Gateways to create.
The key into the map is the name of the Istio Ingress Gateway and the value is the following object:
additional_istio_ingress_gateway {
hosts : "A list of hosts specified on the Istio Ingress Gateway"
certificate_secret_name : "The name of the TLS Secret to be created by cert-manager"
dns_names : "A list of Fully Qualified Domain Names used as Subject Alternate Names in the Certificate. The first is also used as the Common Name."
}
EOD
default = {}
}
variable "istio_operator_additional_watch_namespaces" {
description = "Additional namespaces that the IstioOperator should watch."
type = list(string)
default = []
}
# Kiali
variable "kiali_grafana_configurations" {
description = "Values for configuring Grafana integration into Kiali."
type = object({
in_cluster_url = string,
url = string,
token = string,
})
default = {
in_cluster_url = "",
url = "",
token = "",
}
sensitive = true
}
variable "kiali_prometheus_url" {
description = "The URL to the Prometheus instance that Kiali should use for metrics lookups."
type = string
}
# This needed to be objects instead of maps so that the kubernetes provider wouldn't complain.
variable "kiali_resources" {
description = "The limits and requests to set on the Kiali pod."
type = object({
limits = optional(object({
cpu = optional(string, "50m"),
memory = optional(string, "256Mi"),
}), {
cpu = "50m",
memory = "256Mi",
}),
requests = optional(object({
cpu = optional(string, "10m"),
memory = optional(string, "128Mi"),
}), {
cpu = "10m",
memory = "128Mi",
}),
})
default = {}
nullable = false
validation {
condition = var.kiali_resources.limits != null && var.kiali_resources.requests != null
error_message = "Limits and requests cannot be null."
}
validation {
condition = var.kiali_resources.limits.cpu != null && var.kiali_resources.limits.memory != null
error_message = "CPU and memory limits cannot be null."
}
validation {
condition = var.kiali_resources.requests.cpu != null && var.kiali_resources.requests.memory != null
error_message = "CPU and memory requests cannot be null."
}
}
variable "meshconfig_zipkin_address" {
description = "The URL to send zipkin compatible traces to"
default = "zipkin.istio-system:9411"
type = string
}
variable "meshconfig_enable_tracing" {
description = "Flag to control generation of trace spans and request IDs."
default = false
type = bool
}
# Argo Workflows
variable "argo_workflows_client_id" {
description = "The Client ID for Argo Workflows"
sensitive = true
}
variable "argo_workflows_client_secret" {
description = "The Client Secret for Argo Workflows"
sensitive = true
}
variable "platform_workflows_storage_account_name" {
description = "The name of the workflows storage account."
}
variable "platform_workflows_primary_access_key" {
description = "The primary access key of the workflows storage account."
sensitive = true
}
variable "platform_workflows_primary_blob_endpoint" {
description = "The primary blob endpoint of the workflows storage account."
}