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.