From e6f4518578e22fa45e5d27da9dc115b870a371e2 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Mon, 9 Mar 2026 15:11:25 +0900 Subject: [PATCH] feat: add Tag field to IngressRule Allow downstream ingress controllers to propagate traffic tag metadata (e.g. as labels on HTTPRoute/HTTPProxy), improving observability and enabling tag-based extension controllers. Signed-off-by: kahirokunn --- config/ingress.yaml | 3 +++ pkg/apis/networking/v1alpha1/ingress_types.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/config/ingress.yaml b/config/ingress.yaml index 33ee6b015..890490263 100644 --- a/config/ingress.yaml +++ b/config/ingress.yaml @@ -203,6 +203,9 @@ spec: - type: integer - type: string x-kubernetes-int-or-string: true + tag: + description: Tag is the name of the traffic tag associated with this rule. + type: string visibility: description: |- Visibility signifies whether this rule should `ClusterLocal`. If it's not diff --git a/pkg/apis/networking/v1alpha1/ingress_types.go b/pkg/apis/networking/v1alpha1/ingress_types.go index 44b0d74e2..6b72ea1c0 100644 --- a/pkg/apis/networking/v1alpha1/ingress_types.go +++ b/pkg/apis/networking/v1alpha1/ingress_types.go @@ -177,6 +177,10 @@ type IngressRule struct { // HTTP represents a rule to apply against incoming requests. If the // rule is satisfied, the request is routed to the specified backend. HTTP *HTTPIngressRuleValue `json:"http,omitempty"` + + // Tag is the name of the traffic tag associated with this rule. + // +optional + Tag string `json:"tag,omitzero"` } // HTTPIngressRuleValue is a list of http selectors pointing to backends.