-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Overlay network_plugin_mode not idempotent #22244
Comments
Thanks for raising this issue @benkoben. v3.61.0 of the provider updates the AKS API version to Since this is related to #22151 and a fix has already been merged I'm going to close this issue. |
Hello, |
@Shabahang can you please provide some more information - what do you have in your config and what is the output from terraform? |
Terraform v1.4.5
I have aks with Azure CNI - Overlay .
and this line shows the cause:
Then , just for test, I confirmed the action and aks was recreated. Note that same config with provider version 3.58.0 has no update . |
I need to add that I have another problem too.
-/+ resource "azurerm_role_assignment" "<.....>" {
|
There's a breaking case change in the AKS API explained in this comment - you need to update the casing of Regarding this problem
Could you please raise a new issue and fill out the bug information so we have some more context - it's difficult to look into issues without it. Thanks! |
I have created another Issue:
|
This line is converting |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.4.4
AzureRM Provider Version
3.61.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
network_plugin_mode, when set to Overlay, should not force replace on second apply.
Actual Behaviour
network_plugin_mode, when set to Overlay, forces replacement which re-creates whole AKS cluster. It seems a lowered case value is written to state while the config is set to a capitalized value. Using a lowered case value in config raises an error by the azurerm API.
The following output is shown on second apply:
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: