InseeFrLab/onyxia-api

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

Opened this issue · 1 comments

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.

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 : helm/community#185