-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
136 lines (118 loc) · 3.37 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
# Required
variable "cluster_name" {
type = string
description = "Rancher Cluster Name"
}
# Required
variable "hetzner_token" {
type = string
description = "Hetzner Cloud API Token"
}
# Required
variable "cluster_configurations" {
description = "value for the cluster configurations"
type = object({
description = string
kubernetes_version = string
node_pools = list(object({
name = string
use_private_network = optional(bool, false)
enable_firewall = optional(bool, true)
server_type = string
server_location = string
image = string
quantity = number
control_plane = bool
etcd = bool
worker = bool
autoscaling = optional(bool, false)
labels = optional(map(string))
node_taints = optional(list(object({
key = string
value = string
effect = string
})))
}))
})
}
# Required
variable "management_network_id" {
type = string
description = "Rancher Management Network ID"
}
# Required
variable "management_network_name" {
type = string
description = "Rancher Management Network Name"
}
# Required
variable "admin_url" {
type = string
description = "Rancher Admin URL"
}
# Required
variable "admin_token" {
type = string
description = "Rancher Admin Token"
}
# Required
variable "github_token" {
type = string
description = "Flux repository github token"
sensitive = true
}
variable "github_repository_owner" {
type = string
default = "neonlabsorg"
description = "Flux repository github owner"
}
variable "github_repository_name" {
type = string
default = "flux-infra"
description = "Flux repository name"
}
variable "github_repository_branch" {
type = string
default = "main"
description = "Default branch to sync from"
}
variable "flux_namespace" {
type = string
default = "flux-system"
description = "The namespace scope for this operation"
}
variable "flux_repo_target_path" {
type = string
default = null
description = "Relative path to the Git repository root where Flux manifests are committed"
}
variable "flux_components" {
type = list(string)
default = ["source-controller", "kustomize-controller", "helm-controller", "notification-controller"]
description = "Toolkit components to include in the install manifests"
}
variable "flux_components_extra" {
type = list(string)
default = ["image-reflector-controller", "image-automation-controller"]
description = "List of extra components to include in the install manifests"
}
variable "flux_version" {
type = string
default = "latest"
description = "Flux version"
}
variable "flux_registry" {
type = string
default = "ghcr.io/fluxcd"
description = "Container registry where the toolkit images are published"
}
variable "flux_image_pull_secret" {
type = string
default = null
description = "Kubernetes secret name used for pulling the toolkit images from a private registry"
}
variable "firewall_whitelist_ipv4" {
type = list(string)
default = []
description = "List of ipv4 addresses which will be whitelisted in cluster nodes (e.g. VPN node public ipv4)"
}