From cf2555a4a18ea28427af40587219bdf7c4b6eeff Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Tue, 10 Dec 2024 11:36:25 +0900 Subject: [PATCH] chore(gatewayapi/v1beta1): add deepcopy-gen annotations Signed-off-by: kahirokunn --- pkg/apis/gatewayapi/v1beta1/doc.go | 2 ++ pkg/apis/gatewayapi/v1beta1/httproute_types.go | 2 ++ 2 files changed, 4 insertions(+) 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.