-
Notifications
You must be signed in to change notification settings - Fork 14
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
Switch to using stream-metadata-go library #14
Conversation
I moved most of the metadata definitions here to https://github.com/cgwalters/stream-metadata-go per discussion in coreos/fedora-coreos-tracker#98 (comment) So if this PR and approach looks good I propose we move github.com/cgwalters/stream-metadata-go into coreos/ and then look to merge this! |
I'm in favor. If we're moving these structs out to their own library, though, I think we should probably clean up the struct naming. It isn't very consistent with the terminology used elsewhere. Also, maybe we should use a map of platforms rather than hardcoding the platform list into the struct? As is, we'll need to revendor the library every time we add a platform. |
Do you have a specific example? Actually if you want feel free to just push code to master in https://github.com/cgwalters/stream-metadata-go - I just invited you as a collaborator. (Or do PRs as you prefer) |
Some of them need special handling (mostly the public cloud ones like AWS/Azure/GCP) - but maybe the ones that are just "an image file" could be part of a string map I guess? |
Okay, I've pushed a bunch of refactoring to that repo. One open question: calling the package (eek, coreos-metadata.) |
Yeah, separate packages seems cleaner I guess. |
3ee44cc
to
57c4a9b
Compare
OK this should be close to ready, just have the two dependency PRs outstanding. |
OK lifting draft! |
Since we'll still use it after switching to the coreos/stream-metadata-go library.
We aren't shipping this right now in FCOS. Prep for using coreos/stream-metadata-go.
This builds and passes the unit test.
After we have a shared Go library for streams, we can use it
in e.g. coreos-assembler/mantle as well as openshift-install.