-
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
azurerm_kubernetes_cluster
: provider wants to destroy/recreate cluster due to case mismatch in network_plugin_mode
#22621
Comments
Improved search on my part reveals #22151 -> #22153 for an update to the API version in use, so maybe this is really just a documentation change and |
Thanks for raising this issue @jeffhuenemann. The resource will allow the value to be lowercased to The latest release v3.66.0 shipped a documentation fix to the casing of the value in #22554. Since this is working as expected and the documentation has been fixed I'm going to close this issue. |
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.5.3
AzureRM Provider Version
3.65.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Per the
azurerm_kubernetes_cluster
docs, the acceptable value ofnetwork_plugin_mode
isOverlay
(uppercaseO
). With that value in play, subsequent plans/applies without any code change should not represent a mismatch of value, and should not suggest recreating the cluster.Actual Behaviour
In the state file, the state is represented with a lowercase
o
, creating a mismatch with uppercaseO
required in the configuration.terraform plan
wants to replace the entire cluster due tonetwork_plugin_mode
changing (it thinks) fromoverlay
in state toOverlay
in configuration.Steps to Reproduce
azurerm_kubernetes_cluster
usingnetwork_plugin
=azure
andnetwork_plugin_mode
=Overlay
terraform plan
suggests to recreate the cluster on account of drift innetwork_plugin_mode
Important Factoids
Did not observe this behavior until upgrading from 3.63 to 3.65
References
No response
The text was updated successfully, but these errors were encountered: