feat: preserve initial document separator with kyaml#6062
feat: preserve initial document separator with kyaml#6062grothej wants to merge 9 commits intokubernetes-sigs:masterfrom
Conversation
|
This PR has multiple commits, and the default merge method is: merge. DetailsInstructions 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-sigs/prow repository. |
|
Welcome @grothej! |
|
Hi @grothej. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: grothej The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @koba1t @varshaprasad96 , could you please take a look when you have a chance? Happy to address any feedback. |
|
/ok-to-test |
9057231 to
2783128
Compare
|
/retest |
Context
This PR aims to implement a feature requested in #5850 . The
kyamlpackage shalloptionally be able to retain a leading document separator. As suggested by the author of the before mentioned issue the implementation is similar to the sequence indentation handling.Content
ByteReadWriter+ByteReaderByteReader.Read()---to the start of theio.Writerin case of annotation being presentNote
The check for a leading document separator is kept simple to avoid adding a complex regex or importing additional packages in byteio_reader.go