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 terraform file style from imperative to declarative #487

Closed
wants to merge 4 commits into from

Conversation

stevewallone
Copy link

@stevewallone stevewallone commented Dec 31, 2024

Summary

The terraform files use an imperative style, i.e. create_tkg_cluster. The convention is to use a declarative style that doesn't imply an actions, i.e. tkg_cluster.

Type

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style/formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.
    Please describe:

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Test and Documentation

  • Tests have been completed.
  • Documentation has been added or updated.

Issue References

Resolves #482

Additional Information

@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@vmwclabot vmwclabot added the dco-required DCO Required label Dec 31, 2024
@github-actions github-actions bot added documentation Documentation provider Provider needs-review Needs Review labels Dec 31, 2024
@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@stevewallone stevewallone force-pushed the declarative-terraform branch from e4908dd to 3e06f8a Compare January 13, 2025 21:22
@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@stevewallone
Copy link
Author

I believe the commit message is good to go. Please let me know if there's anything else I need to do.

@tenthirtyam
Copy link
Contributor

The sign off needs to be on its own line.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.96%. Comparing base (3578fd2) to head (3e06f8a).
Report is 74 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (3578fd2) and HEAD (3e06f8a). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3578fd2) HEAD (3e06f8a)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #487      +/-   ##
==========================================
- Coverage   25.23%   19.96%   -5.27%     
==========================================
  Files         195      264      +69     
  Lines       16908    23632    +6724     
==========================================
+ Hits         4267     4719     +452     
- Misses      12423    18699    +6276     
+ Partials      218      214       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tenthirtyam tenthirtyam force-pushed the declarative-terraform branch from 3e06f8a to 89ba6eb Compare January 14, 2025 16:26
@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@tenthirtyam tenthirtyam force-pushed the declarative-terraform branch from 89ba6eb to 85461be Compare January 14, 2025 16:28
@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@tenthirtyam tenthirtyam changed the title Change terraform file style from imperative to declarative. fix: change terraform file style from imperative to declarative Jan 14, 2025
@tenthirtyam tenthirtyam force-pushed the declarative-terraform branch from 85461be to 6ad66d9 Compare January 14, 2025 16:29
@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@tenthirtyam tenthirtyam force-pushed the declarative-terraform branch from 6ad66d9 to fa3e22a Compare January 14, 2025 16:31
@vmwclabot vmwclabot removed the dco-required DCO Required label Jan 14, 2025
@tenthirtyam
Copy link
Contributor

The sign off needs to be on its own line.

@stevewallone - I've resolved the sign-off for you in fa3e22a.

@tenthirtyam tenthirtyam requested a review from a team January 14, 2025 16:32
Copy link
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

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

All instances of the changes to create_duration to duration for the hashicorp/time provider need to be reverted.

The argument is create_duration.

@vmwclabot
Copy link
Member

@stevewallone, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@vmwclabot vmwclabot added the dco-required DCO Required label Jan 16, 2025
@stevewallone
Copy link
Author

Closing PR. Will create another one that is clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-required DCO Required documentation Documentation needs-review Needs Review provider Provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform Naming Convention
4 participants