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

New Resource: azurerm_kubernetes_cluster_extension and azurerm_arc_kubernetes_cluster_extension #21310

Merged
merged 24 commits into from
Apr 26, 2023

Conversation

@ms-zhenhua ms-zhenhua reopened this Apr 6, 2023
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @ms-zhenhua but I think this should be split out into two separate resources, one for managed clusters and one for arc clusters:
azurerm_kubernetes_cluster_extension and azurerm_arc_kubernetes_cluster_extension

@ms-zhenhua ms-zhenhua reopened this Apr 7, 2023
@ms-zhenhua ms-zhenhua changed the title New Resource: azurerm_kubernetes_cluster_extension New Resource: azurerm_kubernetes_cluster_extension and azurerm_arc_kubernetes_cluster_extension Apr 7, 2023
@ms-zhenhua ms-zhenhua closed this Apr 7, 2023
@ms-zhenhua ms-zhenhua reopened this Apr 7, 2023
@ms-zhenhua ms-zhenhua force-pushed the kubernetes-cluster-extension branch from ac86391 to 2ff1bbd Compare April 7, 2023 04:33
@ms-zhenhua
Copy link
Contributor Author

Hi @stephybun, thank you for your suggestion and I have splitted the resource into 2 resources. Kindly take another review.
BTW, you may meet Marketplace ValidatePurchase failure error when you run TestAccKubernetesClusterExtension_plan. In this case, you need to accept the legal terms of the plan through Azure Portal or Azure Cli command.

@ms-zhenhua ms-zhenhua requested a review from stephybun April 7, 2023 05:05
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though there are commonalities between these resources I think the schema should just be duplicated and the resources go into arckubernetes and containers respectively. That way the testdata/scripts we use for provisioning the arc resources can be reused for the arc extension.

On the whole this is looking good and we can take another look through once all the comments have been resolved and the resources moved into the arckubernetes and containers folder.

@ms-zhenhua
Copy link
Contributor Author

Hi @stephybun, thank you for your review. I have updated the PR and put these resources into the arckubernetes and containers folders separately. Kindly take another review.

@ms-zhenhua ms-zhenhua requested a review from stephybun April 23, 2023 04:56
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate you making those changes @ms-zhenhua and the tests are looking good! On my second pass through I picked up a few other minor things - but once those are resolved I think we should be able to merge this 🙂

@ms-zhenhua
Copy link
Contributor Author

Hi @stephybun, thank you for reviewing. I have updated the code and document. Kindly have another look.

@ms-zhenhua ms-zhenhua requested a review from stephybun April 26, 2023 06:04
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ms-zhenhua LGTM 🥟

@stephybun stephybun merged commit 46ba68e into hashicorp:main Apr 26, 2023
@github-actions github-actions bot added this to the v3.54.0 milestone Apr 26, 2023
stephybun added a commit that referenced this pull request Apr 26, 2023
@github-actions
Copy link

This functionality has been released in v3.54.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Jun 1, 2024

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants