From 6cef7c517add624d6a1396799ea929eb638f8dc3 Mon Sep 17 00:00:00 2001 From: She Jiayu Date: Wed, 21 Oct 2020 00:47:15 +0800 Subject: [PATCH] Fix marker comments for runtime object deepcopy (#261) --- pkg/apis/zookeeper/v1beta1/zookeepercluster_types.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/apis/zookeeper/v1beta1/zookeepercluster_types.go b/pkg/apis/zookeeper/v1beta1/zookeepercluster_types.go index 184108fd1..c12e88857 100644 --- a/pkg/apis/zookeeper/v1beta1/zookeepercluster_types.go +++ b/pkg/apis/zookeeper/v1beta1/zookeepercluster_types.go @@ -194,9 +194,6 @@ func (s *ZookeeperClusterSpec) withDefaults(z *ZookeeperCluster) (changed bool) return changed } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:openapi-gen=true - // Generate CRD using kubebuilder // +kubebuilder:object:root=true // +kubebuilder:subresource:status @@ -208,6 +205,8 @@ func (s *ZookeeperClusterSpec) withDefaults(z *ZookeeperCluster) (changed bool) // +kubebuilder:printcolumn:name="Internal Endpoint",type=string,JSONPath=`.status.internalClientEndpoint`,description="Client endpoint internal to cluster network" // +kubebuilder:printcolumn:name="External Endpoint",type=string,JSONPath=`.status.externalClientEndpoint`,description="Client endpoint external to cluster network via LoadBalancer" // +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true // ZookeeperCluster is the Schema for the zookeeperclusters API type ZookeeperCluster struct {