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

add: TerraformをAtlantisで動かす場合のルール追加 #5

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

chroju
Copy link
Member

@chroju chroju commented Apr 16, 2024

TerraformをAtlantisで動かしている場合の推奨設定ファイルを追加。
auto mergeを有効活用するための設定としています。

sre.json と組み合わせて使うことを想定しているため、 extends していません。

@@ -0,0 +1,56 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"platformAutomerge": true,
Copy link
Member

Choose a reason for hiding this comment

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

sre.json と組み合わせるなら不要な気がします!

Comment on lines 11 to 14
"matchPackagePatterns": [
"^app.terraform.io/gdp-sre",
"terraform-aws-modules/eks/aws"
],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"matchPackagePatterns": [
"^app.terraform.io/gdp-sre",
"terraform-aws-modules/eks/aws"
],
"matchManagers": [
"terraform"
],
"matchPackagePatterns": [
"^app.terraform.io/gdp-sre"
],

汎用的にしても良いのかなと!

Comment on lines 6 to 8
"enabledManagers": [
"terraform"
],
Copy link
Member

Choose a reason for hiding this comment

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

デフォルトではほとんどの manger が有効になっていて、この設定値は「terraform 以外の manager を無効にする」という意図なのでここではなく各リポジトリで定義するべきかなと思います!
参考: https://docs.renovatebot.com/modules/manager/#enabling-experimental-managers

README.md Outdated
| pinGitHubActions.json | GitHub Actionsの推奨設定 |
| sre.json | SREチームの利用推奨設定 (pinGitHubActionsを内包) |
| terraform-with-atlantis.json | Atlantisで実行するTerraformの推奨設定、auto merge有効化を前提 |
Copy link
Member

Choose a reason for hiding this comment

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

↑の pinGitHubActions.json は公式の presets がキャメルケースなのを踏襲しているので、こちらもキャメルケースが良いかなと思います!

Suggested change
| terraform-with-atlantis.json | Atlantisで実行するTerraformの推奨設定、auto merge有効化を前提 |
| atlantisAutomerge.json | Atlantisで実行するTerraformの推奨設定、auto merge有効化を前提 |

@chroju chroju merged commit b658299 into main Apr 17, 2024
1 check passed
@chroju chroju deleted the add_terraform_atlantis branch April 17, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants