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

fix!: Change runner labels to list[string] and apply TFLint #3410

Merged
merged 22 commits into from
Oct 19, 2023

Conversation

npalm
Copy link
Member

@npalm npalm commented Aug 5, 2023

Change variables runner_labels and runner_extra_labels to type: list[string] to better represent the content

Additionally:

  • Automatic determine runner labels for multi runner based on label matchers
  • Enable Terraform linting on all modules, including naming conventions
  • Enable check annotations for linting errors
  • Fix existing linting errors
  • Apply naming conventions within objects (not supported by TFLint)

This PR is based on #3143 creaed by @koendelaat but now via a dedicate branch in this repository.

@npalm
Copy link
Member Author

npalm commented Aug 5, 2023

@koendelaat I have revived your PR in a dedicated branch, added you as contributor as well. Once ready will merge the PR in a branch next. I plannign also to do some major refactoring on variables.

@npalm npalm changed the base branch from main to next August 5, 2023 14:42
@npalm npalm changed the base branch from next to main August 5, 2023 14:43
@npalm npalm changed the base branch from main to next August 5, 2023 14:45
@npalm
Copy link
Member Author

npalm commented Aug 5, 2023

@koendelaat can make a comment what your idea was about naming conventions for objects?

@koendelaat
Copy link
Collaborator

@npalm some objects are used in submodules in Terraform, other are directly passthrough to software components. The latter need to follow the coding style of that component.

For the first one I would suggest using codestyle of Terraform.

Points to consider:

  • this will lead to inconsistent coding styles for objects
  • There is currently no automated way to lint these code styles (afaik)

@npalm
Copy link
Member Author

npalm commented Aug 6, 2023

@npalm some objects are used in submodules in Terraform, other are directly passthrough to software components. The latter need to follow the coding style of that component.

For the first one I would suggest using codestyle of Terraform.

Points to consider:

  • this will lead to inconsistent coding styles for objects
  • There is currently no automated way to lint these code styles (afaik)

@koendelaat I have addressed the issues in a dedicated issue #3411 Any thoughts on this issue?

.github/workflows/terraform.yml Outdated Show resolved Hide resolved
modules/multi-runner/main.tf Show resolved Hide resolved
@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Sep 15, 2023
@github-actions github-actions bot closed this Sep 25, 2023
@koendelaat koendelaat removed the Stale label Oct 18, 2023
@koendelaat koendelaat reopened this Oct 18, 2023
@npalm npalm changed the base branch from next to main October 19, 2023 09:12
@npalm npalm changed the base branch from main to next October 19, 2023 12:11
@npalm npalm changed the title chore!: Change runner labels to list[string] and apply TFLint fix!: Change runner labels to list[string] and apply TFLint Oct 19, 2023
@npalm
Copy link
Member Author

npalm commented Oct 19, 2023

Ready and tested

@npalm npalm merged commit 60dea80 into next Oct 19, 2023
33 checks passed
@npalm npalm deleted the feature/multi-runner-labels branch October 19, 2023 14:44
This was referenced Oct 20, 2023
npalm added a commit that referenced this pull request Oct 26, 2023
Change variables `runner_labels` and `runner_extra_labels` to type:
`list[string]` to better represent the content

Additionally:
- [x] Automatic determine runner labels for multi runner based on label
matchers
- [x] Enable Terraform linting on all modules, including naming
conventions
- [x] Enable check annotations for linting errors
- [x] Fix existing linting errors
- [ ] Apply naming conventions within objects (not supported by
[TFLint](terraform-linters/tflint#1310))


This PR is based on #3143 creaed by @koendelaat but now via a dedicate
branch in this repository.

---------

Co-authored-by: Koen de Laat <koen.de.laat@philips.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
npalm added a commit that referenced this pull request Oct 27, 2023
Change variables `runner_labels` and `runner_extra_labels` to type:
`list[string]` to better represent the content

Additionally:
- [x] Automatic determine runner labels for multi runner based on label
matchers
- [x] Enable Terraform linting on all modules, including naming
conventions
- [x] Enable check annotations for linting errors
- [x] Fix existing linting errors
- [ ] Apply naming conventions within objects (not supported by
[TFLint](terraform-linters/tflint#1310))


This PR is based on #3143 creaed by @koendelaat but now via a dedicate
branch in this repository.

---------

Co-authored-by: Koen de Laat <koen.de.laat@philips.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
npalm pushed a commit that referenced this pull request Oct 27, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.0.0](v4.7.0...v5.0.0)
(2023-10-27)

### Migration directions

See
[PR](#3552)
for migration directions.

### ⚠ BREAKING CHANGES

* remove depcrecated input and output variables
([#3567](#3567))
* Change runner labels to list[string] and apply TFLint
([#3410](#3410))
* replace Amazon Linux 2 by Amazon Linux 2023 as default Linux AMI
([#3437](#3437))

### Features

* replace Amazon Linux 2 by Amazon Linux 2023 as default Linux AMI
([#3437](#3437))
([35219f5](35219f5))


### Bug Fixes

* Change runner labels to list[string] and apply TFLint
([#3410](#3410))
([0b398f2](0b398f2))
* remove depcrecated input and output variables
([#3567](#3567))
([89c8575](89c8575))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants