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

azurerm_kubernetes_cluster - Update Azure CNI to Azure CNI Overlay enabled #22709

Merged
merged 6 commits into from
Sep 7, 2023

Conversation

aristosvo
Copy link
Collaborator

@aristosvo aristosvo commented Jul 27, 2023

Fixes #22704

Acctests

New test runs like a charm, other tests should not be affected as only the schema has a ForceNew=True removed.

Screenshot 2023-07-27 at 10 00 54

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.

@aristosvo what happens if we try migrating in the other direction e.g. overlay -> azure?

@aristosvo
Copy link
Collaborator Author

I haven't tried yet, the docs seem unclear. I'll give it a try!

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Looks like we have some test failures:

Error: creating Kubernetes Cluster (Subscription: "*******"
        Resource Group Name: "acctestRG-230802013926273291"
        Kubernetes Cluster Name: "acctestaks230802013926273291"): managedclusters.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="AgentPoolK8sVersionNotSupported" Message="Version 1.25.5 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list"
        
          with azurerm_kubernetes_cluster.test,
          on terraform_plugin_test.tf line 76, in resource "azurerm_kubernetes_cluster" "test":
          76: resource "azurerm_kubernetes_cluster" "test" {

@aristosvo
Copy link
Collaborator Author

@katbyte I think these are unrelated, at least as far as I can interpret them

@stephybun I made it a one-way migration for now, as I think it should be. Test is broken because of the public_network_access_enabled change, but other than that it should be fine!

@aristosvo aristosvo requested a review from stephybun August 29, 2023 09:31
@stephybun stephybun force-pushed the aks/update-to-cni-overlay branch from 5620682 to 0f5ce2c Compare September 6, 2023 07:33
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 @aristosvo. Hope you don't mind I rebased your branch to pull in the test fix for public_network_access_enabled.

I have one suggestion to simplify the ForceNew condition but otherwise this looks like it's ready.

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 @aristosvo LGTM 👍

@stephybun stephybun merged commit 3a37d96 into hashicorp:main Sep 7, 2023
23 checks passed
@github-actions github-actions bot added this to the v3.72.0 milestone Sep 7, 2023
stephybun added a commit that referenced this pull request Sep 7, 2023
Copy link

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 May 15, 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.

Migrating from Azure CNI V1 to CNI Overlay is now possible without replacement
3 participants