Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

rook ceph: Add CSI plugin affinity & toleration attribute #892

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

surajssd
Copy link
Member

@surajssd surajssd commented Sep 2, 2020

This commit adds two new attributes: csi_plugin_node_selector and
csi_plugin_toleration which will enable the plugin pods to install the
necessary plugins on non-ceph nodes.

  • Add docs.

@surajssd surajssd requested a review from invidian September 2, 2020 12:30
DiscoverTolerationEffect string `hcl:"discover_toleration_effect,optional"`
EnableMonitoring bool `hcl:"enable_monitoring,optional"`
CSIPluginNodeSelector util.NodeSelector `hcl:"csi_plugin_node_selector,optional"`
CSIPluginNodeAffinity string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not CSIPluginNodeSelectorRaw?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By tacit convention *Raw has been for those that can simply be converted from it's hcl (json) form to the yaml and provided as it is. But *NodeAffinity is a rook's format of specifying the selector like this: key1=value1; key2=value2;.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would still be fine as Raw is sort of template-ready format, but I'm fine with it as it is 👍

This commit adds two new attributes: `csi_plugin_node_selector` and
`csi_plugin_toleration` which will enable the plugin pods to install the
necessary plugins on non-ceph nodes.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
@surajssd surajssd force-pushed the surajssd/add-rook-csi-toleration branch from 092e6e9 to f3560d4 Compare September 2, 2020 12:38
@surajssd surajssd marked this pull request as ready for review September 2, 2020 12:38
@surajssd surajssd added this to the v0.4.0 milestone Sep 3, 2020
@surajssd surajssd merged commit 4d478d9 into master Sep 3, 2020
@surajssd surajssd deleted the surajssd/add-rook-csi-toleration branch September 3, 2020 08:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants