-
Notifications
You must be signed in to change notification settings - Fork 523
scripts: template json safely #898
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
Conversation
Welcome @hasheddan! |
@hasheddan: Adding label: Reasons for blocking this PR:[Changes to certain release tools can affect our ability to test, build, and release Kubernetes. This PR must be explicitly approved by SIG Release repo admins.] 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. |
/assign @feiskyer |
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.
Thanks for your PR!
Ideally we'd test those changes, so that we get a bit more coverage on anago and others, little by little. E.g. I could see the generation of the payload be broken out into a separate function and tests that verify that the payload we generate is always valid json, holds the desired values we template, ... and all that jazz.
I won't block on that, but let me know what you think, about the test and my other comments.
@hoegaarden thanks for your review! I have implemented the suggested changes. In regards to the testing, I heard @justaugustus talk a bit about moving some of these scripts to a more formal tool, likely written in Go. It looks like he has started this effort with #869. I would love to jump in on this effort and potentially take a leadership role in the effort to build a release tool that accomplishes what the collection of scrips currently does. That being said, if it is more desirable just to test these existing scripts, I am happy to do that as well :) |
First off: I am definitely not asking you to backfill tests for the entirety of
Yep, I am aware that there are some efforts going on to replace |
Signed-off-by: hasheddan <[email protected]>
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hasheddan, hoegaarden, justaugustus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Updates anago to template json with
jq
.Fixes #853
/cc @justaugustus