-
Notifications
You must be signed in to change notification settings - Fork 0
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
DENA-969: Split tflint configs between MSK and team clusters #573
Changes from all commits
f3a8322
9863784
0752c35
6285a7e
45ea3ba
e919f64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# tflint configuration file that applies to all MSK team modules | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
preset = "all" | ||
|
@@ -10,5 +12,5 @@ rule "terraform_standard_module_structure" { | |
|
||
# Include module calls | ||
config { | ||
module = true | ||
call_module_type = "all" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense terraform-linters/tflint#1918
Comment on lines
-13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this seems to require tflint v0.50.0+ https://github.com/terraform-linters/tflint/releases/tag/v0.50.0 but I don't think we version this at all (it needs to be installed independently from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We mention installing it here: https://github.com/utilitywarehouse/kafka-cluster-config/blob/main/CONTRIBUTING.md. Maybe worth moving it directly to readme, as it might be missed |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# tflint configuration file that applies to all UW hosted team cluster modules | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
preset = "all" | ||
} | ||
|
||
# I think it's too late for this and wouldn't make sense for our modules | ||
rule "terraform_standard_module_structure" { | ||
enabled = false | ||
} | ||
|
||
# Include module calls | ||
config { | ||
call_module_type = "all" | ||
} |
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.
To keep things simple, we could probably just match the start of the path (or is there a reason we enforce the depth with the
/.+/.
bit?)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.
Yea, as we don't wanna run it on the folder dev-asw/kafka-shared-msk/ as it doesn't contain any module. Only on its subfolders