Skip to content

Commit

Permalink
Fix private nodes config (#28)
Browse files Browse the repository at this point in the history
* Fix private nodes config

* Setup terraform before running terratest

* Fix node pools network config
  • Loading branch information
gkocur authored Jan 15, 2025
1 parent 68ecead commit 4ce117c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup terraform
uses: hashicorp/setup-terraform@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ resource "google_container_node_pool" "pools" {
}
}
}
network_config {
enable_private_nodes = var.enable_private_nodes
}
lifecycle {
ignore_changes = [initial_node_count]
create_before_destroy = true
Expand Down

0 comments on commit 4ce117c

Please sign in to comment.