vortegatorres opened a new issue, #1987: URL: https://github.com/apache/apisix-ingress-controller/issues/1987
### Current Behavior In the `namespace_selector` configuration, when there are multiple values for the same label, only the last one is taken into account. This happens because the label key serves as the unique identifier [in this map](https://github.com/apache/apisix-ingress-controller/blob/bca0d1da5e0d721ff7c94555821db55dd2659504/pkg/providers/k8s/namespace/namespace_provider.go#L70), and the most recent value will replace any previous ones. For instance, if you have the following values, only "app3" would be considered in the list of watched namespaces: ``` namespace_selector: - "kubernetes.io/metadata.name=app1" - "kubernetes.io/metadata.name=app2" - "kubernetes.io/metadata.name=app3" ``` ### Expected Behavior Apply all the labels, even if the label key is the same. ### Error Logs _No response_ ### Steps to Reproduce Configure several namespace labels with the same key: ``` namespace_selector: - "kubernetes.io/metadata.name=app1" - "kubernetes.io/metadata.name=app2" - "kubernetes.io/metadata.name=app3" ``` ### Environment APISIX install with helm chart version: 1.3.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
