Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate security_posture_config in google_container_attached_cluster #19912

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/12048.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:deprecation
containerattached: deprecated `security_posture_config` field in `google_container_attached_cluster` resource
```
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ resource "google_container_attached_cluster" "primary" {
namespace = "default"
}
}
security_posture_config {
vulnerability_mode = "VULNERABILITY_ENTERPRISE"
}
}
`, context)
}
Expand Down Expand Up @@ -171,9 +168,6 @@ resource "google_container_attached_cluster" "primary" {
namespace = "custom-ns"
}
}
security_posture_config {
vulnerability_mode = "VULNERABILITY_DISABLED"
}
lifecycle {
prevent_destroy = true
}
Expand Down Expand Up @@ -320,9 +314,6 @@ resource "google_container_attached_cluster" "primary" {
namespace = "custom-ns"
}
}
security_posture_config {
vulnerability_mode = "VULNERABILITY_DISABLED"
}
}
`, context)
}
4 changes: 3 additions & 1 deletion website/docs/r/container_attached_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down