Skip to content

feat: move tolerations into LVMCluster.Spec#75

Merged
nbalacha merged 2 commits into
openshift:mainfrom
nbalacha:tolerations
Jan 17, 2022
Merged

feat: move tolerations into LVMCluster.Spec#75
nbalacha merged 2 commits into
openshift:mainfrom
nbalacha:tolerations

Conversation

@nbalacha

Copy link
Copy Markdown
Contributor

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.

@nbalacha nbalacha requested review from leelavg and sp98 and removed request for leelavg January 17, 2022 15:01
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>
Comment thread controllers/utils.go
var nodeSelector *corev1.NodeSelector
var tolerations []corev1.Toleration

tolerations := lvmCluster.Spec.Tolerations

@sp98 sp98 Jan 17, 2022

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jan 17, 2022
@sp98 sp98 self-requested a review January 17, 2022 15:29
@openshift-ci

openshift-ci Bot commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nbalacha nbalacha merged commit 56de5eb into openshift:main Jan 17, 2022
@nbalacha nbalacha deleted the tolerations branch January 18, 2022 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants