# leonsteinhaeuser/rh-ocp-examples architecture

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

- Interactive diagram: https://gitdiagram.com/leonsteinhaeuser/rh-ocp-examples
- Repository: https://github.com/leonsteinhaeuser/rh-ocp-examples

## Overview

This repository is a set of OpenShift deployment examples, not a single application. The user applies root-level management resources; Argo CD then manages example applications configured for basic manifests, progressive delivery, service mesh, or Helm. At runtime, the view service fetches a random number for the page and proxies status requests; the status service periodically checks configured external URLs. Deployment relationships are drawn at the documented directory level where individual application wiring was not excerpted.

Main entry points: [`services/view/main.go`](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/view/main.go) (View Service), [`management_app.yaml`](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/management_app.yaml) (Management Resources), [`ocp/deployments/basic_application.yaml`](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/basic_application.yaml) (Basic Applications), [`ocp/deployments/progressive_application.yaml`](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/progressive_application.yaml) (Progressive Applications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bootstrap["Management Bootstrap"]
  node_bootstrap_resources["Management Resources"]
end

subgraph group_deploy["Deployment Examples"]
  node_basic_apps["Basic Applications"]
  node_progressive_apps["Progressive Applications"]
  node_helm_apps["Helm Applications"]
  node_mesh_apps["Mesh Applications"]
  node_basic_manifests["Basic Manifests"]
  node_progressive_manifests["Progressive Manifests"]
  node_mesh_manifests["Service Mesh Manifests"]
  node_helm_charts["Helm Charts"]
end

subgraph group_runtime["Demo Services"]
  node_view_service["View Service<br/>[main.go]"]
  node_number_service["Number Service<br/>[main.go]"]
  node_status_service["Status Service<br/>[main.go]"]
end

subgraph group_platform["Cluster Platform"]
  node_argocd["OpenShift GitOps"]
  node_watched_services(("Watched HTTP Services"))
end

node_operator(("Cluster Operator"))

node_operator -->|"applies"| node_bootstrap_resources
node_bootstrap_resources -.->|"configures"| node_argocd
node_argocd -->|"manages"| node_basic_apps
node_argocd -->|"manages"| node_progressive_apps
node_argocd -->|"manages"| node_helm_apps
node_argocd -->|"manages"| node_mesh_apps
node_basic_apps -->|"deploys"| node_basic_manifests
node_progressive_apps -->|"deploys"| node_progressive_manifests
node_helm_apps -->|"uses charts"| node_helm_charts
node_mesh_apps -->|"deploys"| node_mesh_manifests
node_view_service -->|"requests number"| node_number_service
node_view_service -->|"proxies status"| node_status_service
node_status_service -->|"checks URLs"| node_watched_services

click node_bootstrap_resources "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/management_app.yaml"
click node_basic_apps "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/basic_application.yaml"
click node_progressive_apps "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/progressive_application.yaml"
click node_helm_apps "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/helm_basic_application_view.yaml"
click node_mesh_apps "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/manifests/servicemesh/application_view_service.yaml"
click node_basic_manifests "https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/basic"
click node_progressive_manifests "https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/progressive"
click node_mesh_manifests "https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/servicemesh"
click node_helm_charts "https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/helm-charts"
click node_view_service "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/view/main.go"
click node_number_service "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/number/main.go"
click node_status_service "https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/status/main.go"

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_bootstrap_resources toneBlue
class node_basic_apps,node_progressive_apps,node_helm_apps,node_mesh_apps,node_basic_manifests,node_progressive_manifests,node_mesh_manifests,node_helm_charts toneAmber
class node_view_service,node_number_service,node_status_service toneMint
class node_argocd,node_watched_services toneRose
class node_operator toneIndigo
```

## Components

### Management Bootstrap

- [Management Resources](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/management_app.yaml): `management_app.yaml`

### Deployment Examples

- [Basic Applications](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/basic_application.yaml): `ocp/deployments/basic_application.yaml`
- [Progressive Applications](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/progressive_application.yaml): `ocp/deployments/progressive_application.yaml`
- [Helm Applications](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/helm_basic_application_view.yaml): `ocp/deployments/helm_basic_application_view.yaml`
- [Mesh Applications](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/ocp/deployments/manifests/servicemesh/application_view_service.yaml): `ocp/deployments/manifests/servicemesh/application_view_service.yaml`
- [Basic Manifests](https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/basic): `ocp/deployments/manifests/basic`
- [Progressive Manifests](https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/progressive): `ocp/deployments/manifests/progressive`
- [Service Mesh Manifests](https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/deployments/manifests/servicemesh): `ocp/deployments/manifests/servicemesh`
- [Helm Charts](https://github.com/leonsteinhaeuser/rh-ocp-examples/tree/main/ocp/helm-charts): `ocp/helm-charts`

### Demo Services

- [View Service](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/view/main.go): `services/view/main.go`
- [Number Service](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/number/main.go): `services/number/main.go`
- [Status Service](https://github.com/leonsteinhaeuser/rh-ocp-examples/blob/main/services/status/main.go): `services/status/main.go`

### Cluster Platform

- **OpenShift GitOps**
- **Watched HTTP Services**

### Other components

- **Cluster Operator**

## Connections

- Cluster Operator → Management Resources: applies (evidence: `README.md`)
- Management Resources → OpenShift GitOps: configures
- OpenShift GitOps → Basic Applications: manages (evidence: `README.md`)
- OpenShift GitOps → Progressive Applications: manages (evidence: `README.md`)
- OpenShift GitOps → Helm Applications: manages (evidence: `README.md`)
- OpenShift GitOps → Mesh Applications: manages (evidence: `README.md`)
- Basic Applications → Basic Manifests: deploys (evidence: `README.md`)
- Progressive Applications → Progressive Manifests: deploys (evidence: `README.md`)
- Helm Applications → Helm Charts: uses charts (evidence: `README.md`)
- Mesh Applications → Service Mesh Manifests: deploys (evidence: `README.md`)
- View Service → Number Service: requests number (evidence: `services/view/main.go`)
- View Service → Status Service: proxies status (evidence: `services/view/main.go`)
- Status Service → Watched HTTP Services: checks URLs (evidence: `services/status/main.go`)
