Skip to content

feat: As a user, I want to export custom labels to routes, so that my global plugins can use them #2753

@Hathoute

Description

@Hathoute

Description

Just like labels k8s/kind, k8s/namespace, etc... A pretty interesting use case would be to have the possibility to define custom labels, for example k8s.apisix.apache.org/label-ctx-var-name: my-value-here would be available as label ctx-var-name, which could then be used in global plugins without having to define an extra ApisixPluginConfig for every Ingress

In label.go, I can see there's already some logic for adding pairs of key,value, though I'm not sure where it is used at the moment.

I am open to contributing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions