vcluster icon indicating copy to clipboard operation
vcluster copied to clipboard

Fully support Pod affinity label translation

Open nktpro opened this issue 3 years ago • 3 comments

Currently, label names within affinity of Pod specs are not translated at all, which is a deal-breaker for a lot of real-world use cases. Given that Pod Topology Constraints support was recently landed, is this part of the near-term plan for the next release?

nktpro avatar Jun 18 '21 09:06 nktpro

@nktpro thanks for creating this issue! You are correct, currently we do not rewrite pod affinity rules. We can add this, however currently we won't be able to support the namespaceSelector field, as there is no virtual namespace information available in the host cluster for now (we will change this though and sync all namespace labels to the pods that were created in the virtual namespace to select them in the host cluster to support namespaceSelector in pod affinity and networkpolicies)

FabianKramm avatar Jun 18 '21 10:06 FabianKramm

@nktpro should work now (except namespaceSelector) with v0.3.0-beta.4

FabianKramm avatar Jun 18 '21 12:06 FabianKramm

Since the v0.5.0 release, this is almost fully supported. The only exception is an edge case where the namespaceSelector is combined with the namespaces field in the same affinity term.

matskiv avatar Nov 02 '22 18:11 matskiv