{"id":18836302,"url":"https://github.com/obitech/k8s-yaml-test","last_synced_at":"2026-01-27T17:30:19.729Z","repository":{"id":144377705,"uuid":"234932174","full_name":"obitech/k8s-yaml-test","owner":"obitech","description":"Evaluating multi-doc parsing in Kubernetes","archived":false,"fork":false,"pushed_at":"2020-02-01T12:33:00.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T08:22:31.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obitech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-19T16:46:33.000Z","updated_at":"2020-02-01T12:33:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"3278be65-7dfa-43f8-8b44-6a37872ba834","html_url":"https://github.com/obitech/k8s-yaml-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fk8s-yaml-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fk8s-yaml-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fk8s-yaml-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fk8s-yaml-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obitech","download_url":"https://codeload.github.com/obitech/k8s-yaml-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774326,"owners_count":19694700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:21:18.793Z","updated_at":"2026-01-27T17:30:19.653Z","avatar_url":"https://github.com/obitech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Evaluating Multi-Doc Parsing in Kubernetes\n\nEvaluating options to perform multi doc parsing in Kubernetes.\n\nCurrently there seem to be two ways on how to parse multi-doc YAML files in\nKubernetes: via [YAMLReader][yamlreader] and [FrameReader][framereader]. The\nfirst is used by `kubeadm` whereas  the latter seems to be for parsing YAML\nfiles from streams, as used by `kubectl`.\n\nA third option would be to use [gopkg.in/yaml.v3][yamlv3] which seems to be\nboth cleaner and faster, but afaik it's not vendored into k/k.\n\nBenchmark:\n\n```\n$ go test -benchmem -bench=.\ngoos: darwin\ngoarch: amd64\npkg: github.com/obitech/k8s-yaml-test\nBenchmarkYAMLReader-4              18910             57976 ns/op           28852 B/op        272 allocs/op\nBenchmarkYAMLv3Decoder-4           36643             36277 ns/op           15496 B/op        151 allocs/op\nPASS\nok      github.com/obitech/k8s-yaml-test        3.776s\n```\n\n[yamlreader]: github.com/kubernetes/kubernetes/blob/1e40f93d34802f8a41cb916446f660e226c832ee/staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go#L256\n[framereader]: https://github.com/kubernetes/kubernetes/blob/470dfbfc4848cee4897a1b176d20611668820492/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go#L372\n[yamlv3]: https://godoc.org/gopkg.in/yaml.v3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobitech%2Fk8s-yaml-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobitech%2Fk8s-yaml-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobitech%2Fk8s-yaml-test/lists"}