-
Notifications
You must be signed in to change notification settings - Fork 33
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
PWX-31562 : Operator's Windows support #1176
Conversation
@nikita-bhatia nodeSelectorTerms need to be updated for stork and stork-scheduler deployments as well. Any particular reason that is not being handled in this PR? Check the following ticket for more context https://portworx.atlassian.net/browse/PWX-28210 |
This PR is stale because it has been in review for 3 days with no activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the change to add the affinity to the storage cluster spec. Are we expecting the customer to add this or the spec generator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikita-bhatia I think we need the Windows feature behind a feature flag. Can you help me understand how is it being achieved?
@pp511 It was decided not to have feature flag. Currently, it is being achieved by checking the existence of windows node, if there is no windows node in cluster, this feature will not work. |
re: feature flag, I checked the code and I think we are fine without an explicit one. The windows component does not get enabled if no windows node is detected. So on all non-windows setups, the windows component code will be inactive. @pp511 you okay with this? |
@nikita-bhatia can we make travis green? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, but rest looks good.
Please update the branch and fix the failing csi unit test.
@piyush-nimbalkar @pp511 re-requesting review, after rebasing branch to master and addressing all review comments. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1176 +/- ##
==========================================
+ Coverage 75.70% 75.77% +0.06%
==========================================
Files 64 65 +1
Lines 18246 18410 +164
==========================================
+ Hits 13814 13951 +137
- Misses 3449 3464 +15
- Partials 983 995 +12
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing all the comments @nikita-bhatia.
Everything looks good!
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: px-csi-node-win-shared |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why name the daemonset as shared
? Let's rename this back to px-csi-node-win
.
The previous comment was for the storageclass because it was a shared storageclass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Thanks @nikita-bhatia
Thanks @piyush-nimbalkar @pp511 for the approval, merging this to master. |
* Add windows operator support * update daemonset labels * Replace nodeselecter with nodeaffinity * Add tests * add nodeselector for stork and stork-scheduler * remove nodeaffinity from components * add nodeselector as linux in storagecluster * address review comments * address review comments * address review comments * update windows specific affinity and tolerations * add px-installer daemonset for windows * fix failing tests * fix failing tests * remove fmt logs * set default csi-installer image for windows * fix failing test * fix review comments * fix failing test * rename px driver and node-win daemonset file names * remove fmt logs * rename px-csi-node-win-shared daemonset to px-csi-node-win
Changes done :
Following node affinity is added to STC so that all the existing pods are scheduled on linux node only.
DaemonSet added for Windows
Testing :
Tested on OCP cluster with mix of linux and windows node
Tested on airgap cluster