Dynamic use of EnvoyProxy..envoyDeployment.pod.topologySpreadConstraints.labelSelector in a GatewayClass? #4835
Unanswered
Skaronator
asked this question in
Q&A
Replies: 1 comment 2 replies
-
you could set a common label for all generated deployments using the
This is also possible using the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to configure
topologySpreadConstraints
at theGatewayClass
level. However, thetopologySpreadConstraints
feature requires alabelSelector
to function correctly. The challenge is that, when applied to GatewayClass, some label values need to be dynamic.For instance, I’d like to use the same labelSelector as the Deployment resource, which looks like this:
The issue is that the labels
gateway.envoyproxy.io/owning-gateway-name
andgateway.envoyproxy.io/owning-gateway-namespace
are dynamically set by the corresponding Gateway, not the GatewayClass.Is there a way to handle this? Ideally, the CRD should use the same labelSelector as the default for the Deployment. If users need customization, they should be able to specify an empty object or define their own labels.
Beta Was this translation helpful? Give feedback.
All reactions