mirror of https://github.com/helm/helm.git
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> |
||
|---|---|---|
| .. | ||
| repository | ||
| server | ||
| chartmuseum-index.yaml | ||
| local-index-annotations.yaml | ||
| local-index-unordered.yaml | ||
| local-index.json | ||
| local-index.yaml | ||
| old-repositories.yaml | ||
| repositories.yaml | ||