-
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
- making linux_profile
optional
#1821
Conversation
The AKS API does not require linux_profile to be set by default, this is enabled by default on Azure portal. Terraform's schema does not align with this, which causes importing issue.
Pass empty string to refactored function in import test of AKS.
Added the linux_profile configuration string while baking the configuration.
@zqingqing1 feel free to review it. |
lgtm |
Remove the basic test with linux profile to avoid string concat issue.
linux_profile needs to be computed since it's optional. Otherwise, return `terraform plan` will warn with change.
If the response of field is not returned in response body, need to return empty array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add a test to cover the existing case - but this otherwise LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the TestAccAzureRMKubernetesCluster_linuxProfile
and import test is added.
Add 2 tests to have more coverage on linuxProfile specific scenarios.
Removed useless linux_profile and kubernetes_version settings for tests.
Add newline to import test file for AKS.
Fix the path issue to correct naming for linux_profile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
azurerm_kubernetes_cluster
- making linux_profile
optional
`azurerm_kubernetes_cluster` - making `linux_profile` optional
* timcurless/timcurless: Fixing issues with aadProfile server_app_secret always causing a new cluster Adding documentation updates Updating to include hashicorp#1845 Authentication: registering all clients consistently (hashicorp#1845) Updating to include hashicorp#1843 r/Logic App: ensuring parameters are strings prior to setting (hashicorp#1843) Updating to include hashicorp#1821 linux_profile should be optional to align with API spec (hashicorp#1821) Updating to include hashicorp#1816 Storage: Import Support (hashicorp#1816) Updating to include hashicorp#1835 Allow azurerm_function_app to use upper case names in consumption plan (hashicorp#1835) formatting
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR is going to resolve the #1806.
The latest AKS API does not require linux_profile to be set, and Azure portal follows it. Terraform still requires it by default, this inconsistency caused the importing issue.
Manually created instance on Azure portal, and did
terraform import
andterraform plan
, no change is required.