-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP] Support unmarshall multiple yaml documents #8313
Conversation
I do not think switching out the yaml package will go well |
+1 to @fejta's comment. we can use the existing marshalling / unmarshalling and just have a separate step to split the file into byte blobs that are seperate documents. they're just delimited by |
actual spec details on this: http://yaml.org/spec/1.2/spec.html#id2760395 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: krzyzacy 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 |
@fejta hummm, why? I mean I can do what @BenTheElder has suggested, but why we ping to a specific version of yaml library? aka what can break? |
/hold |
@krzyzacy: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/shrug I'd prefer do the split ourselves (it's pretty straight forward) until they update the library |
Can we do the split as a patch on top of the vendored code? Then propose the changes upstream? There's no good reason we should work around the library instead of trying to improve it for all :) |
@stevekuznetsov do we suppose to edit vendor code? |
hummmmm seems it's not going to be easy if we want to use goyaml's decoder in ghodss/yaml https://github.com/go-yaml/yaml/blob/v2/yaml.go#L95 the goyaml parser struct is unexported, and I don't really have a way to wrap around https://github.com/go-yaml/yaml/blob/v2/yaml.go#L119-L135 unless I write my own parser :-/ opened ghodss/yaml#31 |
/shrug |
don't need to bump go-yaml, will switch to the other branch instead |
looks like go-yaml/yaml#301 added the support already
(fighting with dep)