Skip to content

Multiple label values for -watch-namespace-label argument #7950

@benshalev849

Description

@benshalev849

At the moment, we have a global "NGINX" namespace, this namespace holds all of our NGINX Ingress Controllers, in addition we have for each client a separate instance.

What we want to achieve is for us to be able to put two labels on our NGINX, one for the client namespace (to catch only their VS etc..) and if a new NS is added, no need for rollout (unlike if we use -watch-namespace)
And one "global" label for our global NGINX ns that holds all the deployments, secrets etc (To watch the default TLS secret and update it automatically when changed)

Describe the solution you'd like
Option to have multiple labels with different values on one ingress controller, for example:
-watch-namespace-label={foo=bar,cert=secret}

Describe alternatives you've considered
An alternative is to put the "unique" label on the main NGINX Namespace, this will cause alot of useless labels and confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogPull requests/issues that are backlog itemsproposalAn issue that proposes a feature requestready for refinementAn issue that was triaged and it is ready to be refined

    Projects

    Status

    Todo ☑

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions