Skip to content

Commit 5fd3e12

Browse files
committed
Use a more helpful variable description
Many thanks to @qvallance for this tip!
1 parent 368dc4d commit 5fd3e12

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

variables.tf

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,22 @@ variable "node_version" {
6666
}
6767

6868
variable "master_authorized_networks_config" {
69-
description = "The desired configuration options for master authorized networks. Omit the nested cidr_blocks attribute to disallow external access (except the cluster node IPs, which GKE automatically whitelists)."
70-
type = "list"
71-
default = []
69+
type = "list"
70+
71+
description = <<EOF
72+
The desired configuration options for master authorized networks. Omit the nested cidr_blocks attribute to disallow external access (except the cluster node IPs, which GKE automatically whitelists)
73+
74+
### example format ###
75+
default = [{
76+
cidr_blocks = [{
77+
cidr_block = "10.0.0.0/8"
78+
display_name = "example_network"
79+
}],
80+
}]
81+
82+
EOF
83+
84+
default = []
7285
}
7386

7487
variable "horizontal_pod_autoscaling" {

0 commit comments

Comments
 (0)