Skip to content

Commit

Permalink
Add support for guest_accelerator in container_node_pool.node_config t…
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozlov committed Mar 13, 2019
1 parent de467d9 commit e6952a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ resource "google_container_node_pool" "pools" {
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform",
]

guest_accelerator {
type = "${lookup(var.node_pools[count.index], "guest_accelerator_type", "")}"
count = "${lookup(var.node_pools[count.index], "guest_accelerator_count", 0)}"
}
}

lifecycle {
Expand Down
5 changes: 5 additions & 0 deletions cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ resource "google_container_node_pool" "zonal_pools" {
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform",
]

guest_accelerator {
type = "${lookup(var.node_pools[count.index], "guest_accelerator_type", "")}"
count = "${lookup(var.node_pools[count.index], "guest_accelerator_count", 0)}"
}
}

lifecycle {
Expand Down

0 comments on commit e6952a4

Please sign in to comment.