I have a production environment located in the westus region. I want to set a configuration that only applies when both the prod environment and the westus region are matched.
Currently, the label filter overwrites the configuration if any of the labels match. For example, if I set the configuration with the following code, the config will apply to all prod environments and all westus regions, but I want the config to only apply to an environment that matches both labels (prod and westus).
Requirement:
I need the configuration to apply only when both prod and westus labels are matched, not when either of them matches.
Example:
Test:Test = true
matches all environmentsTest:Test = true prod
matches allprodenvironmentsTest:Test = true westus
matches allwestusregionsTest:Test = true prod, westus
should match only when bothprodenvironment andwestusregion are present
Question: How can I modify the label filtering logic so that the configuration is applied only when both labels (prod and westus) are matched, instead of when any one of them matches?