Skip to content

Commit

Permalink
Remove policycontroller block from ACM configmanagement in gkehub_fea…
Browse files Browse the repository at this point in the history
…ture_membership tests (#12166) (#20119)

[upstream:4c1d5e80e92281ce9e30f483b5dcdef5493d3a0f]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 30, 2024
1 parent 12e73f2 commit 69454c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 73 deletions.
3 changes: 3 additions & 0 deletions .changelog/12166.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
73 changes: 0 additions & 73 deletions google/services/gkehub/resource_gke_hub_feature_membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,6 @@ resource "google_gke_hub_feature_membership" "feature_member_2" {
secret_type = "none"
}
}
policy_controller {
enabled = true
audit_interval_seconds = "10"
exemptable_namespaces = ["asdf", "1234"]
template_library_installed = true
}
}
}
`, context)
Expand Down Expand Up @@ -229,12 +223,6 @@ resource "google_gke_hub_feature_membership" "feature_member_2" {
secret_type = "none"
}
}
policy_controller {
enabled = true
audit_interval_seconds = "9"
exemptable_namespaces = ["different", "1234"]
template_library_installed = true
}
hierarchy_controller {
enable_hierarchical_resource_quota = true
enable_pod_tree_labels = false
Expand All @@ -258,12 +246,6 @@ resource "google_gke_hub_feature_membership" "feature_member_3" {
secret_type = "none"
}
}
policy_controller {
enabled = false
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
}
hierarchy_controller {
enable_hierarchical_resource_quota = false
enable_pod_tree_labels = true
Expand All @@ -279,15 +261,6 @@ resource "google_gke_hub_feature_membership" "feature_member_4" {
membership = google_gke_hub_membership.membership_fourth.membership_id
configmanagement {
version = "1.18.2"
policy_controller {
enabled = true
audit_interval_seconds = "100"
template_library_installed = true
mutation_enabled = true
monitoring {
backends = ["CLOUD_MONITORING", "PROMETHEUS"]
}
}
}
}
`, context)
Expand All @@ -313,12 +286,6 @@ resource "google_gke_hub_feature_membership" "feature_member_3" {
membership = google_gke_hub_membership.membership_third.membership_id
configmanagement {
version = "1.18.2"
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
}
}
}
`, context)
Expand Down Expand Up @@ -442,14 +409,6 @@ resource "google_gke_hub_feature_membership" "feature_member" {
sync_wait_secs = "30"
}
}
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
referential_rules_enabled = true
log_denies_enabled = true
}
}
}
`, context)
Expand Down Expand Up @@ -507,14 +466,6 @@ resource "google_gke_hub_feature_membership" "feature_member" {
}
prevent_drift = true
}
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
referential_rules_enabled = true
log_denies_enabled = true
}
}
}
`, context)
Expand Down Expand Up @@ -669,14 +620,6 @@ resource "google_gke_hub_feature_membership" "feature_member" {
}
prevent_drift = true
}
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
referential_rules_enabled = true
log_denies_enabled = true
}
}
}
`, context)
Expand Down Expand Up @@ -719,14 +662,6 @@ resource "google_gke_hub_feature_membership" "feature_member" {
}
prevent_drift = true
}
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
referential_rules_enabled = true
log_denies_enabled = true
}
}
}
`, context)
Expand Down Expand Up @@ -757,14 +692,6 @@ resource "google_gke_hub_feature_membership" "feature_member" {
membership = google_gke_hub_membership.membership_acmoci.membership_id
configmanagement {
version = "1.18.2"
policy_controller {
enabled = true
audit_interval_seconds = "100"
exemptable_namespaces = ["onetwothree", "fourfive"]
template_library_installed = true
referential_rules_enabled = true
log_denies_enabled = true
}
}
}
`, context)
Expand Down

0 comments on commit 69454c9

Please sign in to comment.