Skip to content

Commit 4ce117c

Browse files
authored
Fix private nodes config (#28)
* Fix private nodes config * Setup terraform before running terratest * Fix node pools network config
1 parent 68ecead commit 4ce117c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
steps:
4242
- name: Checkout
4343
uses: actions/checkout@v4
44+
- name: Setup terraform
45+
uses: hashicorp/setup-terraform@v3
4446
- name: Setup Go
4547
uses: actions/setup-go@v4
4648
with:

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ resource "google_container_node_pool" "pools" {
167167
}
168168
}
169169
}
170+
network_config {
171+
enable_private_nodes = var.enable_private_nodes
172+
}
170173
lifecycle {
171174
ignore_changes = [initial_node_count]
172175
create_before_destroy = true

0 commit comments

Comments
 (0)