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.
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 examplek8s.apisix.apache.org/label-ctx-var-name: my-value-herewould be available as labelctx-var-name, which could then be used in global plugins without having to define an extraApisixPluginConfigfor everyIngressIn 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.