# dmytri/deploy_charm architecture

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

- Interactive diagram: https://gitdiagram.com/dmytri/deploy_charm
- Repository: https://github.com/dmytri/deploy_charm

## Overview

- Tilt → Minikube (deployment control)
- BDA Test Runner → Alpine Container (configuration management)
- pytest-bdd → pyinfra (automation execution)

- Feature Files → pytest-bdd (test specifications)
- Kubernetes Manifests → Tilt (deployment configs)
- SSH Connections → Soft Serve (git access)

##### Important Notes

- Clear separation between the development environment and the target deployment environment
- BDA workflow from feature files to actual deployment
- Port forwarding mechanism for SSH access
- Relationship between Tilt and the Kubernetes infrastructure

Top Section:
- Development tools and infrastructure
- BDA framework components

Middle Section:
- Automation and testing components
- Control flow mechanisms

Bottom Section:
- Target deployment environment
- Deployed services and configurations

##### Additional Details

- Version information for key components
- Configuration file relationships (Tiltfile, manifest.yaml)
- Testing paths and validation points

Remember to include annotations for important configuration points and automation triggers, as these are crucial for understanding the system's behavior and operation.

## Diagram (Mermaid)

```mermaid
graph TB
    %% Style Definitions
    classDef infra fill:#a8d1f0,stroke:#333
    classDef testing fill:#90EE90,stroke:#333
    classDef target fill:#FFB347,stroke:#333
    classDef support fill:#D3D3D3,stroke:#333

    subgraph "Development Environment Layer"
        TILT["Tilt Development Environment"]:::infra
        MINIKUBE["Minikube Cluster"]:::infra
        KUBECTL["Kubectl Interface"]:::infra
    end

    subgraph "Automation Layer"
        BDA["BDA Test Runner"]:::testing
        PYTEST["pytest-bdd Framework"]:::testing
        PYINFRA["pyinfra Operations"]:::testing
        FEATURES["Feature Files"]:::testing
    end

    subgraph "Target Deployment Layer"
        ALPINE["Alpine Linux Container"]:::target
        SOFTSERVE["Soft Serve Git Server"]:::target
        SSH["OpenSSH Server"]:::support
        OPENRC["OpenRC Service Manager"]:::support
    end

    %% Relationships
    TILT --> MINIKUBE
    KUBECTL --> MINIKUBE
    BDA --> ALPINE
    PYTEST --> PYINFRA
    FEATURES --> PYTEST
    PYINFRA --> ALPINE
    SSH --> SOFTSERVE
    OPENRC --> SOFTSERVE
    OPENRC --> SSH

    %% Port Forwarding
    MINIKUBE -.->|"Port 23231"| SSH

    %% Click Events
    click TILT "https://github.com/dmytri/deploy_charm/tree/main/Tiltfile"
    click BDA "https://github.com/dmytri/deploy_charm/blob/main/tests/test_deploy.py"
    click FEATURES "https://github.com/dmytri/deploy_charm/blob/main/tests/deploy.feature"
    click ALPINE "https://github.com/dmytri/deploy_charm/tree/main/target/Dockerfile"
    click MINIKUBE "https://github.com/dmytri/deploy_charm/blob/main/manifest.yaml"
    click SOFTSERVE "https://github.com/dmytri/deploy_charm/blob/main/target/manifest.yaml"

    %% Legend
    subgraph Legend
        L1["Infrastructure"]:::infra
        L2["Testing & Automation"]:::testing
        L3["Target Components"]:::target
        L4["Support Services"]:::support
    end
```
