The default version used by helm clients seems to pick the first version in the index.yaml (eg. Rancher, Lens).
Also, by looking at some index.yaml used in the remote site (eg. Bitnami), it's also sorted by the "version" as semver.
But the index.yaml generated by Nexus looks like alphabetical order (old one first), so that users need to be careful to install package from Nexus helm hosted repository.
- Create a helm-hosted repo
- Download test packages:
- Upload above two package (order doesn't matter)
- Check the http://localhost:8081/repository/helm-hosted/index.yaml
Newer version (11.4.15) should be the top of index.yaml.
Currently, it seems the order is decided by the index set on the "asset" class in OrientDB, as Nexus does not sort in CreateIndexServiceImpl#buildIndexYaml, and just use the result of "select from asset where (component IS NOT NULL AND attributes.helm.asset_kind = 'HELM_PACKAGE') and (bucket=xxxx)" (no order specified)