Closed luiscachog closed 1 year ago
@luiscachog Thanks for the question!
For the matchExpressions
, it looks good and I used what you provided with the latest code and it worked to generate the PlacementRule, so maybe you need to update to the latest version? There was a fix in v1.11.0
to address a bug around the placement generation, so maybe that could help here.
For providing key: value
pairs directly under clusterSelector
, that is available for backward compatibility and has to be provided as a map with 1-to-1 keys and values, so that won't work for this use case.
Let me know whether an update might work to resolve this!
Hello @dhaiducek!
You are right, I upgrade from v1.10.0
to v1.12.2
and now is working!
Closing this one!
Hi, I'm trying to generate a policy that affects two (or more envs) using the next stanza:
However, when I run the command:
I'm having the next output:
I also tried this way, that works when I set one
environment
:But when I add a second environment like:
I received the same message:
Could you help me with the correct stanza for
placement
to use 2 or more labels?