-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: move tolerations into LVMCluster.Spec #75
Conversation
This commit moves tolerations out of the individual deviceClasses and into the main LVMCluster spec Signed-off-by: N Balachandran <nibalach@redhat.com>
The topolvm-node daemonset toleration will now be the same as that of the vgmanager daemonset. Signed-off-by: N Balachandran <nibalach@redhat.com>
@@ -25,11 +25,13 @@ import ( | |||
// extractNodeSelectorAndTolerations combines and extracts scheduling parameters from the multiple deviceClass entries in an lvmCluster | |||
func extractNodeSelectorAndTolerations(lvmCluster *lvmv1alpha1.LVMCluster) (*corev1.NodeSelector, []corev1.Toleration) { | |||
var nodeSelector *corev1.NodeSelector | |||
var tolerations []corev1.Toleration | |||
|
|||
tolerations := lvmCluster.Spec.Tolerations |
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.
how about just returning lvmCluster.Spec.Tolerations
from this method and not saving it in a variable first. The variable is never used.
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.
While that is a valid comment,I would like to address that in a separate PR
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jmolmo, nbalacha, sp98 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR moves the tolerations field out of the deviceClass and into the main LVMCluster.Spec.
It also updates the tolerations in topolvm-node daemonset to match that of the vgmanager daemonset.