-
Notifications
You must be signed in to change notification settings - Fork 21
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
coreos-meta-translator: add metal4k support #87
Conversation
This is what it looks like with this (nevermind the bogus URLs):
|
If your example output is correct, this changes the schema. Currently, platforms ( |
OK right, let's just go with Here's a sample of the stream metadata (again, don't mind the {
"stream": "bodhi-updates",
"metadata": {
"last-modified": "2020-03-20T15:06:59Z"
},
"architectures": {
"x86_64": {
"artifacts": {
"metal": {
"release": "31.20200319.dev.2",
"formats": {
"4k.raw": {
"disk": {
"location": "https://builds.coreos.fedoraproject.org/prod/streams/bodhi-updates/builds/31.20200319.dev.2/x86_64/fedora-coreos-31.20200319.dev.2-metal4k.x86_64.raw",
"signature": "https://builds.coreos.fedoraproject.org/prod/streams/bodhi-updates/builds/31.20200319.dev.2/x86_64/fedora-coreos-31.20200319.dev.2-metal4k.x86_64.raw.sig",
"sha256": "a5aeb7fc02b4d35d69edafa070287842aa24305f19f3b05774116faea6277128"
}
},
"raw": {
"disk": {
"location": "https://builds.coreos.fedoraproject.org/prod/streams/bodhi-updates/builds/31.20200319.dev.2/x86_64/fedora-coreos-31.20200319.dev.2-metal.x86_64.raw",
"signature": "https://builds.coreos.fedoraproject.org/prod/streams/bodhi-updates/builds/31.20200319.dev.2/x86_64/fedora-coreos-31.20200319.dev.2-metal.x86_64.raw.sig",
"sha256": "057b0f0005f7971fa129e92cf45f2562294b413341bc8711e3fc16b20a6030e1"
}
}
}
}
}
}
}
} (I had to use coreos/fedora-coreos-stream-generator#8 to test this) |
man this is kind of ugly if we didn't have existing schema to consider what would be the "ideal" structure? |
I think this is pretty good, actually. We won't be able to anticipate every image variant we'll need for some Weird Unfortunate Reason. When building the initial stream metadata design, I assumed that we'd publish those as additional formats, as we're doing here. |
yeah I think we're probably doing the best we can. Right now the 'format' has been an actual format (other than
all in all this LGTM, but I wish there was a better way. |
I think the fact that we call it "format" instead of just "extension" makes this more palatable. In that context, 4k vs 512b is indeed part of the format. Anyway, agreed this is not optimal, but I don't think it's too bad. (And remember the majority of users will be downloading through getfedora, which will have a proper description of what it actually is.) |
For coreos/fedora-coreos-tracker#385.