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

Bench nomad sub-backends #5037

Merged
merged 6 commits into from
Apr 6, 2023
Merged

Bench nomad sub-backends #5037

merged 6 commits into from
Apr 6, 2023

Conversation

fmaste
Copy link
Contributor

@fmaste fmaste commented Mar 30, 2023

  • The Nomad backend contains two local backends, nomadpodman using the podman task driver and nomadexec using the exec task driver, and one cloud backend nomadcloud using IOG infrastructure. This PR makes the distinction and usage between the three of them more clear.
  • Created a new workbench subcommand (wb nomad) to reuse the wb publish code for fetching the credentials (wb nomad vault) and make sub-backend agnostic the code that manages the life-cycle of Nomad Agents (wb nomad server|client start|stop).
  • Now when starting a new cloud deployments everything is automated

@fmaste fmaste force-pushed the bench-nomad-vault branch 4 times, most recently from b3ee18d to 66fbd60 Compare April 6, 2023 13:18
@fmaste fmaste changed the title Bench nomad vault Bench nomad sub-backends Apr 6, 2023
@fmaste fmaste marked this pull request as ready for review April 6, 2023 17:51
@fmaste fmaste requested review from a team, deepfire and mgmeier as code owners April 6, 2023 17:51
describe-run )
backend_nomad describe-run "$@"
;;

Copy link
Contributor

Choose a reason for hiding this comment

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

@fmaste, you can simplify this passthrough very significantly -- you can see how the top-level wb does it, at the end of the file, when handling aliases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was simpler, the way you recommend, but I used this form to debug and I kept it

@@ -294,6 +299,7 @@ main() {
chaindb | c ) chaindb "$@";;
genesis | g ) genesis "$@";;
manifest | m ) manifest "$@";;
nomad | n ) wb_nomad "$@";;
Copy link
Contributor

Choose a reason for hiding this comment

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

😂

Copy link
Contributor

@deepfire deepfire left a comment

Choose a reason for hiding this comment

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

Just one small thing.

Thank you @fmaste ! ❤️

@fmaste fmaste added this pull request to the merge queue Apr 6, 2023
Merged via the queue into master with commit be1dd96 Apr 6, 2023
@iohk-bors iohk-bors bot deleted the bench-nomad-vault branch April 6, 2023 19:54
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.

None yet

2 participants