Skip to content

Commit

Permalink
EnRoute API: Rename gatewayhostroute -> serviceroute
Browse files Browse the repository at this point in the history
Ref: 8e3eb538e17cca1dacea52cdd47ac776ac4e1c2b
Ref: 05de629b1eda1a15b0f898bc4f7d504e869d3ee0
  • Loading branch information
chintan8saaras committed Jul 26, 2022
1 parent d53372b commit 0d27945
Show file tree
Hide file tree
Showing 23 changed files with 861 additions and 583 deletions.
4 changes: 2 additions & 2 deletions enroute-dp/apis/enroute/v1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&GatewayHost{},
&GatewayHostList{},
&GatewayHostRoute{},
&GatewayHostRouteList{},
&ServiceRoute{},
&ServiceRouteList{},
&GlobalConfig{},
&GlobalConfigList{},
&HttpFilter{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

type GatewayHostRouteSpec struct {
type ServiceRouteSpec struct {
// Fqdn of the GatewayHost
Fqdn string `json:"fqdn"`
// Route is the route for service
Expand All @@ -14,21 +14,21 @@ type GatewayHostRouteSpec struct {
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// GatewayHostRoute can be used to provide Route Specification for a service
// ServiceRoute can be used to provide Route Specification for a service
// +k8s:openapi-gen=true
// +kubebuilder:resource:scope=Namespaced,path=gatewayhostroutes,shortName=gwhostroute;gwhostroutes,singular=gatewayhostroute
type GatewayHostRoute struct {
// +kubebuilder:resource:scope=Namespaced,path=serviceroutes,shortName=svcroute;svcroutes,singular=serviceroute
type ServiceRoute struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`

Spec GatewayHostRouteSpec `json:"spec"`
Spec ServiceRouteSpec `json:"spec"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// GatewayHostRouteList is a list of GatewayHostRoutes
type GatewayHostRouteList struct {
// ServiceRouteList is a list of ServiceRoutes
type ServiceRouteList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []GatewayHostRoute `json:"items"`
Items []ServiceRoute `json:"items"`
}
154 changes: 77 additions & 77 deletions enroute-dp/apis/enroute/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 0d27945

Please sign in to comment.