helm/pkg/repo/testdata
Hidde Beydals e21c9cf7e2
repo: detect JSON and unmarshal efficiently
When an index is in a JSON format, the `sigs.k8s.io/yaml` package uses
an inefficient approach to unmarshaling the data, as it does an
unnecessary roundtrip on the data to transform the YAML to valid JSON.

To prevent this from happening, detect if the bytes which we attempt
to load contain valid JSON, and unmarshal them directly using
`json.Unmarshal` instead.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-21 00:23:43 +02:00
..
repository ref(pkg/chart): add validation method to chart 2019-04-05 13:40:06 -07:00
server this rewrites a whole bunch of old repo URLs to the new repo URL (#8902) 2020-10-19 14:38:32 -06:00
chartmuseum-index.yaml fix(*): Validate metadata semver and printable characters 2021-02-04 12:52:24 -08:00
local-index-annotations.yaml fix(*): Validate metadata semver and printable characters 2021-02-04 12:52:24 -08:00
local-index-unordered.yaml fix(*): Validate metadata semver and printable characters 2021-02-04 12:52:24 -08:00
local-index.json repo: detect JSON and unmarshal efficiently 2023-07-21 00:23:43 +02:00
local-index.yaml fix(*): Validate metadata semver and printable characters 2021-02-04 12:52:24 -08:00
old-repositories.yaml feat(helm): implement new index format 2016-10-04 13:54:14 -06:00
repositories.yaml feat(helm): implement new index format 2016-10-04 13:54:14 -06:00