-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improvements in signadot job get #130
base: main
Are you sure you want to change the base?
Conversation
Some notes that I think should be discussed: The Job resources yaml is in this PR not forward compatible with having multiple attempts. I thought we wanted to leave that option open without compatibility issues at the level of parsing it. The Job resource yaml in this PR is also not compatible with the go-sdk (nor other sdk) Jobs, which I guess makes it harder to use. Can we remove tries from go-sdk? |
I'm fine with that. But I would keep artifacts as part of the display status. |
I agree, but I think that needs to be balanced with the non-uniformities it introduces: It is also odd that artifacts are not part of the apiserver status response nor the [go-]sdk models but are output from the cli. It kind-of breaks the whole document model to piece together resources from various endpoints: the notion of the resource struct becomes fragmented and harder to manage, use, and reason about. Practically, a Job becomes no longer a Job but a cli Job vs an SDK job. The restructuring of attempts from array to embedding directly in Job contributes to that as well as the artifacts. That being said, I also agree and do think it's odd that the cli displays artifacts in some views but not others. I think that it is worth discussing the relationship between solutions before committing to a format that may well entail compatibility baggage. |
I think we should definitely not print artifacts information fetched separately on |
Having said that, displaying that on explicitly passing a |
This improves the output of
signadot job get
.It fixes https://github.com/signadot/signadot/issues/4522 and includes the artifacts as part of the
yaml
andjson
output.E.g.: