vcluster
vcluster copied to clipboard
Fully support Pod affinity label translation
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 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)
@nktpro should work now (except namespaceSelector
) with v0.3.0-beta.4
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.