@@ -73,6 +73,11 @@ locals {
73
73
zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . min_master_version , list (" " )), 0 )} "
74
74
}
75
75
76
+ cluster_type_output_master_authorized_networks_config = {
77
+ regional = " ${ element (concat (google_container_cluster. primary . * . master_authorized_networks_config , list (" " )), 0 )} "
78
+ zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . master_authorized_networks_config , list (" " )), 0 )} "
79
+ }
80
+
76
81
cluster_type_output_network_policy_enabled = {
77
82
regional = " ${ element (concat (google_container_cluster. primary . * . addons_config . 0 . network_policy_config . 0 . disabled , list (" " )), 0 )} "
78
83
zonal = " ${ element (concat (google_container_cluster. zonal_primary . * . addons_config . 0 . network_policy_config . 0 . disabled , list (" " )), 0 )} "
@@ -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