-
Notifications
You must be signed in to change notification settings - Fork 92
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
(IAC-421) Fix: tflint issue with default_nodepool_vm_type value #222
Comments
This is not an error, but a lack of the lint tool knowing about the newer versions of the VM types. If there is an error its on TFLint and should be opened there. |
Thanks Thomas, I'll look into doing that then. |
Looked into this further, it appears that the enum list that TFLint uses to validate the available vm_sizes is no longer being updated by the compute API team -> Azure/azure-rest-api-specs#10033 (comment) |
Strange as I see Standard_D8s_v4 in the valid list on the main and v0.14.0 branch |
This is the v0.14.0 ruleset I referenced, it doesn't seem to have the Standard_D8s_v4 entry in that list https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.14.0/docs/rules/azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size.md |
If you do a search in the repo: https://github.com/terraform-linters/tflint-ruleset-azurerm/search?q=Standard_D8s_v4 |
Was this issue not address with this PR #223 ? |
Nope you should have linked the issue with the PR. That way when the PR is closed, if it covers all aspects of an issue, then the associated issue is also closed. Just a learning moment ;) |
OK, thanks @thpang, I think I've got it linked now. |
Terraform Version Details
Terraform v1.0.0
Terraform Variable File Details
variables.tf
────────────────────────────────────────────────────────────────────────────────────────────
variable "default_nodepool_vm_type" {
default = "Standard_D8s_v4
}
Steps to Reproduce
Run tflint, a Terraform source file linting tool from the command line in the root level folder of the cloned viya4-iac-azure repository.
Sample output:
❯ tflint
1 issue(s) found:
Error: "Standard_D8s_v4" is an invalid value as vm_size (azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size)
on main.tf line 145:
145: aks_cluster_node_vm_size = var.default_nodepool_vm_type
Callers:
main.tf:145,46-74
modules/azure_aks/main.tf:50,29-57
Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.14.0/docs/rules/azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size.md
Expected Behavior
No output from tflint would indicate no errors found and is the expected behavior.
Actual Behavior
❯ tflint
1 issue(s) found:
Error: "Standard_D8s_v4" is an invalid value as vm_size (azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size)
on main.tf line 145:
145: aks_cluster_node_vm_size = var.default_nodepool_vm_type
Callers:
main.tf:145,46-74
modules/azure_aks/main.tf:50,29-57
Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.14.0/docs/rules/azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size.md
Additional Context
No response
References
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: