# seokpan/seokpan-hybrid-gitops architecture

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

- Interactive diagram: https://gitdiagram.com/seokpan/seokpan-hybrid-gitops
- Repository: https://github.com/seokpan/seokpan-hybrid-gitops

## Overview

This repository is a GitOps source-of-truth for app and platform declarations targeting ROSA OpenShift and a separate on-premises Recovery environment. The principal workflow is to prepare environment-specific manifests, validate source inputs and ownership boundaries, then have a GitOps controller consume reviewed declarations; these tools do not deploy or prove runtime readiness. Separate branches cover lab Valkey preflight, cloud platform candidates, OCP registration, migration review, and offline Recovery bundle inventory. Some deployment relationships are documented in the README; unsampled manifest wiring is not inferred.

Main entry points: [`tools/render_release.py`](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/render_release.py) (Release render gate), [`apps/base`](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/base) (Common app base), [`tools/check_recovery_bundle.py`](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_recovery_bundle.py) (Bundle inventory check), [`apps/overlays/lab`](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/lab) (Lab overlay)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application declarations"]
  node_appbase["Common app base"]
  node_lab["Lab overlay"]
  node_cloud["Cloud overlay"]
  node_recoveryapp["Recovery overlay"]
end

subgraph group_control["GitOps control"]
  node_ocpdecl["OCP lab registration"]
  node_cloudcontract["Cloud platform contract"]
end

subgraph group_gates["Source validation"]
  node_releasegate["Release render gate<br/>[render_release.py]"]
  node_valkeygate["Valkey preflight"]
  node_registrationcheck["Registration checker"]
  node_migration["Migration review"]
end

subgraph group_recovery["Recovery preparation"]
  node_bundlecheck["Bundle inventory check"]
  node_migrationjob["Migration Job declaration<br/>[job.yaml]"]
  node_offlinebundle["Offline Recovery bundle"]
end

node_operator(("Engineer / operator"))
node_gitops(("GitOps controller"))
node_cluster(("Target cluster"))

node_operator -->|"defines"| node_appbase
node_appbase -->|"configures"| node_lab
node_appbase -->|"configures"| node_cloud
node_appbase -->|"configures"| node_recoveryapp
node_operator -->|"renders and checks"| node_releasegate
node_releasegate -.->|"validates inputs"| node_lab
node_releasegate -.->|"validates inputs"| node_cloud
node_releasegate -.->|"validates inputs"| node_recoveryapp
node_operator -->|"preflights"| node_valkeygate
node_operator -->|"checks declaration"| node_registrationcheck
node_registrationcheck -.->|"compares manifest"| node_ocpdecl
node_operator -->|"validates contract"| node_cloudcontract
node_cloudcontract -->|"selects source path"| node_cloud
node_operator -->|"requests sync"| node_gitops
node_gitops -->|"consumes declaration"| node_lab
node_operator -->|"reviews manifests"| node_migration
node_migration -.->|"checks Job"| node_migrationjob
node_operator -->|"provides artifacts"| node_offlinebundle
node_bundlecheck -->|"checks hashes and manifests"| node_offlinebundle
node_operator -->|"runs offline check"| node_bundlecheck
node_bundlecheck -->|"uses manifest blockers"| node_releasegate
node_gitops -.->|"syncs declarations"| node_cluster

click node_appbase "https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/base"
click node_lab "https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/lab"
click node_cloud "https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/cloud"
click node_recoveryapp "https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/recovery"
click node_ocpdecl "https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/clusters/ocp-lab"
click node_cloudcontract "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/cloud_platform_contract.py"
click node_releasegate "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/render_release.py"
click node_valkeygate "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/preflight_lab_valkey.py"
click node_registrationcheck "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_ocp_lab_registration.py"
click node_migration "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_migration_manifest.py"
click node_bundlecheck "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_recovery_bundle.py"
click node_migrationjob "https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/operations/ocp-lab/migration/job.yaml"

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_appbase,node_lab,node_cloud,node_recoveryapp toneBlue
class node_ocpdecl,node_cloudcontract toneAmber
class node_releasegate,node_valkeygate,node_registrationcheck,node_migration toneMint
class node_bundlecheck,node_migrationjob,node_offlinebundle toneRose
class node_operator,node_gitops,node_cluster toneIndigo
```

## Components

### Application declarations

- [Common app base](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/base): `apps/base`
- [Lab overlay](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/lab): `apps/overlays/lab`
- [Cloud overlay](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/cloud): `apps/overlays/cloud`
- [Recovery overlay](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/apps/overlays/recovery): `apps/overlays/recovery`

### GitOps control

- [OCP lab registration](https://github.com/seokpan/seokpan-hybrid-gitops/tree/main/clusters/ocp-lab): `clusters/ocp-lab`
- [Cloud platform contract](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/cloud_platform_contract.py): `tools/cloud_platform_contract.py`

### Source validation

- [Release render gate](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/render_release.py): `tools/render_release.py`
- [Valkey preflight](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/preflight_lab_valkey.py): `tools/preflight_lab_valkey.py`
- [Registration checker](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_ocp_lab_registration.py): `tools/check_ocp_lab_registration.py`
- [Migration review](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_migration_manifest.py): `tools/check_migration_manifest.py`

### Recovery preparation

- [Bundle inventory check](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/tools/check_recovery_bundle.py): `tools/check_recovery_bundle.py`
- [Migration Job declaration](https://github.com/seokpan/seokpan-hybrid-gitops/blob/main/operations/ocp-lab/migration/job.yaml): `operations/ocp-lab/migration/job.yaml`
- **Offline Recovery bundle**

### Other components

- **Engineer / operator**
- **GitOps controller**
- **Target cluster**

## Connections

- Engineer / operator → Common app base: defines (evidence: `README.md`)
- Common app base → Lab overlay: configures (evidence: `README.md`)
- Common app base → Cloud overlay: configures (evidence: `README.md`)
- Common app base → Recovery overlay: configures (evidence: `README.md`)
- Engineer / operator → Release render gate: renders and checks (evidence: `tools/render_release.py`)
- Release render gate → Lab overlay: validates inputs
- Release render gate → Cloud overlay: validates inputs
- Release render gate → Recovery overlay: validates inputs
- Engineer / operator → Valkey preflight: preflights (evidence: `tools/preflight_lab_valkey.py`)
- Engineer / operator → Registration checker: checks declaration (evidence: `tools/check_ocp_lab_registration.py`)
- Registration checker → OCP lab registration: compares manifest
- Engineer / operator → Cloud platform contract: validates contract (evidence: `tools/cloud_platform_contract.py`)
- Cloud platform contract → Cloud overlay: selects source path (evidence: `tools/cloud_platform_contract.py`)
- Engineer / operator → GitOps controller: requests sync (evidence: `README.md`)
- GitOps controller → Lab overlay: consumes declaration
- Engineer / operator → Migration review: reviews manifests (evidence: `tools/check_migration_manifest.py`)
- Migration review → Migration Job declaration: checks Job
- Engineer / operator → Offline Recovery bundle: provides artifacts
- Bundle inventory check → Offline Recovery bundle: checks hashes and manifests (evidence: `tools/check_recovery_bundle.py`)
- Engineer / operator → Bundle inventory check: runs offline check (evidence: `tools/check_recovery_bundle.py`)
- Bundle inventory check → Release render gate: uses manifest blockers (evidence: `tools/check_recovery_bundle.py`)
- GitOps controller → Target cluster: syncs declarations
