# sonarsource/helm-chart-sonarqube architecture

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

- Interactive diagram: https://gitdiagram.com/sonarsource/helm-chart-sonarqube
- Repository: https://github.com/sonarsource/helm-chart-sonarqube

## Overview

This repository packages SonarQube for Kubernetes as Helm charts. The operator’s main workflow is to choose and configure a chart, then use Helm to install SonarQube; the tree shows separate standard and DCE chart implementations, with templates for networking, storage, monitoring, and agent/MCP services. The README identifies `charts/sonarqube` as the actual chart, but no source excerpts or chart README contents were provided, so internal template relationships and runtime behavior are not asserted.

Main entry points: [`charts/sonarqube/Chart.yaml`](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/Chart.yaml) (Standard chart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_charts["Helm charts"]
  node_standard_chart["Standard chart<br/>[Chart.yaml]"]
  node_dce_chart["DCE chart<br/>[Chart.yaml]"]
end

subgraph group_runtime["SonarQube runtime"]
  node_standard_workloads["Standard workloads<br/>[sonarqube-sts.yaml]"]
  node_dce_workloads["DCE workloads"]
  node_standard_config["Runtime configuration<br/>[config.yaml]"]
  node_dce_config["Runtime configuration<br/>[config.yaml]"]
  node_persistence[("Persistent storage<br/>[pvc.yaml]")]
  node_dce_persistence[("Persistent storage<br/>[mcp-pvc.yaml]")]
end

subgraph group_operations["Operations and extensions"]
  node_exposure["Ingress and routes<br/>[ingress.yaml]"]
  node_dce_exposure["Ingress and routes<br/>[ingress.yaml]"]
  node_monitoring["Monitoring"]
  node_agent_services["Agent services"]
  node_dce_agent_services["Agent services"]
  node_mcp["MCP service<br/>[mcp.yaml]"]
end

subgraph group_distribution["Cloud distribution"]
  node_azure_distribution["Azure package<br/>[mainTemplate.json]"]
  node_gcp_distribution["Google Cloud package<br/>[schema.yaml]"]
end

node_operator(("Kubernetes operator"))

node_operator -->|"uses chart"| node_standard_chart

click node_standard_chart "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/Chart.yaml"
click node_dce_chart "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/Chart.yaml"
click node_standard_workloads "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/sonarqube-sts.yaml"
click node_dce_workloads "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/sonarqube-application.yaml"
click node_standard_config "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/config.yaml"
click node_dce_config "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/config.yaml"
click node_persistence "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/pvc.yaml"
click node_dce_persistence "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/mcp-pvc.yaml"
click node_exposure "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/ingress.yaml"
click node_dce_exposure "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/ingress.yaml"
click node_monitoring "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/prometheus-config.yaml"
click node_agent_services "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/agent-orchestrator.yaml"
click node_dce_agent_services "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/agent-orchestrator.yaml"
click node_mcp "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/mcp.yaml"
click node_azure_distribution "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/azure-marketplace-k8s-app/mainTemplate.json"
click node_gcp_distribution "https://github.com/sonarsource/helm-chart-sonarqube/blob/master/google-cloud-marketplace-k8s-app/schema.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_standard_chart,node_dce_chart toneBlue
class node_standard_workloads,node_dce_workloads,node_standard_config,node_dce_config,node_persistence,node_dce_persistence toneAmber
class node_exposure,node_dce_exposure,node_monitoring,node_agent_services,node_dce_agent_services,node_mcp toneMint
class node_azure_distribution,node_gcp_distribution toneRose
class node_operator toneIndigo
```

## Components

### Helm charts

- [Standard chart](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/Chart.yaml): `charts/sonarqube/Chart.yaml`
- [DCE chart](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/Chart.yaml): `charts/sonarqube-dce/Chart.yaml`

### SonarQube runtime

- [Standard workloads](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/sonarqube-sts.yaml): `charts/sonarqube/templates/sonarqube-sts.yaml`
- [DCE workloads](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/sonarqube-application.yaml): `charts/sonarqube-dce/templates/sonarqube-application.yaml`
- [Runtime configuration](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/config.yaml): `charts/sonarqube/templates/config.yaml`
- [Runtime configuration](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/config.yaml): `charts/sonarqube-dce/templates/config.yaml`
- [Persistent storage](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/pvc.yaml): `charts/sonarqube/templates/pvc.yaml`
- [Persistent storage](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/mcp-pvc.yaml): `charts/sonarqube-dce/templates/mcp-pvc.yaml`

### Operations and extensions

- [Ingress and routes](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/ingress.yaml): `charts/sonarqube/templates/ingress.yaml`
- [Ingress and routes](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/ingress.yaml): `charts/sonarqube-dce/templates/ingress.yaml`
- [Monitoring](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/prometheus-config.yaml): `charts/sonarqube/templates/prometheus-config.yaml`
- [Agent services](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/agent-orchestrator.yaml): `charts/sonarqube/templates/agent-orchestrator.yaml`
- [Agent services](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube-dce/templates/agent-orchestrator.yaml): `charts/sonarqube-dce/templates/agent-orchestrator.yaml`
- [MCP service](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/charts/sonarqube/templates/mcp.yaml): `charts/sonarqube/templates/mcp.yaml`

### Cloud distribution

- [Azure package](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/azure-marketplace-k8s-app/mainTemplate.json): `azure-marketplace-k8s-app/mainTemplate.json`
- [Google Cloud package](https://github.com/sonarsource/helm-chart-sonarqube/blob/master/google-cloud-marketplace-k8s-app/schema.yaml): `google-cloud-marketplace-k8s-app/schema.yaml`

### Other components

- **Kubernetes operator**

## Connections

- Kubernetes operator → Standard chart: uses chart (evidence: `README.md`)
