Skip to content

fix(operator): name the pool node label storage-pool, matching the kind - #507

Merged
noctarius merged 1 commit into
mainfrom
fix/pool-label-storage-pool-prefix
Sep 9, 2026
Merged

noctarius merged 1 commit into
mainfrom
fix/pool-label-storage-pool-prefix

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

Follow-up to #505. The label identifying a StoragePool on its allowed nodes goes from storage.simplyblock.io/pool.<uuid> to storage.simplyblock.io/storage-pool.<uuid>, spelling the segment the way the kind is spelled.

name=41/63  headroom=22  storage.simplyblock.io/pool.<uuid>
name=49/63  headroom=14  storage.simplyblock.io/storage-pool.<uuid>

Fixed length either way, since it keys off the UUID — nothing about the limit is at stake. Also accepted by a real API server (server-side dry-run on a live cluster).

One line of code: both consumers read the prefix from kube.LabelPoolPrefix, so the CSI node plugin's scan and the CSI controller's match follow on their own. The other four lines are the places the design documents name the key.

🤖 Generated with Claude Code

The label identifying a StoragePool on its allowed nodes was
storage.simplyblock.io/pool.<uuid>. Spell the segment the way the kind is
spelled. The key stays a fixed 41 bytes either way, well inside the 63 a
label name may have, so nothing about the length is at stake.

Both consumers read the prefix from this constant, so the change is one
line of code plus the four places the design documents name the key.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@noctarius
noctarius merged commit 753b5a9 into main Sep 9, 2026
17 checks passed
@noctarius
noctarius deleted the fix/pool-label-storage-pool-prefix branch September 9, 2026 13:16
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.

3 participants