# sanjayadhityaprofile/pipelinemanager architecture

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

- Interactive diagram: https://gitdiagram.com/sanjayadhityaprofile/pipelinemanager
- Repository: https://github.com/sanjayadhityaprofile/pipelinemanager

## Overview

This repository appears to implement a FastAPI backend for managing Kubernetes-oriented projects and deployments, with user authentication and administrative APIs. The visible workflow enters through API handlers, which invoke services to manage namespaces, configuration, deployments, and related resources; deployment services can generate Kubernetes YAML and upload it to Azure Blob Storage. The source index identifies additional project, repository, cluster, pipeline, and service-account domains, but their runtime wiring is not shown. Edges are limited to relationships visible in excerpts or the source index.

Main entry points: [`models.py`](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/models.py) (Relational schema), [`app.py`](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/app.py) (FastAPI application), [`services/deployment_services.py`](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/deployment_services.py) (Deployments and YAML), [`services/blobstorage_services.py`](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/blobstorage_services.py) (Azure blob upload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API and identity"]
  node_api["FastAPI application<br/>[app.py]"]
  node_auth_routes["Auth routes<br/>[auth_routes.py]"]
  node_user_routes["User routes<br/>[user_routes.py]"]
  node_login["Login and tokens<br/>[login_services.py]"]
  node_users["User management<br/>[user_services.py]"]
end

subgraph group_catalog["Project catalog"]
  node_projects["Projects"]
  node_repositories["Repositories<br/>[repo_services.py]"]
  node_branches["Branches"]
  node_pipelines["Pipelines"]
end

subgraph group_environment["Cluster setup"]
  node_clusters["Clusters"]
  node_namespaces["Namespaces"]
  node_subscriptions["Namespace subscriptions"]
  node_service_accounts["Service accounts<br/>[sa_services.py]"]
end

subgraph group_delivery["Deployment delivery"]
  node_config["Configuration<br/>[config_services.py]"]
  node_deployment_config["Deployment config"]
  node_deployments["Deployments and YAML"]
  node_kube_services["Kubernetes services"]
  node_alerts["Alerts<br/>[alerts_services.py]"]
  node_audit["Audit activity"]
  node_logic["Shared logic<br/>[logics.py]"]
end

subgraph group_data["Persistence and storage"]
  node_schema[("Relational schema<br/>[models.py]")]
  node_blob["Azure blob upload"]
end

node_client(("API client"))

node_client -->|"sends requests"| node_api
node_api -->|"calls namespace APIs"| node_namespaces
node_api -->|"creates config maps"| node_config
node_api -->|"updates deployments"| node_deployments
node_api -->|"looks up deployments"| node_repositories
node_api -->|"resolves cluster"| node_clusters
node_auth_routes -->|"authenticates"| node_login
node_user_routes -->|"manages users"| node_users
node_user_routes -->|"hashes passwords"| node_login
node_pipelines -->|"queries pipeline table"| node_schema
node_users -->|"queries user table"| node_schema
node_login -->|"loads user records"| node_schema
node_namespaces -->|"queries namespace tables"| node_schema
node_deployments -->|"gets namespace"| node_namespaces
node_deployments -->|"gets cluster"| node_clusters
node_deployments -->|"uploads generated YAML"| node_blob
node_deployments -->|"reads deployment data"| node_schema
node_kube_services -->|"gets namespace"| node_namespaces
node_kube_services -->|"uploads generated YAML"| node_blob
node_alerts -->|"uses blob storage"| node_blob
node_audit -->|"uses data models"| node_schema
node_projects -->|"uses data models"| node_schema
node_repositories -->|"uses data models"| node_schema
node_branches -->|"uses data models"| node_schema
node_clusters -->|"uses data models"| node_schema
node_config -->|"uses data models"| node_schema
node_config -->|"uses blob storage"| node_blob
node_deployment_config -->|"uses data models"| node_schema
node_deployment_config -->|"uses blob storage"| node_blob
node_deployment_config -->|"uses deployment services"| node_deployments
node_service_accounts -->|"uses data models"| node_schema
node_logic -->|"uses data models"| node_schema

click node_api "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/app.py"
click node_auth_routes "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/routes/auth_routes.py"
click node_user_routes "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/routes/user_routes.py"
click node_login "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/login_services.py"
click node_users "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/user_services.py"
click node_projects "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/project_services.py"
click node_repositories "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/repo_services.py"
click node_branches "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/branches_services.py"
click node_pipelines "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/pipeline_services.py"
click node_clusters "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/cluster_services.py"
click node_namespaces "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/namespace_services.py"
click node_subscriptions "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/namespace_services.py"
click node_service_accounts "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/sa_services.py"
click node_config "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/config_services.py"
click node_deployment_config "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/dep_config_services.py"
click node_deployments "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/deployment_services.py"
click node_kube_services "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/service_services.py"
click node_alerts "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/alerts_services.py"
click node_audit "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/audit_activity_services.py"
click node_logic "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/logics.py"
click node_schema "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/models.py"
click node_blob "https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/blobstorage_services.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api,node_auth_routes,node_user_routes,node_login,node_users,node_client toneBlue
class node_projects,node_repositories,node_branches,node_pipelines toneAmber
class node_clusters,node_namespaces,node_subscriptions,node_service_accounts toneMint
class node_config,node_deployment_config,node_deployments,node_kube_services,node_alerts,node_audit,node_logic toneRose
class node_schema,node_blob toneIndigo
```

## Components

### API and identity

- [FastAPI application](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/app.py): `app.py`
- [Auth routes](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/routes/auth_routes.py): `routes/auth_routes.py`
- [User routes](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/routes/user_routes.py): `routes/user_routes.py`
- [Login and tokens](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/login_services.py): `services/login_services.py`
- [User management](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/user_services.py): `services/user_services.py`

### Project catalog

- [Projects](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/project_services.py): `services/project_services.py`
- [Repositories](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/repo_services.py): `services/repo_services.py`
- [Branches](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/branches_services.py): `services/branches_services.py`
- [Pipelines](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/pipeline_services.py): `services/pipeline_services.py`

### Cluster setup

- [Clusters](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/cluster_services.py): `services/cluster_services.py`
- [Namespaces](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/namespace_services.py): `services/namespace_services.py`
- [Namespace subscriptions](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/namespace_services.py): `services/namespace_services.py`
- [Service accounts](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/sa_services.py): `services/sa_services.py`

### Deployment delivery

- [Configuration](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/config_services.py): `services/config_services.py`
- [Deployment config](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/dep_config_services.py): `services/dep_config_services.py`
- [Deployments and YAML](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/deployment_services.py): `services/deployment_services.py`
- [Kubernetes services](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/service_services.py): `services/service_services.py`
- [Alerts](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/alerts_services.py): `services/alerts_services.py`
- [Audit activity](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/audit_activity_services.py): `services/audit_activity_services.py`
- [Shared logic](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/logics.py): `services/logics.py`

### Persistence and storage

- [Relational schema](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/models.py): `models.py`
- [Azure blob upload](https://github.com/sanjayadhityaprofile/pipelinemanager/blob/main/services/blobstorage_services.py): `services/blobstorage_services.py`

### Other components

- **API client**

## Connections

- API client → FastAPI application: sends requests (evidence: `app.py`)
- FastAPI application → Namespaces: calls namespace APIs (evidence: `app.py`)
- FastAPI application → Configuration: creates config maps (evidence: `app.py`)
- FastAPI application → Deployments and YAML: updates deployments (evidence: `app.py`)
- FastAPI application → Repositories: looks up deployments (evidence: `app.py`)
- FastAPI application → Clusters: resolves cluster (evidence: `app.py`)
- Auth routes → Login and tokens: authenticates (evidence: `routes/auth_routes.py`)
- User routes → User management: manages users (evidence: `routes/user_routes.py`)
- User routes → Login and tokens: hashes passwords (evidence: `routes/user_routes.py`)
- Pipelines → Relational schema: queries pipeline table (evidence: `services/pipeline_services.py`)
- User management → Relational schema: queries user table (evidence: `services/user_services.py`)
- Login and tokens → Relational schema: loads user records (evidence: `services/login_services.py`)
- Namespaces → Relational schema: queries namespace tables (evidence: `services/namespace_services.py`)
- Deployments and YAML → Namespaces: gets namespace (evidence: `services/deployment_services.py`)
- Deployments and YAML → Clusters: gets cluster (evidence: `services/deployment_services.py`)
- Deployments and YAML → Azure blob upload: uploads generated YAML (evidence: `services/deployment_services.py`)
- Deployments and YAML → Relational schema: reads deployment data (evidence: `services/deployment_services.py`)
- Kubernetes services → Namespaces: gets namespace (evidence: `services/service_services.py`)
- Kubernetes services → Azure blob upload: uploads generated YAML (evidence: `services/service_services.py`)
- Alerts → Azure blob upload: uses blob storage (evidence: `services/alerts_services.py`)
- Audit activity → Relational schema: uses data models (evidence: `services/audit_activity_services.py`)
- Projects → Relational schema: uses data models (evidence: `services/project_services.py`)
- Repositories → Relational schema: uses data models (evidence: `services/repo_services.py`)
- Branches → Relational schema: uses data models (evidence: `services/branches_services.py`)
- Clusters → Relational schema: uses data models (evidence: `services/cluster_services.py`)
- Configuration → Relational schema: uses data models (evidence: `services/config_services.py`)
- Configuration → Azure blob upload: uses blob storage (evidence: `services/config_services.py`)
- Deployment config → Relational schema: uses data models (evidence: `services/dep_config_services.py`)
- Deployment config → Azure blob upload: uses blob storage (evidence: `services/dep_config_services.py`)
- Deployment config → Deployments and YAML: uses deployment services (evidence: `services/dep_config_services.py`)
- Service accounts → Relational schema: uses data models (evidence: `services/sa_services.py`)
- Shared logic → Relational schema: uses data models (evidence: `services/logics.py`)
