Skip to content

Commit

Permalink
Test network policy config addon.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson committed Mar 15, 2018
1 parent 0e24782 commit 90ec20e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions google/resource_container_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,11 @@ resource "google_container_cluster" "with_network_policy_enabled" {
enabled = true
provider = "CALICO"
}
addons_config {
network_policy_config {
disabled = false
}
}
}`, clusterName)
}

Expand All @@ -1130,6 +1135,11 @@ resource "google_container_cluster" "with_network_policy_enabled" {
name = "%s"
zone = "us-central1-a"
initial_node_count = 1
addons_config {
network_policy_config {
disabled = true
}
}
}`, clusterName)
}

Expand All @@ -1141,6 +1151,11 @@ resource "google_container_cluster" "with_network_policy_enabled" {
initial_node_count = 1
network_policy = {}
addons_config {
network_policy_config {
disabled = true
}
}
}`, clusterName)
}

Expand Down

0 comments on commit 90ec20e

Please sign in to comment.