# shubham-automation/gitflow-v6 architecture

> Architecture diagram of the GitHub repository shubham-automation/gitflow-v6, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shubham-automation/gitflow-v6
- Repository: https://github.com/shubham-automation/gitflow-v6

## Overview

##### File structure
- Top-level files:
- Dockerfile – container definition for the Python app.
- app.py – the service entrypoint.
- requirements.txt – Python dependencies.
- README.md – minimal project description.
- Deployment configuration:
- helm/Chart.yaml & values.yaml – Helm chart metadata and default values.
- helm/templates/*.yaml – Kubernetes resources (Deployment, Service, Secrets).
- CI/CD:
- .github/workflows/ci-cd.yaml – GitHub Actions pipeline that likely builds the Docker image, pushes it to a container registry (e.g., Azure Container Registry via acr-secret.yaml), and triggers a Helm upgrade.

##### Elements
- “git push” → GitHub → triggers → CI/CD
- CI/CD → Docker build → Registry push
- CI/CD → helm upgrade → Kubernetes API
- Kubernetes Service → Pod(s) → app.py
- Blue for “code & CI/CD” elements
- Green for “infrastructure” (Registry, Kubernetes, Helm)
- Orange for “runtime” (Pods, Service)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Code & CI/CD
    Developer["Developer\n(Git Client)"]:::code
    GitHub["GitHub Repo"]:::code
    GHAction["GitHub Actions\n(.github/workflows/ci-cd.yaml)"]:::code

    %% Docker Build
    Dockerfile["Dockerfile"]:::code
    Requirements["requirements.txt"]:::code

    %% Registry & Deployment
    ACR["Container Registry\n(ACR)"]:::infra
    HelmClient["Helm Client"]:::infra
    subgraph "Helm Chart"
        Chart["Chart.yaml"]:::infra
        Values["values.yaml"]:::infra
    end

    %% Kubernetes Cluster
    KubeAPI["Kubernetes API Server"]:::infra
    Namespace["Namespace"]:::infra
    SecretACR["Secret: ACR Credentials"]:::infra
    SecretOther["Secret: Other"]:::infra
    Deployment["Deployment\n(deployment.yaml)"]:::runtime
    Service["Service\n(service.yaml)"]:::runtime
    Pod["Pod(s)\n(app.py)"]:::runtime

    %% Connections
    Developer -->|git push| GitHub
    GitHub -->|triggers| GHAction
    GHAction -->|build image| Dockerfile
    GHAction -->|build image| Requirements
    Dockerfile -->|uses| Requirements
    Requirements -->|push image| ACR
    GHAction -->|helm upgrade| HelmClient
    HelmClient --> Chart
    HelmClient --> Values
    HelmClient -->|applies| KubeAPI
    KubeAPI --> Namespace
    Namespace --> SecretACR
    Namespace --> SecretOther
    Namespace --> Deployment
    Namespace --> Service
    Deployment --> Pod
    Service --> Pod

    %% Click Events
    click GitHub "https://github.com/shubham-automation/gitflow-v6/blob/develop/README.md"
    click GHAction "https://github.com/shubham-automation/gitflow-v6/blob/develop/.github/workflows/ci-cd.yaml"
    click Dockerfile "https://github.com/shubham-automation/gitflow-v6/tree/develop/Dockerfile"
    click Requirements "https://github.com/shubham-automation/gitflow-v6/blob/develop/requirements.txt"
    click Chart "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/Chart.yaml"
    click Values "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/values.yaml"
    click SecretACR "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/templates/acr-secret.yaml"
    click SecretOther "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/templates/secret.yaml"
    click Deployment "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/templates/deployment.yaml"
    click Service "https://github.com/shubham-automation/gitflow-v6/blob/develop/helm/templates/service.yaml"
    click Pod "https://github.com/shubham-automation/gitflow-v6/blob/develop/app.py"

    %% Styles
    classDef code fill:#cce5ff,stroke:#004085,color:#004085
    classDef infra fill:#d4edda,stroke:#155724,color:#155724
    classDef runtime fill:#fff3cd,stroke:#856404,color:#856404
```
