@@ -18,29 +18,29 @@ package v1alpha1
1818
1919import gwapi "sigs.k8s.io/gateway-api/apis/v1"
2020
21- type AppHTTPRoute struct {
22- Enabled bool `json:"enabled"`
23- * HTTPRouteSpec `json:",inline,omitempty"`
24- Hosts [] HTTPRouteHost `json:"hosts"`
21+ type AppGateway struct {
22+ Enabled bool `json:"enabled"`
23+ * GatewaySpec `json:",inline,omitempty"`
24+ Hosts [] GatewayHost `json:"hosts"`
2525}
2626
27- type HTTPRouteSpec struct {
27+ type GatewaySpec struct {
2828 Annotations map [string ]string `json:"annotations,omitempty"`
2929 GatewayClassName string `json:"gatewayClassName"`
30- TLS * HTTPRouteTLS `json:"tls"`
30+ TLS * GatewayTLS `json:"tls"`
3131}
3232
33- type HTTPRouteTLS struct {
33+ type GatewayTLS struct {
3434 Enabled bool `json:"enabled"`
3535 Secret * LocalObjectReference `json:"secret"`
3636}
3737
38- type HTTPRouteHost struct {
39- Host string `json:"host"`
40- Paths HTTPRoutePath `json:"paths"`
38+ type GatewayHost struct {
39+ Host string `json:"host"`
40+ Paths GatewayPath `json:"paths"`
4141}
4242
43- type HTTPRoutePath struct {
43+ type GatewayPath struct {
4444 Path string `json:"path"`
4545 PathType gwapi.PathMatchType `json:"pathType,omitempty"`
4646}
0 commit comments