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

Move manifest into separate package from config #702

Merged
merged 2 commits into from
Oct 7, 2019

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Oct 5, 2019

What does this change

This allows plugins to import porter config without also taking dependencies on everything related to the porter manifests (including our runtime manifest). They really are two separate concerns, porter's config and the bundle configuration, so this was a long time coming.

What issue does it fix

This is preparatory refactoring for #701

Notes for the reviewer

Sorry for the large change but config is used everywhere...

Checklist

  • Unit Tests
  • Documentation
    • Documentation Not Impacted

@carolynvs carolynvs force-pushed the refactor-config branch 2 times, most recently from 9d14c78 to effea7b Compare October 7, 2019 14:39
@carolynvs carolynvs marked this pull request as ready for review October 7, 2019 15:02
ImageDigests: imageDigests,
}
}

func (c *ManifestConverter) ToBundle() *bundle.Bundle {
fmt.Fprintf(c.Out, "\nGenerating Bundle File with Invocation Image %s =======> \n", c.Manifest.Image)
Copy link
Member Author

Choose a reason for hiding this comment

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

I decided to remove these output lines, as doing a conversion from one data structure to another doesn't really warrant these log lines anymore. They maybe made sense last November for the prototype but now aren't necessary and are just noise.

url := "https://raw.githubusercontent.com/deislabs/porter/master/pkg/config/testdata/simple.porter.yaml"
m, err := c.ReadManifest(url)
c := config.NewTestConfig(t)
url := "https://raw.githubusercontent.com/deislabs/porter/v0.17.0-beta.1/pkg/config/testdata/simple.porter.yaml"
Copy link
Member Author

Choose a reason for hiding this comment

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

This file moved in the refactoring so I am using a tag for now to prevent the build from breaking when the PR is merged.

This allows plugins to import porter config without also taking
dependencies on everything related to the porter manifests (including
our runtime manifest). They really are two separate concerns, porter's
config and the bundle configuration, so this was a long time coming.
It's hard to see which test failed with verbose on
@carolynvs carolynvs merged commit d6b96d5 into getporter:master Oct 7, 2019
@carolynvs carolynvs deleted the refactor-config branch October 7, 2019 17:13
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.

3 participants