How dell/csi-powerstore works
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: main.go Driver startup · node.go Node CSI · array.go PowerStore array client · controller.go Controller CSI
Components 21
Driver startup
- Driver startup
cmd/csi-powerstore/main.go - Configuration and identity
pkg/identifiers/identifiers.go
CSI control plane
- Controller CSI
pkg/controller/controller.go - Volume creation
pkg/controller/creator.go
Node volume lifecycle
- Node CSI
pkg/node/node.go - Volume staging
pkg/node/stager.go - Filesystem checks
pkg/node/fscheck.go - Space reclamation
pkg/node/space_reclamation.go - Array connectivity
pkg/node/node_connectivity_checker.go
Array and extensions
- PowerStore array client
pkg/array/array.go - Group snapshot service
pkg/groupcontroller/groupcontroller.go - Group snapshot manager
pkg/groupcontroller/volumegroupsnapshot.go - CSI extensions
pkg/controller/csi_extension_server.go - Replication operations
pkg/controller/csiaddons_replication.go - Replication helpers
pkg/controller/replication.go
Monitoring and metrics
- Array event monitor
pkg/monitor/event.go - Metrics runtime
pkg/metricsruntime/runtime.go - Metrics collectors
pkg/collectors/manager.go - Prometheus endpoint
pkg/metrics/server.go - CSI metrics interceptor
pkg/interceptors/metrics_interceptor.go
Other components
- Kubernetes operator
Connections 24
- Kubernetes operator → Driver startup: starts driver
- Driver startup → Controller CSI: initializes service
cmd/csi-powerstore/main.go - Driver startup → Node CSI: initializes service
cmd/csi-powerstore/main.go - Driver startup → Group snapshot service: initializes service
cmd/csi-powerstore/main.go - Driver startup → Array event monitor: configures service
cmd/csi-powerstore/main.go - Driver startup → Metrics runtime: starts collectors
cmd/csi-powerstore/main.go - Driver startup → Prometheus endpoint: starts endpoint
cmd/csi-powerstore/main.go - Driver startup → Configuration and identity: reads configuration
cmd/csi-powerstore/main.go - Controller CSI → Volume creation: creates volumes
pkg/controller/controller.go - Controller CSI → PowerStore array client: uses array client
pkg/controller/controller.go - Node CSI → PowerStore array client: uses array client
pkg/node/node.go - Node CSI → Volume staging: stages volumes
pkg/node/node.go - Node CSI → Filesystem checks: checks filesystem
pkg/node/fscheck.go - Node CSI → Space reclamation: reclaims space
pkg/node/space_reclamation.go - Node CSI → Array connectivity: checks connectivity
pkg/node/node_connectivity_checker.go - Group snapshot service → Group snapshot manager: delegates snapshots
pkg/groupcontroller/groupcontroller.go - Group snapshot manager → PowerStore array client: creates array snapshots
pkg/groupcontroller/volumegroupsnapshot.go - CSI extensions → PowerStore array client: uses array client
pkg/controller/csi_extension_server.go - Replication operations → PowerStore array client: uses array client
pkg/controller/csiaddons_replication.go - Replication operations → Replication helpers: uses operations
pkg/controller/csiaddons_replication.go - Array event monitor → PowerStore array client: reads array alerts
pkg/monitor/event.go - Metrics runtime → Metrics collectors: registers collectors
pkg/metricsruntime/runtime.go - Metrics runtime → Prometheus endpoint: configures runtime
- CSI metrics interceptor → Controller CSI: intercepts requests
pkg/interceptors/metrics_interceptor.go