@@ -68,9 +68,14 @@ locals {
68
68
zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . master_version , list (" " )), 0 )} "
69
69
}
70
70
71
- cluster_type_output_min_master_version = {
72
- regional = " ${ element (concat (google_container_cluster. primary . * . min_master_version , list (" " )), 0 )} "
73
- zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . min_master_version , list (" " )), 0 )} "
71
+ cluster_type_output_master_authorized_networks_config = {
72
+ regional = " ${ element (concat (google_container_cluster. primary . * . master_authorized_networks_config , list (" " )), 0 )} "
73
+ zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . master_authorized_networks_config , list (" " )), 0 )} "
74
+ }
75
+
76
+ cluster_type_output_master_authorized_networks_config = {
77
+ regional = " ${ element (concat (google_container_cluster. primary . * . master_version , list (" " )), 0 )} "
78
+ zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . master_version , list (" " )), 0 )} "
74
79
}
75
80
76
81
cluster_type_output_network_policy_enabled = {
@@ -108,16 +113,17 @@ locals {
108
113
cluster_master_auth_map = " ${ local . cluster_master_auth_list_layer2 [0 ]} "
109
114
110
115
# cluster locals
111
- cluster_name = " ${ local . cluster_type_output_name [local . cluster_type ]} "
112
- cluster_location = " ${ local . cluster_type_output_location [local . cluster_type ]} "
113
- cluster_region = " ${ local . cluster_type_output_region [local . cluster_type ]} "
114
- cluster_zones = " ${ sort (local. cluster_type_output_zones [local . cluster_type ])} "
115
- cluster_endpoint = " ${ local . cluster_type_output_endpoint [local . cluster_type ]} "
116
- cluster_ca_certificate = " ${ lookup (local. cluster_master_auth_map , " cluster_ca_certificate" )} "
117
- cluster_master_version = " ${ local . cluster_type_output_master_version [local . cluster_type ]} "
118
- cluster_min_master_version = " ${ local . cluster_type_output_min_master_version [local . cluster_type ]} "
119
- cluster_node_pools_names = " ${ local . cluster_type_output_node_pools_names [local . cluster_type ]} "
120
- cluster_node_pools_versions = " ${ local . cluster_type_output_node_pools_versions [local . cluster_type ]} "
116
+ cluster_name = " ${ local . cluster_type_output_name [local . cluster_type ]} "
117
+ cluster_location = " ${ local . cluster_type_output_location [local . cluster_type ]} "
118
+ cluster_region = " ${ local . cluster_type_output_region [local . cluster_type ]} "
119
+ cluster_zones = " ${ sort (local. cluster_type_output_zones [local . cluster_type ])} "
120
+ cluster_endpoint = " ${ local . cluster_type_output_endpoint [local . cluster_type ]} "
121
+ cluster_ca_certificate = " ${ lookup (local. cluster_master_auth_map , " cluster_ca_certificate" )} "
122
+ cluster_master_version = " ${ local . cluster_type_output_master_version [local . cluster_type ]} "
123
+ cluster_min_master_version = " ${ local . cluster_type_output_min_master_version [local . cluster_type ]} "
124
+ cluster_master_authorized_networks_config = " ${ local . cluster_type_output_cluster_master_authorized_networks_config [local . cluster_type ]} "
125
+ cluster_node_pools_names = " ${ local . cluster_type_output_node_pools_names [local . cluster_type ]} "
126
+ cluster_node_pools_versions = " ${ local . cluster_type_output_node_pools_versions [local . cluster_type ]} "
121
127
122
128
cluster_network_policy_enabled = " ${ local . cluster_type_output_network_policy_enabled [local . cluster_type ] ? false : true } "
123
129
cluster_http_load_balancing_enabled = " ${ local . cluster_type_output_http_load_balancing_enabled [local . cluster_type ] ? false : true } "
0 commit comments