diff --git a/.changelog/12048.txt b/.changelog/12048.txt new file mode 100644 index 00000000000..c500b9ef922 --- /dev/null +++ b/.changelog/12048.txt @@ -0,0 +1,3 @@ +```release-note:deprecation +containerattached: deprecated `security_posture_config` field in `google_container_attached_cluster` resource +``` \ No newline at end of file diff --git a/google/services/containerattached/resource_container_attached_cluster.go b/google/services/containerattached/resource_container_attached_cluster.go index 8698f858a09..75d2fd3a392 100644 --- a/google/services/containerattached/resource_container_attached_cluster.go +++ b/google/services/containerattached/resource_container_attached_cluster.go @@ -312,6 +312,7 @@ than 255 UTF-8 encoded bytes.`, Type: schema.TypeList, Computed: true, Optional: true, + Deprecated: "`security_posture_config` is deprecated and will be removed in a future major release.", Description: `Enable/Disable Security Posture API features for the cluster.`, MaxItems: 1, Elem: &schema.Resource{ diff --git a/google/services/containerattached/resource_container_attached_cluster_update_test.go b/google/services/containerattached/resource_container_attached_cluster_update_test.go index 10411d88ef0..efbbfb627b0 100644 --- a/google/services/containerattached/resource_container_attached_cluster_update_test.go +++ b/google/services/containerattached/resource_container_attached_cluster_update_test.go @@ -120,9 +120,6 @@ resource "google_container_attached_cluster" "primary" { namespace = "default" } } - security_posture_config { - vulnerability_mode = "VULNERABILITY_ENTERPRISE" - } } `, context) } @@ -171,9 +168,6 @@ resource "google_container_attached_cluster" "primary" { namespace = "custom-ns" } } - security_posture_config { - vulnerability_mode = "VULNERABILITY_DISABLED" - } lifecycle { prevent_destroy = true } @@ -320,9 +314,6 @@ resource "google_container_attached_cluster" "primary" { namespace = "custom-ns" } } - security_posture_config { - vulnerability_mode = "VULNERABILITY_DISABLED" - } } `, context) } diff --git a/website/docs/r/container_attached_cluster.html.markdown b/website/docs/r/container_attached_cluster.html.markdown index 18736d29f89..af1a6f0913d 100644 --- a/website/docs/r/container_attached_cluster.html.markdown +++ b/website/docs/r/container_attached_cluster.html.markdown @@ -268,10 +268,12 @@ The following arguments are supported: Structure is [documented below](#nested_proxy_config). * `security_posture_config` - - (Optional) + (Optional, Deprecated) Enable/Disable Security Posture API features for the cluster. Structure is [documented below](#nested_security_posture_config). + ~> **Warning:** `security_posture_config` is deprecated and will be removed in a future major release. + * `project` - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.