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

chore: (IAC-1196) Update path pattern to support additional branches #345

Merged
merged 12 commits into from
Jan 9, 2024

Conversation

riragh
Copy link
Member

@riragh riragh commented Oct 31, 2023

Changes:

Updated the path pattern to support additional branches. Also noticed the child modules were not getting scanned for TFLint so updated the path and running it recursively.
On running TFLint recursively encountered a few errors and warnings which were resolved in this PR. Listing the errors below, changes to resolve the errors were made as per the TFLint recommendations.
- Error: Invalid function argument
- Invalid value for "path" parameter: no file exists at "/.ssh/id_rsa.pub". We do not distribute this file as part of configuration code so setting the default path value returns error. Change was made similar to what we have in GCP. the files locals.tf, variables.tf and CONFIG-VARS.md were updated to resolve this error.

  • terraform_unused_declarations
    • The unused variables aks_cluster_rg_id, create_netapp, vnet_name, private_dns_zone_id were removed.
  • terraform_deprecated_index
    • We were using the legacy form of splat expressions, which was updated to resolve the warning.

See the last commit on this PR for the three checks running successfully.

Tests

Scenario Provider K8s Version Order Cadence Orchestration
1 Azure 1.26 ****** fast:2020 DO

@riragh riragh added the enhancement New feature or request label Oct 31, 2023
@riragh riragh self-assigned this Oct 31, 2023
docs/CONFIG-VARS.md Outdated Show resolved Hide resolved
main.tf Show resolved Hide resolved
main.tf Show resolved Hide resolved
modules/azure_aks/variables.tf Show resolved Hide resolved
modules/azurerm_netapp/variables.tf Show resolved Hide resolved
modules/azurerm_netapp/variables.tf Show resolved Hide resolved
modules/azurerm_postgresql_flex/variables.tf Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
Copy link
Member

@thpang thpang left a comment

Choose a reason for hiding this comment

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

LGTM

@riragh riragh merged commit c3e8b70 into staging Jan 9, 2024
3 checks passed
@riragh riragh deleted the IAC-1196 branch January 9, 2024 18:38
@riragh riragh mentioned this pull request Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants