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

Refactor shared bundle action options #2245

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Jul 15, 2022

What does this change

Previously we had a shared option struct, sharedOptions and BundleAction, that were used for a large grouping of commands that work with bundles, from install to explain.

I've refactored the shared options into more granular groupings so that later I can define debug mode for just commands that run bundles. Now there are shared options for commands that execute bundles and commands that merely reference a bundle (such as explain).

What issue does it fix

This is refactoring that will be used in upcoming changes such as #1430 and #1429 .

Notes for the reviewer

N/A

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

@carolynvs carolynvs mentioned this pull request Jul 15, 2022
4 tasks
Previously we had a shared option struct, sharedOptions and
BundleAction, that were used for a large grouping of commands that work
with bundles, from install to explain.

I've refactored the shared options into more granular groupings so that
later I can define debug mode for _just_ commands that run bundles.
Now there are shared options for commands that execute bundles and commands
that merely reference a bundle (such as explain).

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs force-pushed the refactor-bundle-action branch from 444fab4 to d618364 Compare July 20, 2022 13:25
@carolynvs carolynvs marked this pull request as ready for review July 20, 2022 14:26
@carolynvs carolynvs requested review from VinozzZ and vdice as code owners July 20, 2022 14:26
@VinozzZ VinozzZ self-assigned this Jul 20, 2022
pkg/porter/lifecycle.go Outdated Show resolved Hide resolved
Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs merged commit 84d77e0 into getporter:release/v1 Jul 25, 2022
@carolynvs carolynvs deleted the refactor-bundle-action branch July 25, 2022 16:10
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