-
Notifications
You must be signed in to change notification settings - Fork 212
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
Conversation
9d14c78
to
effea7b
Compare
ImageDigests: imageDigests, | ||
} | ||
} | ||
|
||
func (c *ManifestConverter) ToBundle() *bundle.Bundle { | ||
fmt.Fprintf(c.Out, "\nGenerating Bundle File with Invocation Image %s =======> \n", c.Manifest.Image) |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
effea7b
to
428b006
Compare
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
428b006
to
5d01357
Compare
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