-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[controller] Add node selectors for csi components #58
Open
AleksZimin
wants to merge
36
commits into
main
Choose a base branch
from
add-node-selectors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
duckhawk
reviewed
Dec 25, 2024
AleksZimin
changed the title
[controller] add node selectors
[controller] Add node selectors for csi components
Dec 25, 2024
astef
approved these changes
Dec 26, 2024
AleksZimin
force-pushed
the
add-node-selectors
branch
from
December 27, 2024 11:41
3f0cc45
to
1b23f58
Compare
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
AleksZimin
force-pushed
the
add-node-selectors
branch
3 times, most recently
from
January 2, 2025 11:39
a166493
to
aa38b1a
Compare
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
AleksZimin
force-pushed
the
add-node-selectors
branch
4 times, most recently
from
January 8, 2025 21:25
7094221
to
951d9ad
Compare
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
AleksZimin
force-pushed
the
add-node-selectors
branch
from
January 8, 2025 21:53
951d9ad
to
4751e7c
Compare
AleksZimin
force-pushed
the
add-node-selectors
branch
from
January 8, 2025 23:18
f03e5e6
to
56691c6
Compare
This reverts commit 56691c6. Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
AleksZimin
force-pushed
the
add-node-selectors
branch
from
January 8, 2025 23:36
f7f7c39
to
395f6c4
Compare
astef
requested changes
Jan 10, 2025
images/controller/src/pkg/controller/node_selector_reconciler.go
Outdated
Show resolved
Hide resolved
images/controller/src/pkg/controller/node_selector_reconciler.go
Outdated
Show resolved
Hide resolved
Merged
Signed-off-by: Aleksandr Stefurishin <aleksandr.stefurishin@flant.com>
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.
Description
This PR introduces a
nodeSelector
setting in ModuleConfig that allows users to specify which nodes can run thecsi-nfs
components. Only on these selected nodes will be able to mount NFS shares into pods as volumes. The implementation includes safeguards to ensure that the removal of components does not disrupt active workloads.Why do we need it, and what problem does it solve?
The addition of
nodeSelector
provides finer control over wherecsi-nfs
components are deployed, ensuring NFS shares are only accessible on specific nodes. This setup improves operational control and resource utilization.Without safeguard, changes to the
nodeSelector
could unintentionally disrupt workloads by prematurely removingcsi-nfs
components. The implemented checks prevent this by:csi-nfs
components from it.csi-controller
is present on an excluded node, novolumesnapshot
orPVC
with the provisionernfs.csi.k8s.io
is in aPending
state.What is the expected result?
csi-nfs
components are deployed only on nodes matching thenodeSelector
criteria.csi-nfs
components from nodes happens only when:csi-controller
, there are noPending
volumesnapshot
orPVC
resources for the provisionernfs.csi.k8s.io
.Checklist