-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Retain field order after running any arbitrary functions on resources #4021
Retain field order after running any arbitrary functions on resources #4021
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: phanimarupaka 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 |
ff79fd5
to
4402056
Compare
4402056
to
f5b262c
Compare
f5b262c
to
771b9dd
Compare
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.
Change looks fine to me so far, thank you for working on this! Some small comments.
@phanimarupaka: This PR has multiple commits, and the default merge method is: merge. 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. |
name: after | ||
spec: | ||
containers: | ||
# ports comment |
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 have expected this comment should come right before ports:
since that's where it is in the input. Do you think that makes sense, and is it possible to do?
EDIT: Never mind, I see two scenarios:
- The comment is specifically talking about the ports field
- The comment is talking about the entire sequence node.
I guess it will be impossible to know which case the user intends, so we can leave this as is.
/lgtm |
Field order might be altered due to round-tripping in arbitrary functions. Similar to CopyComments logic, this PR aims at syncing the field ordering of transformed resource with the input resource.