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

feat(scaffolder): add new plugin for extending scaffolder actions #67

Merged
merged 35 commits into from
Sep 18, 2024

Conversation

bbckr
Copy link
Contributor

@bbckr bbckr commented Sep 13, 2024

This MR adds a new backstage backend plugin, which will be used for installing custom scaffolder actions for our Backstage Software templates.

The first released action will focus on HCL file merging, which will be useful for bootstrapping terraform on existing terraform projects.

This includes:

  • Referencing a new package @seatgeek/node-hcl, which is a WASM wrapper around hashicorp/hcl for manipulating HCL files.
  • Use the package's exposed Merge function.
  • A new Backstage plugin package under plugins called scaffolder-backend-module-hcl.
  • The Backstage plugin package will expose actions such as hcl:merge hcl:merge:write hcl:merge:file hcl:merge:file:write.
  • Unit tests for the plugin.
  • Updated add-copyright script for including Go source files as part of the check.

@@ -0,0 +1,32 @@
# scaffolder-backend-module-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

can we isolate these actions just to hcl-actions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can do, updated!

@bbckr bbckr requested a review from zhammer September 18, 2024 17:41
@bbckr bbckr merged commit 9d30f86 into main Sep 18, 2024
6 checks passed
@bbckr bbckr deleted the bbckr-scaffolder-actions branch September 18, 2024 17:51
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.

2 participants