# pradeepa-pbm/argocd-example-apps architecture

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

- Interactive diagram: https://gitdiagram.com/pradeepa-pbm/argocd-example-apps
- Repository: https://github.com/pradeepa-pbm/argocd-example-apps

## Overview

#### Purpose and Consumption Model
This is a GitOps example catalog for Argo CD, not a standalone application. Argo CD is the runtime entry point: it registers repository paths as Applications or ApplicationSets, renders their declared configuration format, and reconciles resulting Kubernetes resources to target clusters.

Primary entry points are independently deployable directories, plus the app-of-apps chart at `apps/Chart.yaml` and `apps/templates/applications.yaml`.

#### Application Aggregation
The `apps` Helm chart defines an Argo CD “app composed of other apps” pattern. Rendering `apps/templates/applications.yaml` from `apps/values.yaml` produces child Argo CD Application resources, creating a control-plane boundary between portfolio orchestration and individual workload definitions.

#### ApplicationSet Generation
`applicationset/` demonstrates dynamic Application creation via generator inputs rather than static Application definitions. Generator variants include cluster, Git discovery, list, matrix, merge, and pull-request sources: `applicationset/cluster.yaml`, `applicationset/git.yaml`, and `applicationset/pull-request.yaml`. It also covers progressive rollout of generated applications and namespace-scoped ApplicationSets in `applicationset/progressive-sync.yaml` and `applicationset/appset-any-ns-team-platform.yaml`.

#### Manifest Rendering Variants
The same guestbook-style workload is expressed through several Argo CD-supported source/rendering boundaries:
- Plain Kubernetes YAML: `guestbook/guestbook-ui-deployment.yaml`, `guestbook/guestbook-ui-svc.yaml`
- Helm: `helm-guestbook/Chart.yaml`, `helm-guestbook/templates/deployment.yaml`, `helm-guestbook/values-production.yaml`
- Kustomize: `kustomize-guestbook/kustomization.yaml`, `kustomize-guestbook/guestbook-ui-deployment.yaml`
- Jsonnet, including top-level arguments: `jsonnet-guestbook/guestbook-ui.jsonnet`, `jsonnet-guestbook-tla/guestbook-ui.jsonnet`

Argo CD’s repository/rendering service is the key boundary: source files are transformed into Kubernetes manifests before cluster reconciliation.

#### Helm and Plugin-Based Composition
Helm examples cover native charts, hooks, and upstream dependency customization: `helm-dependency/Chart.yaml`, `helm-dependency/values.yaml`, and `helm-hooks/manifests.yaml`. Config-management plugin examples delegate manifest generation to external tooling installed in the Argo CD repo-server environment: `plugins/kasane/Kasanefile`, `plugins/kasane/patch.jsonnet`, `plugins/nix/flake.nix`, and `plugins/kustomized-helm/kustomization.yaml`.

This makes plugin binaries and their runtime dependencies operational infrastructure, rather than application-container dependencies.

#### Deployment and Synchronization Control
Argo CD sync lifecycle behavior is modeled as Kubernetes annotations/hooks and ordering metadata. `pre-post-sync/pre-sync-job.yaml` and `pre-post-sync/post-sync-job.yaml` bracket workload reconciliation with Jobs. `sync-waves/manifests.yaml` demonstrates ordered sync stages. Blue-green rollout delegates traffic and replica transition control to the Argo Rollouts controller through `blue-green/templates/rollout.yaml` and `blue-green/templates/services.yaml`; this requires Argo Rollouts CRDs/controller in the destination cluster.

#### Workload Topologies
The repository ranges from lightweight config-only apps (`lightweight/app-a/configmap.yaml`) to the Sock Shop microservices system. Sock Shop’s Kustomize entry point, `sock-shop/kustomization.yaml`, assembles deployments, services, ingress, databases, and RabbitMQ from `sock-shop/base/`. Its external-facing boundary is `sock-shop/base/front-end-ingress.yaml`; internal service-to-service and stateful dependencies are represented by resources such as `sock-shop/base/catalogue-dep.yaml` and `sock-shop/base/rabbitmq-dep.yaml`.

Core runtimes are Kubernetes, Argo CD, Helm, Kustomize, and Jsonnet; optional external control-plane integrations include Git hosting/PR APIs for the pull-request ApplicationSet generator and Argo Rollouts for progressive delivery.

Main entry points: [`apps/templates/applications.yaml`](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/templates/applications.yaml) (Child Application template), [`pre-post-sync/pre-sync-job.yaml`](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/pre-post-sync/pre-sync-job.yaml) (Sync lifecycle controls), [`applicationset/pull-request.yaml`](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/pull-request.yaml) (Pull-request generator), [`apps/Chart.yaml`](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/Chart.yaml) (App-of-apps chart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["GitOps catalog"]
  node_apps_chart["App-of-apps chart<br/>Helm chart<br/>[Chart.yaml]"]
  node_apps_templates["Child Application template<br/>Helm template<br/>[applications.yaml]"]
  node_apps_values["Application portfolio<br/>Helm values<br/>[values.yaml]"]
  node_applicationsets["ApplicationSet generators<br/>ApplicationSet manifests<br/>[cluster.yaml]"]
  node_git_generator["Git discovery generator<br/>ApplicationSet manifest<br/>[git.yaml]"]
  node_pr_generator["Pull-request generator<br/>ApplicationSet manifest<br/>[pull-request.yaml]"]
  node_progressive_appsets["Progressive and scoped AppSets<br/>ApplicationSet manifests"]
  node_render_sources["Guestbook source variants<br/>YAML, Helm, Kustomize, Jsonnet"]
  node_helm_composition["Helm composition examples<br/>Helm charts and hooks<br/>[Chart.yaml]"]
  node_plugins{{"Config-management plugins<br/>External renderers"}}
  node_sync_controls["Sync lifecycle controls<br/>Hooks and waves<br/>[pre-sync-job.yaml]"]
  node_sock_shop["Sock Shop topology<br/>Kustomize application<br/>[kustomization.yaml]"]
end

subgraph group_argocd["Argo CD control plane"]
  node_argo_cd{{"Argo CD<br/>GitOps controller"}}
  node_repo_server{{"Repository rendering service<br/>Source renderer"}}
  node_applications["Argo CD Applications<br/>Desired-state bindings"]
end

subgraph group_cluster["Destination cluster"]
  node_kubernetes[("Kubernetes resources<br/>Reconciled workloads")]
  node_rollouts{{"Argo Rollouts<br/>Progressive delivery controller<br/>[rollout.yaml]"}}
end

node_git_pr_api(("Git hosting PR API<br/>External generator source"))

node_apps_values -->|"configures"| node_apps_templates
node_apps_chart -->|"contains"| node_apps_templates
node_apps_templates -->|"renders child resources"| node_applications
node_applicationsets -->|"registered as"| node_argo_cd
node_git_generator -->|"registered as"| node_argo_cd
node_pr_generator -->|"registered as"| node_argo_cd
node_progressive_appsets -->|"registered as"| node_argo_cd
node_git_pr_api -.->|"supplies PRs"| node_pr_generator
node_argo_cd -->|"generates and manages"| node_applications
node_applications -->|"select source paths"| node_repo_server
node_render_sources -->|"rendered from"| node_repo_server
node_helm_composition -->|"rendered from"| node_repo_server
node_plugins -->|"extends rendering"| node_repo_server
node_sync_controls -->|"rendered with"| node_repo_server
node_sock_shop -->|"assembled by"| node_repo_server
node_repo_server -->|"reconciled manifests"| node_kubernetes
node_sync_controls -.->|"hooks and ordering"| node_kubernetes
node_rollouts -->|"manages blue-green rollout"| node_kubernetes

click node_apps_chart "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/Chart.yaml"
click node_apps_templates "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/templates/applications.yaml"
click node_apps_values "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/values.yaml"
click node_applicationsets "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/cluster.yaml"
click node_git_generator "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/git.yaml"
click node_pr_generator "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/pull-request.yaml"
click node_progressive_appsets "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/progressive-sync.yaml"
click node_render_sources "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/guestbook/guestbook-ui-deployment.yaml"
click node_helm_composition "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/helm-dependency/Chart.yaml"
click node_plugins "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/plugins/kasane/Kasanefile"
click node_sync_controls "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/pre-post-sync/pre-sync-job.yaml"
click node_sock_shop "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/sock-shop/kustomization.yaml"
click node_rollouts "https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/blue-green/templates/rollout.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_apps_chart,node_apps_templates,node_apps_values,node_applicationsets,node_git_generator,node_pr_generator,node_progressive_appsets,node_render_sources,node_helm_composition,node_plugins,node_sync_controls,node_sock_shop toneBlue
class node_argo_cd,node_repo_server,node_applications toneAmber
class node_kubernetes,node_rollouts toneMint
class node_git_pr_api toneNeutral
```

## Components

### GitOps catalog

Deployable examples and composition sources.

- [App-of-apps chart](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/Chart.yaml): Helm chart · Defines the portfolio-level application composition. · `apps/Chart.yaml`
- [Child Application template](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/templates/applications.yaml): Helm template · Renders one Argo CD Application per configured child. · `apps/templates/applications.yaml`
- [Application portfolio](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/apps/values.yaml): Helm values · Supplies the child application definitions. · `apps/values.yaml`
- [ApplicationSet generators](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/cluster.yaml): ApplicationSet manifests · Creates dynamic Applications from cluster, Git, list, matrix, merge, and PR inputs. · `applicationset/cluster.yaml`
- [Git discovery generator](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/git.yaml): ApplicationSet manifest · `applicationset/git.yaml`
- [Pull-request generator](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/pull-request.yaml): ApplicationSet manifest · Uses Git hosting pull-request APIs as generator input. · `applicationset/pull-request.yaml`
- [Progressive and scoped AppSets](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/applicationset/progressive-sync.yaml): ApplicationSet manifests · Shows progressive sync and namespace-scoped generation. · `applicationset/progressive-sync.yaml`
- [Guestbook source variants](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/guestbook/guestbook-ui-deployment.yaml): YAML, Helm, Kustomize, Jsonnet · Equivalent workloads authored in Argo CD-supported formats. · `guestbook/guestbook-ui-deployment.yaml`
- [Helm composition examples](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/helm-dependency/Chart.yaml): Helm charts and hooks · Covers dependencies, value overrides, and Helm hooks. · `helm-dependency/Chart.yaml`
- [Config-management plugins](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/plugins/kasane/Kasanefile): External renderers · Repo-server plugins delegate generation to installed tooling. · `plugins/kasane/Kasanefile`
- [Sync lifecycle controls](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/pre-post-sync/pre-sync-job.yaml): Hooks and waves · Pre/post sync Jobs and ordered reconciliation metadata. · `pre-post-sync/pre-sync-job.yaml`
- [Sock Shop topology](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/sock-shop/kustomization.yaml): Kustomize application · Assembles microservices, ingress, databases, and RabbitMQ. · `sock-shop/kustomization.yaml`

### Argo CD control plane

Registers sources, generates Applications, renders manifests, and reconciles clusters.

- **Argo CD**: GitOps controller · Application and ApplicationSet control plane.
- **Repository rendering service**: Source renderer · Renders repository sources into Kubernetes manifests.
- **Argo CD Applications**: Desired-state bindings · Connect repository paths to destination clusters.

### Destination cluster

Kubernetes resources and optional rollout controller.

- **Kubernetes resources**: Reconciled workloads · Deployments, Services, Jobs, ingress, and stateful dependencies.
- [Argo Rollouts](https://github.com/pradeepa-pbm/argocd-example-apps/blob/master/blue-green/templates/rollout.yaml): Progressive delivery controller · Required for blue-green traffic and replica transitions. · `blue-green/templates/rollout.yaml`

### Other components

- **Git hosting PR API**: External generator source

## Connections

- Application portfolio → Child Application template: configures
- App-of-apps chart → Child Application template: contains
- Child Application template → Argo CD Applications: renders child resources
- ApplicationSet generators → Argo CD: registered as
- Git discovery generator → Argo CD: registered as
- Pull-request generator → Argo CD: registered as
- Progressive and scoped AppSets → Argo CD: registered as
- Git hosting PR API → Pull-request generator: supplies PRs
- Argo CD → Argo CD Applications: generates and manages
- Argo CD Applications → Repository rendering service: select source paths
- Guestbook source variants → Repository rendering service: rendered from
- Helm composition examples → Repository rendering service: rendered from
- Config-management plugins → Repository rendering service: extends rendering
- Sync lifecycle controls → Repository rendering service: rendered with
- Sock Shop topology → Repository rendering service: assembled by
- Repository rendering service → Kubernetes resources: reconciled manifests
- Sync lifecycle controls → Kubernetes resources: hooks and ordering
- Argo Rollouts → Kubernetes resources: manages blue-green rollout
