Skip to content

operator: register every cluster of the control plane with the CSI driver - #619

Merged
schmidt-scaled merged 2 commits into
integrate_csi_addonsfrom
feat/csi-auto-cross-registration
Oct 3, 2026
Merged

schmidt-scaled merged 2 commits into
integrate_csi_addonsfrom
feat/csi-auto-cross-registration

Conversation

@schmidt-scaled

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • unit: mergeCSICredentials — registers peers, keeps another local entry, prunes stale foreign entries, keeps a recorded secret the list withholds, own-only without the list
  • realbed: after the operator upgrade both sites' secrets carry both clusters (own local) without deploy.sh csi

🤖 Generated with Claude Code

michixs and others added 2 commits October 2, 2026 23:39
…iver

A volume replicated to another site is promoted there under a PV that
keeps the handle it was created with, which names the cluster the volume
came from: that site's driver must be able to reach the control plane for
that cluster too. Until now each operator wrote only its own cluster into
simplyblock-csi-secret-v2, and the cross-registration was a manual merge
of the sites' secrets (realbed deploy.sh csi).

Each operator now writes, next to its own cluster (marked local, the flag
the driver's replication-chain resolver keys on), one entry per other
cluster the control plane lists, with the secret the list carries -- empty
when the control plane withholds it, and the driver then authenticates
with its API token. Entries another operator on the same Kubernetes
cluster marked local are left alone; a foreign entry whose cluster the
control plane no longer lists is dropped. The own entry never waits on
the list: when the list cannot be read, peers are registered on the next
sync.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…/simplyblock-operator into feat/csi-auto-cross-registration

# Conflicts:
#	operator/internal/controllers/cluster/storagecluster_controller.go
@schmidt-scaled
schmidt-scaled merged commit 287cd39 into integrate_csi_addons Oct 3, 2026
23 checks passed
@schmidt-scaled
schmidt-scaled deleted the feat/csi-auto-cross-registration branch October 3, 2026 17:24
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.

2 participants