Skip to content

Remove the bundled csi-driver-host-path and its dangling StorageClass - #465

Open
boddumanohar wants to merge 1 commit into
mainfrom
remove-csi-hostpath-driver
Open

boddumanohar wants to merge 1 commit into
mainfrom
remove-csi-hostpath-driver

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

Summary

  • Removes templates/controlplane_csi-hostpath.yaml — the bundled upstream csi-driver-host-path project (CSIDriver, ServiceAccount, ClusterRole/Binding, DaemonSet), gated by controlplane.csiHostpathDriver.enabled (defaults false), plus the matching controlplane.csiHostpathDriver values block (5 image references).
  • Removes templates/controlplane_storageclass.yaml — a local-hostpath StorageClass for provisioner: hostpath.csi.k8s.io, gated only by .Values.operator.enabled (true by default), independent of csiHostpathDriver.enabled. This rendered on every default install regardless of whether the driver providing that provisioner was ever installed — a StorageClass pointing at a nonexistent CSI driver by default. Removed together with the driver rather than left dangling.

Kept

controlplane.storageclass.name / .allowedTopologyZones — FDB's and Thanos's PVCs (controlplane_foundationdb.yaml:343-344, controlplane_deploy.yaml:1283-1284,1293-1294) read these as a generic "which StorageClass should these PVCs use" override, unrelated to whether this specific driver exists.

Test plan

  • helm lint helm-charts/charts/simplyblock-operator/
  • helm template renders cleanly with defaults and with operator.enabled=true --set controlplane.observability.enabled=true
  • Confirmed no remaining references anywhere in the chart to csiHostpathDriver, hostpath.csi.k8s.io, csi-hostpathplugin-sa, or local-hostpath
  • House-style quality gate run on the diff — the pre-existing findings in values.yaml are outside this diff (pure deletions only), unrelated debt

🤖 Generated with Claude Code

controlplane.csiHostpathDriver installs the upstream csi-driver-host-path
project (CSIDriver, RBAC, DaemonSet) but defaults to disabled and has no
caller in this chart depending on it.

templates/controlplane_storageclass.yaml created a "local-hostpath"
StorageClass for provisioner hostpath.csi.k8s.io gated only on
operator.enabled (true by default) — independently of whether the driver
providing that provisioner was ever installed, so it rendered a
StorageClass with no matching CSI driver on a default install. Removed
together with the driver rather than left dangling.

controlplane.storageclass.name/allowedTopologyZones are kept: FDB's and
Thanos's PVCs read them as a generic StorageClass override unrelated to
this driver.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@noctarius
noctarius force-pushed the main branch 2 times, most recently from 60dceb7 to fbaabe4 Compare September 9, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant