-
Notifications
You must be signed in to change notification settings - Fork 249
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
Catalog design #434
Comments
@dhiguero It's great to see this idea! A quick question is what will be the main purpose of this catalog? Is it for GitOps layout to deploy the app? Or just for app store display? If the purpose is for app store, any reason we do not reuse Helm to package the OAM yamls? |
@dhiguero Could you provide more examples? These files seem too vague in high level: app_cfg.yaml, OAM_entity.yaml, k8s_entity.yaml |
Thanks @resouer , @hongchaodeng for the comments. We have been working on an updated proposal and I have updated the issue to reflect the changes. |
Can we use https://backstage.io/docs/features/software-catalog/software-catalog-overview for the Catalog? |
Backstage + Kubevela will be super combo. |
@h7kanna Hi, we've already build some combination for KubeVela and backstage, have a try and give some feed back. https://github.com/kubevela-contrib/backstage-plugin-kubevela
|
After more than two years evolution, I think KubeVela has become mature, I think it's time for KubeVela to have an application registry and discuss this issue deeper. \cc @dhiguero @barnettZQG |
I think it is also a good time to start discussing the catalog/application registry again. Given that there have been some on and off discussions over this time, I would suggest to create a shared document where we can start discussing high-level requirements before going into the implementation discussions. I can start a document and shared it, but I do not know if you prefer to have the document hosted in the OAM/Kubevela gmail account. |
@dhiguero Thanks Daniel, I think it's fine to create a document and share it. We can finally merge that content inside the repo here after discussion. |
Ok, I will create an initial draft so we can jump-start the discussion. |
Hi all, I have created an initial document to facilitate the discussion. https://docs.google.com/document/d/1Acvl2DQYKj0R0aQMEb4czDfsE6oYTPslgbN8P4ZsQfM/edit?usp=sharing |
邮件已收到,谢谢
|
Great proposal, which aligns with our idea of choosing OAM and also expanding OAM. We are Workflos, and in the user stories we have encountered, the flow of applications is a very important scenario. It involves a complete definition of an application, such as: the basic metadata information of the application, such as the name, version, industry domain, developer, etc., the open capability information of the application, such as which OpenAPIs, Events, etc. are included, the pricing and specification information of the application, such as the developer version, which available features and resource usage quotas, whether it is free or at what price, the authentication integration information of the application, such as which authentication and authorization protocols the application supports, and the deployment information of the application, such as whether the application supports SaaS or private deployment, and which components the private deployment depends on, etc. As an open application model, OAM should not only define the basic deployment information model, but also support other nodes in the application flow lifecycle. We are looking forward to contributing to OAM better together. |
Thanks everyone for the comments. I will update the document to reflect the discussion from the community call and the different questions and proposals raised in the document. |
Following on the last community call items, the concept of having a catalog for OAM applications is an interesting topic that is being actively developed by some of the members. In order to improve the reusability of catalogs among different solutions, we believe that it will be good to approach its definition as a community proposal so that there exists a basic definition of its layout and purpose.
Note This issue has been edited to address the different comments and questions.
Changelog
Purpose
The purpose of the catalog is to provide a standarized entity to store OAM applications. Different platforms and implementations could then leverage one or more of such catalogs to provide an easy method for users to deploy OAM applications. Moreover, user can also decide to upload their applications to that catalog to improve reusability. It could be expected that there could be both private and public catalogs, but we believe that having a common structure will improve reusability and compatibility between different tools and vendors.
Examples of similar catalogs in purpose the are:
Basic layout
We have approached the catalog trying to go for its most basic form so that an application can define all the elements that are needed considering those as (preferiably OAM) YAML entities. We think that the catalog should not contain other entities such as Dockerfiles or becoming a code repository.
Based on this assumptions, we are working on a catalog with the following layout:
Where the YAML files are OAM entities plus basic K8s entities that follow the current OAM suggestions/workarounds for items such as secrets and configmaps. The
metadata.yaml
file contains information about the application as whole to facilitate its discovery on the catalog. TheREADME.md
provides a textual description on how to use the application as found in other systems such as a GitHub repo, or the Docker Hub readme for an image. Directory structure is left for the application designer/developer to decide as the catalog engine has enough information (YAML headers containing kind and apiVersion) to identify entities.metatadata.yaml
In terms of the metadata file we believe its purpose is to facilitate the discovery on the catalog by means of the different tools that may appear for exploring/integrating catalogs in OAM environments. Other similar entities are both defined on APIServer + Catalog Architecture Design and Application metadata descriptor CRD and share similar attributes.
Some differences with the aforementioned proposals are:
dependencies.yaml
The dependencies file lists dependencies of an application. In this context, a dependency could be any subset of YAML entities that are required to deploy the application. Optionally, dependencies may specify which entities they provide enabling complex cases where an application requires a particular trait, and the dependency defines where to get that trait from. As Traits and Scopes are not namespaced, the catalog consumer will decide how to resolve conflicts. Other methods to define dependencies as reference are: Helm dependencies, Kubevela Catalog Structure.
Example entry
As an example of how an application may look like on this type of catalog, let's consider the containerized-workload example from the runtime.
where
metadata.yaml
will contain:The text was updated successfully, but these errors were encountered: