Use controller-gen to generate deepcopy code replacing deepcopy-gen. (#5297)

Use controller-gen to generate deepcopy code, and replace the deepcopy-gen tags with the kubebuilder tags.

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
hongzhouzi
2022-10-20 17:37:40 +08:00
committed by GitHub
parent 7300405a26
commit 3800d738f9
130 changed files with 259 additions and 548 deletions

View File

@@ -23,7 +23,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true
// Configuration provides configuration for the ResourceQuota admission controller.
type Configuration struct {