1
0
Fork 0

Make the IngressRoute kind optional

This commit is contained in:
Shreyas Kirtane 2024-11-04 08:26:04 -07:00 committed by GitHub
parent e8ff825ed2
commit 97caf758ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 10 deletions

View file

@ -28,8 +28,9 @@ type Route struct {
Match string `json:"match"`
// Kind defines the kind of the route.
// Rule is the only supported kind.
// If not defined, defaults to Rule.
// +kubebuilder:validation:Enum=Rule
Kind string `json:"kind"`
Kind string `json:"kind,omitempty"`
// Priority defines the router's priority.
// More info: https://doc.traefik.io/traefik/v3.2/routing/routers/#priority
Priority int `json:"priority,omitempty"`