File tree Expand file tree Collapse file tree 5 files changed +20
-1
lines changed
test/integration/simple_zonal Expand file tree Collapse file tree 5 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,8 @@ output "node_pools_versions" {
107107 description = " List of node pools versions"
108108 value = " ${ local . cluster_node_pools_versions } "
109109}
110+
111+ output "service_account" {
112+ description = " The service account to default running nodes as if not overridden in `node_pools`."
113+ value = " ${ local . service_account } "
114+ }
Original file line number Diff line number Diff line change @@ -106,4 +106,9 @@ output "node_pools_names" {
106106output "node_pools_versions" {
107107 description = " List of node pools versions"
108108 value = " ${ local . cluster_node_pools_versions } "
109+ }
110+
111+ output "service_account" {
112+ description = " The service account to default running nodes as if not overridden in `node_pools`."
113+ value = " ${ local . service_account } "
109114}
Original file line number Diff line number Diff line change @@ -106,4 +106,9 @@ output "node_pools_names" {
106106output "node_pools_versions" {
107107 description = " List of node pools versions"
108108 value = " ${ local . cluster_node_pools_versions } "
109+ }
110+
111+ output "service_account" {
112+ description = " The service account to default running nodes as if not overridden in `node_pools`."
113+ value = " ${ local . service_account } "
109114}
Original file line number Diff line number Diff line change 1515project_id = attribute ( 'project_id' )
1616location = attribute ( 'location' )
1717cluster_name = attribute ( 'cluster_name' )
18+ service_account = attribute ( 'service_account' )
1819
1920credentials_path = attribute ( 'credentials_path' )
2021ENV [ 'CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE' ] = credentials_path
8384 expect ( node_pools ) . to include (
8485 including (
8586 "config" => including (
86- "serviceAccount" => starting_with ( "tf-gke-simple-zonal-cluster@" ) ,
87+ "serviceAccount" => service_account ,
8788 ) ,
8889 ) ,
8990 )
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ attributes:
2121 - name : client_token
2222 required : true
2323 type : string
24+ - name : service_account
25+ required : true
26+ type : string
You can’t perform that action at this time.
0 commit comments