devfile / api

Kube-native API for cloud development workspaces specification
Apache License 2.0
235 stars 58 forks source link

Move `index.json` to oci-registry and use a cached version in devfile-registry #1509

Open thepetk opened 1 month ago

thepetk commented 1 month ago

/kind task

Which area/kind this issue is related to?

/area registry

Issue Description

The index.json is stored inside the devfile-registry container atm. Ideally we would like to store a cached version of this file inside the devfile-registry container, while maintaining the original version inside the OCI-registry. This way we can update the index.json every time we receive updates for stacks from the github registry repo, while we don't have to query every time the oci-registry and use the cached version.

Upon its initialization the index/server should be able to populate the oci-registry container with the index.json and to store this very first version inside the devfile-registry container.

In order to keep the cached version up-to-date with the one stored in the oci-registry the devfile-registry container should have a caching mechanism that will take care of the update of the index.json file.

Acceptance Criteria