# companyinfo/helm-charts architecture

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

- Interactive diagram: https://gitdiagram.com/companyinfo/helm-charts
- Repository: https://github.com/companyinfo/helm-charts

## Overview

##### Main Components

a. Chart Repository Structure
- Main "helmet" chart as a central component
- Relationship between the main chart and its example implementation

b. Kubernetes Resource Templates
- Various Kubernetes resources defined in the templates directory
- How these templates interact with each other
- Configuration flow from values.yaml to the templates

**┌─ Helm Chart Repository ──────────────────────────────────┐**

- ┌─ Helmet Chart ─────────────────────────────┐        │

- ┌─ Configuration ─┐   ┌─ Templates ────┐  │        │
- values.yaml   │   │ - Deployment   │  │        │
- Chart.yaml    │-->│ - Service      │  │        │
- ┘   │ - Ingress      │  │        │
- ConfigMap     │  │        │
- Secrets       │  │        │
- HPA          │  │        │
- ┘  │        │
- ↓            │        │
- ┌─ Examples ──────────────────────┐     │        │
- Simple Implementation           │     │        │
- ┘     │        │
- ┘        │

- ┘

##### Important Elements to Highlight

a. Resource Templates:
- Major Kubernetes resources (Deployment, Service, Ingress, etc.)
- Monitoring-related templates (ServiceMonitor, PodMonitor)
- Security-related templates (ServiceAccount, Secrets, TLS)

b. Configuration Flow:
- Demonstrate how values.yaml feeds into templates
- Relationship between helpers (_helpers.tpl) and other templates

##### Implementation Notes

- Maintain consistent spacing and alignment
- Clear labels for all components
- Brief descriptions for major components
- Adding a small section showing the Helm installation flow

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph HelmRepo["Helm Chart Repository"]
        subgraph MainChart["Helmet Chart"]
            direction TB
            Config["Configuration"]
            Templates["Kubernetes Templates"]
            Examples["Examples"]
            
            subgraph ConfigSection["Configuration Files"]
                direction TB
                Values["values.yaml"]:::config
                ChartYaml["Chart.yaml"]:::config
                ChartLock["Chart.lock"]:::config
            end
            
            subgraph TemplatesSection["Resource Templates"]
                direction TB
                Deployment["Deployment"]:::template
                Service["Service"]:::template
                Ingress["Ingress"]:::template
                ConfigMap["ConfigMap"]:::template
                Secrets["Secrets"]:::template
                HPA["HPA"]:::template
                Helpers["Helpers"]:::template
                
                subgraph MonitoringTemplates["Monitoring"]
                    ServiceMonitor["ServiceMonitor"]:::monitoring
                    PodMonitor["PodMonitor"]:::monitoring
                end
                
                subgraph SecurityTemplates["Security"]
                    ServiceAccount["ServiceAccount"]:::security
                    TLSSecrets["TLS Secrets"]:::security
                    TLSSelfSigned["TLS Self-Signed"]:::security
                end
                
                subgraph StorageTemplates["Storage"]
                    PVC["PVC"]:::storage
                end
            end
            
            subgraph ExampleSection["Example Implementation"]
                SimpleExample["Simple Example"]:::example
                ExampleValues["Example Values"]:::example
                ExampleTemplates["Example Templates"]:::example
            end
        end
        
        CICD["CI/CD Workflow"]:::cicd
    end
    
    ConfigSection --> TemplatesSection
    TemplatesSection --> ExampleSection
    MainChart --> CICD
    
    %% Component Mappings
    click MainChart "https://github.com/companyinfo/helm-charts/tree/main/charts/helmet/"
    click Values "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/values.yaml"
    click ChartYaml "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/Chart.yaml"
    click ChartLock "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/Chart.lock"
    click Deployment "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_deployment.yaml"
    click Service "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_service.yaml"
    click Ingress "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_ingress.yaml"
    click ConfigMap "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_configmap.yaml"
    click Secrets "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_secret.yaml"
    click HPA "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_hpa.yaml"
    click Helpers "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_helpers.tpl"
    click ServiceMonitor "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_servicemonitor.yaml"
    click PodMonitor "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_podmonitor.yaml"
    click ServiceAccount "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_serviceaccount.yaml"
    click TLSSecrets "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_tls-secrets.yaml"
    click TLSSelfSigned "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_tls-selfsigned.yaml"
    click PVC "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/templates/_pvc.yaml"
    click SimpleExample "https://github.com/companyinfo/helm-charts/tree/main/charts/helmet/examples/simple/"
    click ExampleValues "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/examples/simple/values.yaml"
    click ExampleTemplates "https://github.com/companyinfo/helm-charts/blob/main/charts/helmet/examples/simple/templates/app.yaml"
    click CICD "https://github.com/companyinfo/helm-charts/blob/main/.github/workflows/ci.yaml"
    
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px
    classDef config fill:#FFE5CC,stroke:#333
    classDef template fill:#CCE5FF,stroke:#333
    classDef monitoring fill:#E5CCFF,stroke:#333
    classDef security fill:#FFCCCC,stroke:#333
    classDef storage fill:#CCFFCC,stroke:#333
    classDef example fill:#CCE5E5,stroke:#333
    classDef cicd fill:#FFE5E5,stroke:#333
```
