Skip to content

Commit

Permalink
Added nodepools arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mthorley committed Jan 27, 2020
1 parent ce1802a commit 1a9613f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,15 @@ output "gke_private_nodes" {

output "gke_master_cidr_block" {
value = google_container_cluster.cluster.private_cluster_config[0].master_ipv4_cidr_block
}

// assuming multiple node pools
output "nps_locations" {
value = [ google_container_node_pool.private-np-1.location,
google_container_node_pool.private-np-1.location]
}

output "nps_oauthscopes" {
value = [ google_container_node_pool.private-np-1.node_config[0].oauth_scopes ,
google_container_node_pool.private-np-1.node_config[0].oauth_scopes ]
}

0 comments on commit 1a9613f

Please sign in to comment.