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 (GoogleCloudPlatform#12166)
  • Loading branch information
zli82016 authored and BBBmau committed Nov 5, 2024
1 parent ed7fcb4 commit cd8fd75
Showing 1 changed file with 0 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,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 @@ -227,12 +221,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 @@ -256,12 +244,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 @@ -277,15 +259,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 @@ -311,12 +284,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 @@ -443,14 +410,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 @@ -511,14 +470,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 @@ -676,14 +627,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 @@ -726,14 +669,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 @@ -764,14 +699,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 cd8fd75

Please sign in to comment.