-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GatewayHostRoute to associate a Service to GatewayHost using a Route
Fixes #77
- Loading branch information
1 parent
e0d6a44
commit b98c09a
Showing
18 changed files
with
872 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package v1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
type GatewayHostRouteSpec struct { | ||
// Fqdn of the GatewayHost | ||
Fqdn string `json:"fqdn"` | ||
// Route is the route for service | ||
Route Route `json:"route"` | ||
} | ||
|
||
// +genclient | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// GatewayHostRoute 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 { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata"` | ||
|
||
Spec GatewayHostRouteSpec `json:"spec"` | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// GatewayHostRouteList is a list of GatewayHostRoutes | ||
type GatewayHostRouteList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata"` | ||
Items []GatewayHostRoute `json:"items"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
enroute-dp/apis/generated/clientset/versioned/typed/enroute/v1/enroute_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
enroute-dp/apis/generated/clientset/versioned/typed/enroute/v1/fake/fake_enroute_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
117 changes: 117 additions & 0 deletions
117
enroute-dp/apis/generated/clientset/versioned/typed/enroute/v1/fake/fake_gatewayhostroute.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.