-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Feature request] Add CLI command to dump and merge an image manifest for promotion #190
Comments
Thinking out loud here: the tool could write images back into, e.g., We could alternatively change from YAML to something else but that change would entail a ton of code rewriting, something I'm not comfortable doing with golang (Haskell, on the other hand...!). There are several ways around these issues, but I'm gauging now how difficult they will be. I am considering moving over to v3 of the yaml library because it claims to support comment preservation. It also seems to support hash key order preservation so it might just do the trick. |
I discovered go-yaml/yaml#459 which suggests that even v3 of the yaml library will alter how comments look. I could (a) still go with v3's default marshaling function (accepting that some comments will get restyled), or (b) write a custom parser/injector that does not use yaml.Marshal to write things back as yaml and instead just write some new text lines (into the Thoughts? |
If we don't care about preserving comments/style, then the problem space becomes drastically reduced and I can write a patch in a day or two. |
@listx -- Yep! I think as long as we warn in the command run that comments will get dropped in the manifest, then we should be fine. I'll leave you to it, since you've already got https://github.com/listx/k8s-container-image-promoter/tree/add-manifest-edit-command in progress. :) |
/assign @listx |
@justaugustus: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
SGTM |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This was done in #210 |
As we move closer to the vanity domain flip (ref: kubernetes/release#270), Release Managers will be responsible for promoting official images via the promoter, instead of anago.
What I'd love is a "simple" CLI to:
Example invocation:
If the
--image
is omitted, all images from the staging GCR with a matching--staging-tag
would be dumped and merged into the promotion manifest.From there, someone could PR that new images.yaml to k/k8s.io for promotion.
cc: @listx @tpepper @thockin
ref: group DM, kubernetes/k8s.io#624, kubernetes/release#957
The text was updated successfully, but these errors were encountered: