diff --git a/pkg/apis/gatewayapi/v1beta1/doc.go b/pkg/apis/gatewayapi/v1beta1/doc.go index 6ab038a17..c75f64de1 100644 --- a/pkg/apis/gatewayapi/v1beta1/doc.go +++ b/pkg/apis/gatewayapi/v1beta1/doc.go @@ -1,4 +1,6 @@ // Package v1beta1 contains API Schema definitions for the // gateway.networking.k8s.io API group. +// +k8s:deepcopy-gen=package + package v1beta1 diff --git a/pkg/apis/gatewayapi/v1beta1/httproute_types.go b/pkg/apis/gatewayapi/v1beta1/httproute_types.go index 9da2eae8f..4b0d950ef 100644 --- a/pkg/apis/gatewayapi/v1beta1/httproute_types.go +++ b/pkg/apis/gatewayapi/v1beta1/httproute_types.go @@ -18,6 +18,7 @@ import ( ) // +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true // +kubebuilder:resource:categories=gateway-api // +kubebuilder:storageversion @@ -40,6 +41,7 @@ type HTTPRoute struct { Status HTTPRouteStatus `json:"status,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true // HTTPRouteList contains a list of HTTPRoute.