github.com/oam-dev/kubevela@v1.9.11/references/cli/test-data/addon/sample/readme.md (about)

     1  # Example FluxCD Addon
     2  
     3  This is an example addon based [FluxCD](https://fluxcd.io/)
     4  
     5  ## Directory Structure
     6  
     7  - `template.yaml`: contains the basic app, you can add some component and workflow to meet your requirements. Other files 
     8    in `resources/` and `definitions/` will be rendered as Components and appended in `spec.components`
     9  - `metadata.yaml`: contains addon metadata information.
    10  - `definitions/`: contains the X-Definition yaml/cue files. These file will be rendered as KubeVela Component in `template.yaml`
    11  - `resources/`:
    12    - `parameter.cue` to expose parameters. It will be converted to JSON schema and rendered in UI forms.
    13    - All other files will be rendered as KubeVela Components. It can be one of the two types:
    14      - YAML file that contains only one resource. This will be rendered as a `raw` component
    15      - CUE template file that can read user input as `parameter.XXX` as defined `parameter.cue`.
    16        Basically the CUE template file will be combined with `parameter.cue` to render a resource.
    17        **You can specify the type and trait in this format**
    18        
    19