Open surajssd opened 4 years ago
We expose only node_selector to lokoctl user and depending on what is needed by the chart we do the conversion or just use it as it is.
According to the documentation, node affinity is an expansion of node selector, so shouldn't we support node_affinity
instead of node_selector
?
Yes, I think we can drop node selector support. Whatever we do, it should be consistent across components.
Problem
Right now some components support
node_selector
and others supportnode_affinity
. It is very incosistent.Historically this has been the case because Lokoctl exposed whatever underlying Helm Chart is exposing. Lokoctl never did any magical tranformation from
node_affinity
(at lokoctl) tonode_selector
(at the chart values level).Also converting from
node_affinity
tonode_selector
is a lossy change becausenode_affinity
has so much information that cannot be converted tonode_selector
. But reverse is not true. We can very easily convert fromnode_selector
tonode_affinity
, though.Proposed solution
We expose only
node_selector
to lokoctl user and depending on what is needed by the chart we do the conversion or just use it as it is.