new resource azurerm_kubernetes_cluster_deployment_safeguard - #31670
new resource azurerm_kubernetes_cluster_deployment_safeguard#31670sreallymatt merged 11 commits into
azurerm_kubernetes_cluster_deployment_safeguard#31670Conversation
liuwuliuyun
left a comment
There was a problem hiding this comment.
A small comment, otherwise LGTM~
|
|
||
| --- | ||
|
|
||
| * `excluded_namespaces` - (Optional) A set of Kubernetes namespace names that should be excluded from Deployment Safeguards enforcement. This allows certain namespaces to bypass the configured policies. |
There was a problem hiding this comment.
I think we implemented this property as list, so this should be excluded_namespaces - (Optional) A list of Kubernetes namespace names...
| ) | ||
|
|
||
| var ( | ||
| _ sdk.Resource = KubernetesClusterDeploymentSafeguardResource{} |
There was a problem hiding this comment.
_ sdk.Resource = ... can be removed as it's part of ResourceWithUpdate
| provider "azurerm" { | ||
| features {} | ||
| } |
There was a problem hiding this comment.
the provider block should be set in each testcase like basic, complete, etc.
| // Copyright (c) HashiCorp, Inc. | ||
| // SPDX-License-Identifier: MPL-2.0 |
There was a problem hiding this comment.
| // Copyright (c) HashiCorp, Inc. | |
| // SPDX-License-Identifier: MPL-2.0 | |
| // Copyright IBM Corp. 2014, 2025 | |
| // SPDX-License-Identifier: MPL-2.0 |
| // Copyright (c) HashiCorp, Inc. | ||
| // SPDX-License-Identifier: MPL-2.0 |
There was a problem hiding this comment.
| // Copyright (c) HashiCorp, Inc. | |
| // SPDX-License-Identifier: MPL-2.0 | |
| // Copyright IBM Corp. 2014, 2025 | |
| // SPDX-License-Identifier: MPL-2.0 |
|
|
||
| type KubernetesClusterDeploymentSafeguardResource struct{} | ||
|
|
||
| func TestAccKubernetesClusterDeploymentSafeguards_basic(t *testing.T) { |
There was a problem hiding this comment.
| func TestAccKubernetesClusterDeploymentSafeguards_basic(t *testing.T) { | |
| func TestAccKubernetesClusterDeploymentSafeguard_basic(t *testing.T) { |
| }) | ||
| } | ||
|
|
||
| func TestAccKubernetesClusterDeploymentSafeguards_requiresImport(t *testing.T) { |
There was a problem hiding this comment.
| func TestAccKubernetesClusterDeploymentSafeguards_requiresImport(t *testing.T) { | |
| func TestAccKubernetesClusterDeploymentSafeguard_requiresImport(t *testing.T) { |
| }) | ||
| } | ||
|
|
||
| func TestAccKubernetesClusterDeploymentSafeguards_complete(t *testing.T) { |
There was a problem hiding this comment.
| func TestAccKubernetesClusterDeploymentSafeguards_complete(t *testing.T) { | |
| func TestAccKubernetesClusterDeploymentSafeguard_complete(t *testing.T) { |
| }) | ||
| } | ||
|
|
||
| func TestAccKubernetesClusterDeploymentSafeguards_update(t *testing.T) { |
There was a problem hiding this comment.
| func TestAccKubernetesClusterDeploymentSafeguards_update(t *testing.T) { | |
| func TestAccKubernetesClusterDeploymentSafeguard_update(t *testing.T) { |
ms-zhenhua
left a comment
There was a problem hiding this comment.
Thanks for the updates. LGTM~
dae8916 to
c6eb720
Compare
sreallymatt
left a comment
There was a problem hiding this comment.
Thanks @ms-henglu - just a few minor comments
Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com>
sreallymatt
left a comment
There was a problem hiding this comment.
Thanks @ms-henglu - LGTM ✅
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
fixes #30484
Community Note
Description
PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource- support for thething1property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #0000
AI Assistance Disclosure
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.