Skip to content

Commit c7c4deb

Browse files
committed
Revert "Merge branch 'main' into variables-improvements"
This reverts commit 989b0ad, reversing changes made to 652d4a0.
1 parent 989b0ad commit c7c4deb

File tree

1 file changed

+95
-5
lines changed

1 file changed

+95
-5
lines changed

variables.tf

Lines changed: 95 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
variable "kubernetes" {
2-
type = object({
3-
host : string,
4-
cluster_ca_certificate : string,
5-
token : string,
6-
})
2+
description = "Kubernetes config"
3+
type = map(string)
4+
default = {
5+
"config_path" = "~/.kube/config"
6+
"config_context" = "my-context"
7+
}
78
}
89

910
variable "linkerd_repository" {
@@ -24,6 +25,95 @@ variable "control_plane_namespace" {
2425
default = "linkerd"
2526
}
2627

28+
variable "control_plane_ca_validity" {
29+
description = "Control plane Issuer CA validity in hours eg: 175200 for 20 years"
30+
type = string
31+
default = "175200"
32+
}
33+
34+
variable "control_plane_cert_duration" {
35+
description = "Control plane TLS cert duration eg: 24h0m0s"
36+
type = string
37+
default = "72h0m0s"
38+
}
39+
40+
variable "control_plane_cert_renew_before" {
41+
description = "Control plane TLS cert renew before eg: 1h0m0s"
42+
type = string
43+
default = "24h0m0s"
44+
}
45+
46+
variable "control_plane_replica_count" {
47+
description = "Control plane replica count"
48+
type = number
49+
default = 1
50+
}
51+
52+
variable "tap_replica_count" {
53+
description = "Tap replica count"
54+
type = number
55+
default = 1
56+
}
57+
58+
variable "tap_injector_replica_count" {
59+
description = "Tap injector replica count"
60+
type = number
61+
default = 1
62+
}
63+
64+
variable "dashboard_replica_count" {
65+
description = "Dashboard replica count"
66+
type = number
67+
default = 1
68+
}
69+
70+
variable "metrics_replica_count" {
71+
description = "Metrics api replica count"
72+
type = number
73+
default = 1
74+
}
75+
76+
variable "viz_enable_pod_anti_affinity" {
77+
description = "Viz enable podAntiAffinity"
78+
type = bool
79+
default = false
80+
}
81+
82+
variable "viz_enable_pod_distruption_budget" {
83+
description = "Viz enable podDisruptionBudget"
84+
type = bool
85+
default = false
86+
}
87+
88+
variable "control_plane_enable_pod_anti_affinity" {
89+
description = "Control plane enable podAntiAffinity"
90+
type = bool
91+
default = false
92+
}
93+
94+
variable "control_plane_enable_pod_distruption_budget" {
95+
description = "Control plane enable podDisruptionBudget"
96+
type = bool
97+
default = false
98+
}
99+
100+
variable "webhook_ca_validity" {
101+
description = "Webhook Issuer CA validity in hours eg: 175200 for 20 years"
102+
type = string
103+
default = "175200"
104+
}
105+
106+
variable "webhook_cert_duration" {
107+
description = "Webhook TLS cert duration eg: 24h0m0s"
108+
type = string
109+
default = "48h0m0s"
110+
}
111+
112+
variable "webhook_cert_renew_before" {
113+
description = "Webhook TLS cert renew before eg: 1h0m0s"
114+
type = string
115+
default = "24h0m0s"
116+
}
27117
variable "viz_helm_version" {
28118
description = "Viz helm version"
29119
type = string

0 commit comments

Comments
 (0)