-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
185 lines (154 loc) · 4.4 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
variable "enable_istio" {
default = "false"
type = string
}
variable "sleep_for_after_istio_init" {
default = "10"
type = string
}
# https://cloud.google.com/sql/docs/postgres/
variable "enable_cloud_sql_proxy" {
default = false
type = string
description = "A GCP feature for secure communication with Cloud SQL"
}
variable "cloud_sql_proxy_helm_chart_version" {
default = "0.19.2"
type = string
description = "A GCP feature for secure communication with Cloud SQL"
}
variable "enable_aws_cluster_autoscaler" {
default = false
type = string
description = "Automatically scale out node pool(s) on AWS. Must set var.cluster_name"
}
variable "cluster_name" {
default = ""
type = string
description = "Used only with var.enable_aws_cluster_autoscaler"
}
variable "aws_region" {
default = "us-east-1"
type = string
description = "Used only with var.enable_aws_cluster_autoscaler"
}
variable "cloudsql_instance" {
default = ""
type = string
description = "Used when enable_cloud_sql_proxy is true"
}
variable "gcp_region" {
default = ""
type = string
description = "Used when enable_cloud_sql_proxy is true"
}
variable "gcp_project" {
default = ""
type = string
description = "Used when enable_cloud_sql_proxy is true"
}
variable "gcp_service_account_key_json" {
default = ""
type = string
description = "Used when enable_cloud_sql_proxy is true"
}
variable "istio_helm_release_version" {
default = "1.3.0"
type = string
}
variable "tiller_version" {
default = "2.16.1"
type = string
}
variable "tiller_namespace" {
default = "kube-system"
type = string
}
variable "astronomer_namespace" {
default = "astronomer"
type = string
}
# https://github.com/hashicorp/terraform/issues/1178
resource "null_resource" "dependency_getter" {
triggers = {
my_dependencies = join(",", var.dependencies)
}
}
variable "dependencies" {
default = [""]
type = list(string)
}
variable "extra_istio_helm_values" {
type = string
description = "Values in raw yaml to pass to helm to override defaults in Istio Helm Chart."
default = ""
}
variable "extra_googlesqlproxy_helm_values" {
type = string
description = "Values in raw yaml to pass to helm to override defaults in Google SQL Proxy Helm Chart."
default = ""
}
variable "extra_kubecost_helm_values" {
type = string
description = "Values in raw yaml to pass to helm to override defaults in the Kubecost Helm Chart."
default = ""
}
variable "kubecost_helm_chart_version" {
default = "1.44.3"
type = string
description = "The helm chart version of Kubecost. Versions can be found here https://github.com/kubecost/cost-analyzer-helm-chart/releases"
}
variable "kubecost_token" {
default = ""
type = string
description = "A user token for Kubecost, obtained from the Kubecost organization. Can be obtained by providing email here https://kubecost.com/install"
}
variable "enable_kubecost" {
default = false
type = bool
}
variable "enable_velero" {
default = false
type = bool
}
variable "extra_velero_helm_values" {
type = string
default = ""
description = "Vales in raw yaml to pass to helm to helm to override defaults in Velero Helm Chart."
}
variable "velero_namespace_name" {
default = "velero"
description = "Namespace to create to install Velero"
}
variable "velero_helm_repository" {
default = "stable"
description = "Helm repository to use to download velero chart"
}
variable "velero_helm_chart_version" {
default = "2.1.6"
description = "Helm Chart Version to use to deploy Velero"
}
variable "tiller_tolerations" {
type = list(map(string))
default = []
description = "Tolerations to apply to Tiller deployment"
}
variable "tiller_node_selectors" {
type = map(string)
default = {}
description = "Map of {label: value} to use as node selector for Tiller deployment"
}
variable "enable_knative" {
type = bool
default = false
description = "enable_istio=true is required for knative to work"
}
variable "knative_helm_release_version" {
default = "0.1.0"
description = "Helm Chart Version to use to deploy Knative"
}
variable "enable_tiller" {
type = bool
default = true
description = "Enable tiller if using Helm 2"
}