-
Notifications
You must be signed in to change notification settings - Fork 56
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
imagefilter: adjust short
output format
#1206
base: main
Are you sure you want to change the base?
Conversation
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'm uncomfortable about string formatting all this YAML.
As a side question, is the stability goal here to be equal to the structures as output by |
Adjusts the output format to match the cloudAPI `/distributions` See: osbuild/osbuild-composer#4336 Now this is considered "stable".
37f4c4f
to
c7aaad0
Compare
@supakeen it was a discussion essentially started here where it almost looks yaml-like so we just made it to be valid. As also noted in the comment of the warning (which got removed with this PR), the "instability" was due to misalignment with osbuild/osbuild-composer#4336 which is fixed now. |
@schuellerf The YAML dependency will likely be there soon due to: #1205 :) |
// are open questions, e.g. how this relates to: | ||
// https://github.com/osbuild/osbuild-composer/pull/4336 | ||
// which adds a similar but slightly different API | ||
fmt.Fprint(w, "@WARNING - the output format is not stable yet and may change\n") |
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 would like to keep this for now, I think we need to consider what API we provide and grantee
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.
so I'll think about another code-comment as it's aligned with the 4336-PR…
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.
…and it doesn't state it's yaml, just happens to be compatible for now ;)
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.
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.
So, with #1205 landing there's no reason anymore not to pull in a YAML dependency as it's already here.
My preference is that if the output format is outputting YAML that the format should be called yaml
as well, same goes for the JSON format we have.
That means we can either, remove the YAML-ness in this PR and name it short
or we can make it go full-YAML and name it yaml
. No real preference on either.
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.
just pushes me towards making both :-D
I'm fine with that ;)
Adjusts the output format to match the cloudAPI
/distributions
See: osbuild/osbuild-composer#4336Now this is considered "stable"?
The output is not as nice as before but ok-ish and consistent with the API, now.