-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formalize and define schema for devfile registry index (index.json) #135
Comments
Some other things to consider:
|
Probably we need to open a separate issue for registry index file generator, but given the design of OCI registry is not finalized, not sure how we would like to proceed it as the generator may change with the registry migrates to OCI-based registry. |
Based on the discussion, we decide to still use our own index file instead of OCI index file. Given there is no strong relation between index file and devfile artifact manifest file, so I think we can still use each devfile's meta.yaml to generate the index file. |
The index generator POC has been pushed to https://github.com/devfile/registry-support/tree/index-generator. One thing we need to discuss on Cabal call is whether we need to merge |
Issue is open for discussion regarding merge |
Last sub-issue #172 is done, close this issue. |
Currently, devfile registries host an index.json file that contains the registry index and the devfiles it contains, partially built from each devfile's meta.yaml.
Devfile consumers such as Odo or Che then parse this file when looking for devfiles in a given registry.
However the schema for the index.json file is not formally defined anywhere, nor is there a list of which fields are required vs. optional. Additionally, Che and Odo both use different generators to create the index.json (see Che and Odo).
We should formally define the schema for the index.json file, as well as capture any changes to the schema discussed on here in the past few months. This will ensure consistency across the board for devfile registries and devfile consumers.
List of agreed-upon index.json changes:
Other agreed-upon devfile metadata changes that may be relevant:
Registry index file generator:
This item also includes the implementation of the registry index file (index.json) generator that is used for generating the registry index file for storing the catalog and metadata of stacks/devfiles in the registry.
The text was updated successfully, but these errors were encountered: