vlcluster,vtcluster: do not ignore extraStorageNode, when default storage is not enabled#1911
Open
AndrewChubatiuk wants to merge 1 commit intomasterfrom
Open
vlcluster,vtcluster: do not ignore extraStorageNode, when default storage is not enabled#1911AndrewChubatiuk wants to merge 1 commit intomasterfrom
AndrewChubatiuk wants to merge 1 commit intomasterfrom
Conversation
Haleygo
reviewed
Mar 3, 2026
Member
Haleygo
left a comment
There was a problem hiding this comment.
Nit: should we forbid using extraStorageNodes and extraArgs.storageNode together? A user might accidentally set both and get duplicate settings.
vrutkovs
reviewed
Mar 3, 2026
| } | ||
| if len(cr.Spec.VLSelect.ExtraStorageNodes) > 0 { | ||
| for i, node := range cr.Spec.VLSelect.ExtraStorageNodes { | ||
| idx := i + len(storageNodeIds) |
Collaborator
There was a problem hiding this comment.
Perhaps we should deduplicate the list? Users may accidentally set the same node twice.
Also, needs tests
Contributor
Author
There was a problem hiding this comment.
throwing error in case of duplicates instead since also per storage auth can be added and deduplication can break an order
…rage is not enabled
281ae15 to
f0dfa99
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #1910
Summary by cubic
Fixes VLSelect and VTSelect ignoring ExtraStorageNodes when default storage is disabled, so select pods connect to the provided storage nodes. Also adds validation to prevent duplicate storageNode addresses. Addresses issue #1910.
Written for commit f0dfa99. Summary will update on new commits.