# gokcesurenkok/catalog architecture

> Architecture diagram of the GitHub repository gokcesurenkok/catalog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gokcesurenkok/catalog
- Repository: https://github.com/gokcesurenkok/catalog

## Overview

##### Main Components

a. Core Structure:
**[Registry Layer]**
- Official Registry (addons.kubevela.net)
- Experimental Registry (addons.kubevela.net/experimental)

**[Addon Categories]**
- Verified Addons
- Experimental Addons

**[Addon Components]**
- CRD Controllers
- X-definitions
- Web Servers
- Container Images

##### Key Relationships

**[User Interaction Layer]**
**CLI (vela) <---> VelaUX (Web Interface)**
- ↓
**[Control Layer]**
**KubeVela Control Plane**
- ↓
**[Addon Management]**
**Addon Registry Manager**
- ↓
**[Storage Layer]**
**OSS Bucket (Addon Packages)**

##### Detailed Component Breakdown

**[Addon Types]**

- Addon Package      |

- metadata.yaml        |
- README.md           |
- template files      |
- resources           |
- definitions         |
- schemas             |

- ↓
**[Implementation Types]**

- 1. Helm Chart Based   |
- 2. YAML Based         |
- 3. Container Based    |

##### Deployment Flow

**[Development] → [Testing] → [Distribution] → [Installation]**
- ↓             ↓            ↓               ↓
**Create Addon → E2E Tests → Package & Sync → Enable Addon**

##### Integration Points

**[External Systems]**
- Kubernetes Clusters
- Cloud Providers
- CI/CD Systems
- Monitoring Tools

Design Guidelines:

- Blue: Core components
- Green: Verified addons
- Yellow: Experimental addons
- Gray: External systems

##### Elements
- Version control
- Testing pipeline
- Distribution channels
- User interaction points
- Security boundaries

##### Hierarchical structure
- Top: User interaction layer
- Middle: Control and management layer
- Bottom: Storage and distribution layer

##### The testing and validation workflow

This system design should be maintained as a living document, updated as new addon types or integration points are added to the catalog.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "User Interaction"
        CLI["CLI (vela)"]
        VelaUX["VelaUX Web Interface"]
    end

    subgraph "Control Layer"
        KCP["KubeVela Control Plane"]
        AddonMgr["Addon Registry Manager"]:::regmgr
    end

    subgraph "Registry Layer"
        OfficialReg["Official Registry"]:::offreg
        ExperimentalReg["Experimental Registry"]:::expreg
    end

    subgraph "Storage Layer"
        OSS["OSS Bucket"]
    end

    subgraph "Addon Package Structure"
        Metadata["metadata.yaml"]:::file
        README["README.md"]:::file
        Template["template.cue"]:::file
        Resources["resources/"]:::dir
        Parameters["parameter.cue"]:::file
    end

    subgraph "Development Pipeline"
        Build["Build Scripts"]:::devtool
        Test["Test Scripts"]:::devtool
        E2ETest["E2E Tests"]:::test
        DefTest["Definition Tests"]:::test
        TFTest["Terraform Tests"]:::test
    end

    subgraph "External Systems"
        K8s[("Kubernetes\nClusters")]
        Cloud["Cloud Providers"]
        CICD["CI/CD Systems"]
        Monitor["Monitoring Tools"]
    end

    CLI --> KCP
    VelaUX --> KCP
    KCP --> AddonMgr
    AddonMgr --> OfficialReg
    AddonMgr --> ExperimentalReg
    OfficialReg --> OSS
    ExperimentalReg --> OSS
    AddonMgr --> K8s
    K8s --> Cloud
    K8s --> CICD
    K8s --> Monitor

    classDef file fill:#f9f,stroke:#333
    classDef dir fill:#9ff,stroke:#333
    classDef test fill:#ff9,stroke:#333
    classDef devtool fill:#9f9,stroke:#333
    classDef regmgr fill:#99f,stroke:#333
    classDef offreg fill:#6f6,stroke:#333
    classDef expreg fill:#ff6,stroke:#333

    click OfficialReg "https://github.com/gokcesurenkok/catalog/tree/master/addons"
    click ExperimentalReg "https://github.com/gokcesurenkok/catalog/tree/master/experimental/addons"
    click AddonMgr "https://github.com/gokcesurenkok/catalog/blob/master/.github/workflows/registry.yaml"
    click E2ETest "https://github.com/gokcesurenkok/catalog/tree/master/test/e2e-test"
    click DefTest "https://github.com/gokcesurenkok/catalog/tree/master/test/e2e-test/addon-test/definition-test"
    click TFTest "https://github.com/gokcesurenkok/catalog/tree/master/test/e2e-test/terraform-test"
    click Build "https://github.com/gokcesurenkok/catalog/blob/master/hack/build.sh"
    click Test "https://github.com/gokcesurenkok/catalog/blob/master/hack/test.sh"
    click Metadata "https://github.com/gokcesurenkok/catalog/blob/master/addons/cert-manager/metadata.yaml"
    click README "https://github.com/gokcesurenkok/catalog/blob/master/addons/cert-manager/README.md"
    click Template "https://github.com/gokcesurenkok/catalog/blob/master/addons/cert-manager/template.cue"
    click Resources "https://github.com/gokcesurenkok/catalog/tree/master/addons/cert-manager/resources"
    click Parameters "https://github.com/gokcesurenkok/catalog/blob/master/addons/cert-manager/parameter.cue"
```
