InseeFrLab / onyxia-api

REST API of Onyxia
https://onyxia.sh
MIT License
23 stars 28 forks source link

Onyxia api could do better caching strategy when remote helm charts repository of catalogs are offline #224

Open alexisdondon opened 1 year ago

alexisdondon commented 1 year ago

I have some onyxia catalog that are put in a gitlab helm registry.

When gitlab was on maintenance and the registry offline i could scroll catalog services but when i clicked on start a service it seems that onyxia- api failed to fetch registry and then the service is an error.

Onyxia could probably like CatalogRefresh do a better strategy to cache packages tar.gz in order to handle an offline helm registry when the catalog was already downloaded.

olevitt commented 9 months ago

Onyxia relies on Helm for installing packages and, from my understanding, helm only caches the repository index, not individual packages. This means that at each install the package will be fetched resulting in a failure if your registry (actually the packages hosting) is offline.
There are some discussion on cache in helm project but it seems to be currently stale : https://github.com/helm/community/pull/185