Skip to content

Commit

Permalink
test(kubernetes): control plane ip filter change
Browse files Browse the repository at this point in the history
  • Loading branch information
villevsv-upcloud committed Sep 5, 2023
1 parent d4f666e commit 6d2b3b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions upcloud/resource_upcloud_kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func TestAccUpcloudKubernetes(t *testing.T) {
Config: testDataS2,
ImportStateVerify: true,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(cName, "control_plane_ip_filter.#", "0"),
resource.TestCheckResourceAttr(g1Name, "node_count", "1"),
resource.TestCheckResourceAttr(g2Name, "node_count", "2"),
),
Expand Down
2 changes: 1 addition & 1 deletion upcloud/testdata/upcloud_kubernetes/kubernetes_s2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "upcloud_network" "main" {
}

resource "upcloud_kubernetes_cluster" "main" {
control_plane_ip_filter = ["0.0.0.0/0"]
control_plane_ip_filter = []
name = var.name
network = upcloud_network.main.id
zone = var.zone
Expand Down

0 comments on commit 6d2b3b6

Please sign in to comment.