Skip to content

Commit e0d73b3

Browse files
committed
Adding gateway-api category and age column to CRDs
1 parent 02075ba commit e0d73b3

14 files changed

+57
-7
lines changed

apis/v1alpha1/backendpolicy_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25-
// +kubebuilder:resource:shortName=bp
25+
// +kubebuilder:resource:categories=gateway-api,shortName=bp
2626
// +kubebuilder:subresource:status
27+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2728

2829
// BackendPolicy defines policies associated with backends. For the purpose of
2930
// this API, a backend is defined as any resource that a route can forward

apis/v1alpha1/gateway_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25-
// +kubebuilder:resource:shortName=gtw
25+
// +kubebuilder:resource:categories=gateway-api,shortName=gtw
2626
// +kubebuilder:subresource:status
2727
// +kubebuilder:printcolumn:name="Class",type=string,JSONPath=`.spec.gatewayClassName`
28+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2829

2930
// Gateway represents an instantiation of a service-traffic handling
3031
// infrastructure by binding Listeners to a set of IP addresses.

apis/v1alpha1/gatewayclass_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ import (
2323
// +genclient
2424
// +genclient:nonNamespaced
2525
// +kubebuilder:object:root=true
26-
// +kubebuilder:resource:scope=Cluster,shortName=gc
26+
// +kubebuilder:resource:categories=gateway-api,scope=Cluster,shortName=gc
2727
// +kubebuilder:subresource:status
2828
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controller`
29+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2930

3031
// GatewayClass describes a class of Gateways available to the user
3132
// for creating Gateway resources.

apis/v1alpha1/httproute_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25+
// +kubebuilder:resource:categories=gateway-api
2526
// +kubebuilder:subresource:status
2627
// +kubebuilder:printcolumn:name="Hostnames",type=string,JSONPath=`.spec.hostnames`
28+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2729

2830
// HTTPRoute is the Schema for the HTTPRoute resource.
2931
type HTTPRoute struct {

apis/v1alpha1/tcproute_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25+
// +kubebuilder:resource:categories=gateway-api
2526
// +kubebuilder:subresource:status
27+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2628

2729
// TCPRoute is the Schema for the TCPRoute resource.
2830
type TCPRoute struct {

apis/v1alpha1/tlsroute_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25+
// +kubebuilder:resource:categories=gateway-api
2526
// +kubebuilder:subresource:status
27+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2628

2729
// The TLSRoute resource is similar to TCPRoute, but can be configured
2830
// to match against TLS-specific metadata. This allows more flexibility

apis/v1alpha1/udproute_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25+
// +kubebuilder:resource:categories=gateway-api
2526
// +kubebuilder:subresource:status
27+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2628

2729
// UDPRoute is a resource that specifies how a Gateway should forward UDP traffic.
2830
type UDPRoute struct {

config/crd/bases/networking.x-k8s.io_backendpolicies.yaml

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_gatewayclasses.yaml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_gateways.yaml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_httproutes.yaml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_tcproutes.yaml

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_tlsroutes.yaml

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/networking.x-k8s.io_udproutes.yaml

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)