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 the bundle adapter #2110

Merged
merged 2 commits into from
May 31, 2022

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented May 27, 2022

What does this change

Pass porter config to the bundle converter

When we are converting a porter.yaml to a bundle.json we need the porter config file so that we can check if the upcoming dependencies2 feature flag is enabled and conditionally build out a different bundle.

Add context.Context to the bundle adapter

Stop logging directly to stdout(!) and instead log with the current span so that it is traced.

What issue does it fix

Part of #1939

I am breaking up some of the changes that we know that we need to support the advanced dependencies feature into small changes that we can safely review and merge now.

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

When we are converting a porter.yaml to a bundle.json we need the porter
config file so that we can check if the upcoming dependencies2 feature
flag is enabled and conditionally build out a different bundle.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs force-pushed the converter-refactor branch 2 times, most recently from 3ed32b6 to b94b050 Compare May 27, 2022 20:22
Stop logging directly to stdout(!) and instead log with the current span
so that it is traced.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs force-pushed the converter-refactor branch from b94b050 to 221ce97 Compare May 27, 2022 22:42
@carolynvs carolynvs marked this pull request as ready for review May 31, 2022 13:16
@carolynvs carolynvs merged commit aec8e5f into getporter:release/v1 May 31, 2022
@carolynvs carolynvs deleted the converter-refactor branch May 31, 2022 18:47
@carolynvs carolynvs added the pep003-advanced-dependencies Implementation of the Advanced Dependencies proposal label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pep003-advanced-dependencies Implementation of the Advanced Dependencies proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants