# dell/csi-powerstore architecture

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

- Interactive diagram: https://gitdiagram.com/dell/csi-powerstore
- Repository: https://github.com/dell/csi-powerstore

## Overview

PowerStore CSI is a Kubernetes storage driver: its controller provisions and manages array-backed volumes, while node services stage and publish them to workloads. Separate branches provide group snapshots, replication extensions, array-event monitoring, and Prometheus metrics. Startup and several subsystem relationships are visible in the excerpts; unsampled routes and internal calls are omitted rather than inferred.

Main entry points: [`cmd/csi-powerstore/main.go`](https://github.com/dell/csi-powerstore/blob/main/cmd/csi-powerstore/main.go) (Driver startup), [`pkg/node/node.go`](https://github.com/dell/csi-powerstore/blob/main/pkg/node/node.go) (Node CSI), [`pkg/array/array.go`](https://github.com/dell/csi-powerstore/blob/main/pkg/array/array.go) (PowerStore array client), [`pkg/controller/controller.go`](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/controller.go) (Controller CSI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Driver startup"]
  node_main["Driver startup<br/>[main.go]"]
  node_identifiers["Configuration and identity<br/>[identifiers.go]"]
end

subgraph group_control["CSI control plane"]
  node_controller["Controller CSI<br/>[controller.go]"]
  node_creator["Volume creation<br/>[creator.go]"]
end

subgraph group_node["Node volume lifecycle"]
  node_nodeapi["Node CSI<br/>[node.go]"]
  node_stager["Volume staging<br/>[stager.go]"]
  node_fscheck["Filesystem checks<br/>[fscheck.go]"]
  node_reclaim["Space reclamation"]
  node_connectivity["Array connectivity"]
end

subgraph group_arrayops["Array and extensions"]
  node_array["PowerStore array client<br/>[array.go]"]
  node_groupsvc["Group snapshot service<br/>[groupcontroller.go]"]
  node_groupsnap["Group snapshot manager"]
  node_extensions["CSI extensions"]
  node_replication["Replication operations"]
  node_replicationcore["Replication helpers<br/>[replication.go]"]
end

subgraph group_observability["Monitoring and metrics"]
  node_monitor["Array event monitor<br/>[event.go]"]
  node_metricsruntime["Metrics runtime<br/>[runtime.go]"]
  node_collectors["Metrics collectors<br/>[manager.go]"]
  node_metricsserver["Prometheus endpoint<br/>[server.go]"]
  node_interceptor["CSI metrics interceptor"]
end

node_operator(("Kubernetes operator"))

node_operator -->|"starts driver"| node_main
node_main -->|"initializes service"| node_controller
node_main -->|"initializes service"| node_nodeapi
node_main -->|"initializes service"| node_groupsvc
node_main -->|"configures service"| node_monitor
node_main -->|"starts collectors"| node_metricsruntime
node_main -->|"starts endpoint"| node_metricsserver
node_main -->|"reads configuration"| node_identifiers
node_controller -->|"creates volumes"| node_creator
node_controller -->|"uses array client"| node_array
node_nodeapi -->|"uses array client"| node_array
node_nodeapi -->|"stages volumes"| node_stager
node_nodeapi -->|"checks filesystem"| node_fscheck
node_nodeapi -->|"reclaims space"| node_reclaim
node_nodeapi -->|"checks connectivity"| node_connectivity
node_groupsvc -->|"delegates snapshots"| node_groupsnap
node_groupsnap -->|"creates array snapshots"| node_array
node_extensions -->|"uses array client"| node_array
node_replication -->|"uses array client"| node_array
node_replication -->|"uses operations"| node_replicationcore
node_monitor -->|"reads array alerts"| node_array
node_metricsruntime -->|"registers collectors"| node_collectors
node_metricsruntime -->|"configures runtime"| node_metricsserver
node_interceptor -->|"intercepts requests"| node_controller

click node_main "https://github.com/dell/csi-powerstore/blob/main/cmd/csi-powerstore/main.go"
click node_controller "https://github.com/dell/csi-powerstore/blob/main/pkg/controller/controller.go"
click node_creator "https://github.com/dell/csi-powerstore/blob/main/pkg/controller/creator.go"
click node_nodeapi "https://github.com/dell/csi-powerstore/blob/main/pkg/node/node.go"
click node_stager "https://github.com/dell/csi-powerstore/blob/main/pkg/node/stager.go"
click node_fscheck "https://github.com/dell/csi-powerstore/blob/main/pkg/node/fscheck.go"
click node_reclaim "https://github.com/dell/csi-powerstore/blob/main/pkg/node/space_reclamation.go"
click node_connectivity "https://github.com/dell/csi-powerstore/blob/main/pkg/node/node_connectivity_checker.go"
click node_array "https://github.com/dell/csi-powerstore/blob/main/pkg/array/array.go"
click node_groupsvc "https://github.com/dell/csi-powerstore/blob/main/pkg/groupcontroller/groupcontroller.go"
click node_groupsnap "https://github.com/dell/csi-powerstore/blob/main/pkg/groupcontroller/volumegroupsnapshot.go"
click node_extensions "https://github.com/dell/csi-powerstore/blob/main/pkg/controller/csi_extension_server.go"
click node_replication "https://github.com/dell/csi-powerstore/blob/main/pkg/controller/csiaddons_replication.go"
click node_replicationcore "https://github.com/dell/csi-powerstore/blob/main/pkg/controller/replication.go"
click node_monitor "https://github.com/dell/csi-powerstore/blob/main/pkg/monitor/event.go"
click node_metricsruntime "https://github.com/dell/csi-powerstore/blob/main/pkg/metricsruntime/runtime.go"
click node_collectors "https://github.com/dell/csi-powerstore/blob/main/pkg/collectors/manager.go"
click node_metricsserver "https://github.com/dell/csi-powerstore/blob/main/pkg/metrics/server.go"
click node_interceptor "https://github.com/dell/csi-powerstore/blob/main/pkg/interceptors/metrics_interceptor.go"
click node_identifiers "https://github.com/dell/csi-powerstore/blob/main/pkg/identifiers/identifiers.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_main,node_identifiers toneBlue
class node_controller,node_creator toneAmber
class node_nodeapi,node_stager,node_fscheck,node_reclaim,node_connectivity toneMint
class node_array,node_groupsvc,node_groupsnap,node_extensions,node_replication,node_replicationcore toneRose
class node_monitor,node_metricsruntime,node_collectors,node_metricsserver,node_interceptor,node_operator toneIndigo
```

## Components

### Driver startup

- [Driver startup](https://github.com/dell/csi-powerstore/blob/main/cmd/csi-powerstore/main.go): `cmd/csi-powerstore/main.go`
- [Configuration and identity](https://github.com/dell/csi-powerstore/blob/main/pkg/identifiers/identifiers.go): `pkg/identifiers/identifiers.go`

### CSI control plane

- [Controller CSI](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/controller.go): `pkg/controller/controller.go`
- [Volume creation](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/creator.go): `pkg/controller/creator.go`

### Node volume lifecycle

- [Node CSI](https://github.com/dell/csi-powerstore/blob/main/pkg/node/node.go): `pkg/node/node.go`
- [Volume staging](https://github.com/dell/csi-powerstore/blob/main/pkg/node/stager.go): `pkg/node/stager.go`
- [Filesystem checks](https://github.com/dell/csi-powerstore/blob/main/pkg/node/fscheck.go): `pkg/node/fscheck.go`
- [Space reclamation](https://github.com/dell/csi-powerstore/blob/main/pkg/node/space_reclamation.go): `pkg/node/space_reclamation.go`
- [Array connectivity](https://github.com/dell/csi-powerstore/blob/main/pkg/node/node_connectivity_checker.go): `pkg/node/node_connectivity_checker.go`

### Array and extensions

- [PowerStore array client](https://github.com/dell/csi-powerstore/blob/main/pkg/array/array.go): `pkg/array/array.go`
- [Group snapshot service](https://github.com/dell/csi-powerstore/blob/main/pkg/groupcontroller/groupcontroller.go): `pkg/groupcontroller/groupcontroller.go`
- [Group snapshot manager](https://github.com/dell/csi-powerstore/blob/main/pkg/groupcontroller/volumegroupsnapshot.go): `pkg/groupcontroller/volumegroupsnapshot.go`
- [CSI extensions](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/csi_extension_server.go): `pkg/controller/csi_extension_server.go`
- [Replication operations](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/csiaddons_replication.go): `pkg/controller/csiaddons_replication.go`
- [Replication helpers](https://github.com/dell/csi-powerstore/blob/main/pkg/controller/replication.go): `pkg/controller/replication.go`

### Monitoring and metrics

- [Array event monitor](https://github.com/dell/csi-powerstore/blob/main/pkg/monitor/event.go): `pkg/monitor/event.go`
- [Metrics runtime](https://github.com/dell/csi-powerstore/blob/main/pkg/metricsruntime/runtime.go): `pkg/metricsruntime/runtime.go`
- [Metrics collectors](https://github.com/dell/csi-powerstore/blob/main/pkg/collectors/manager.go): `pkg/collectors/manager.go`
- [Prometheus endpoint](https://github.com/dell/csi-powerstore/blob/main/pkg/metrics/server.go): `pkg/metrics/server.go`
- [CSI metrics interceptor](https://github.com/dell/csi-powerstore/blob/main/pkg/interceptors/metrics_interceptor.go): `pkg/interceptors/metrics_interceptor.go`

### Other components

- **Kubernetes operator**

## Connections

- Kubernetes operator → Driver startup: starts driver
- Driver startup → Controller CSI: initializes service (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Node CSI: initializes service (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Group snapshot service: initializes service (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Array event monitor: configures service (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Metrics runtime: starts collectors (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Prometheus endpoint: starts endpoint (evidence: `cmd/csi-powerstore/main.go`)
- Driver startup → Configuration and identity: reads configuration (evidence: `cmd/csi-powerstore/main.go`)
- Controller CSI → Volume creation: creates volumes (evidence: `pkg/controller/controller.go`)
- Controller CSI → PowerStore array client: uses array client (evidence: `pkg/controller/controller.go`)
- Node CSI → PowerStore array client: uses array client (evidence: `pkg/node/node.go`)
- Node CSI → Volume staging: stages volumes (evidence: `pkg/node/node.go`)
- Node CSI → Filesystem checks: checks filesystem (evidence: `pkg/node/fscheck.go`)
- Node CSI → Space reclamation: reclaims space (evidence: `pkg/node/space_reclamation.go`)
- Node CSI → Array connectivity: checks connectivity (evidence: `pkg/node/node_connectivity_checker.go`)
- Group snapshot service → Group snapshot manager: delegates snapshots (evidence: `pkg/groupcontroller/groupcontroller.go`)
- Group snapshot manager → PowerStore array client: creates array snapshots (evidence: `pkg/groupcontroller/volumegroupsnapshot.go`)
- CSI extensions → PowerStore array client: uses array client (evidence: `pkg/controller/csi_extension_server.go`)
- Replication operations → PowerStore array client: uses array client (evidence: `pkg/controller/csiaddons_replication.go`)
- Replication operations → Replication helpers: uses operations (evidence: `pkg/controller/csiaddons_replication.go`)
- Array event monitor → PowerStore array client: reads array alerts (evidence: `pkg/monitor/event.go`)
- Metrics runtime → Metrics collectors: registers collectors (evidence: `pkg/metricsruntime/runtime.go`)
- Metrics runtime → Prometheus endpoint: configures runtime
- CSI metrics interceptor → Controller CSI: intercepts requests (evidence: `pkg/interceptors/metrics_interceptor.go`)
