From 28bc8b7eef86487996f46ff9e16b179322caa39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Mon, 18 Apr 2022 18:06:16 +0800 Subject: [PATCH] Use controller-gen to generate the deep copy methods for objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As we are refactoring controllers with kubebuilder, use the controller-gen rather than code-generator to generate the deep copy methods for objects Signed-off-by: Wenkai Yin(尹文开) --- changelogs/unreleased/4838-ywk253100 | 1 + config/rbac/role.yaml | 40 +++++----- hack/update-generated-crd-code.sh | 4 +- hack/verify-generated-crd-code.sh | 2 +- pkg/apis/velero/v1/schedule_types.go | 5 +- pkg/apis/velero/v1/zz_generated.deepcopy.go | 81 +-------------------- 6 files changed, 30 insertions(+), 103 deletions(-) create mode 100644 changelogs/unreleased/4838-ywk253100 diff --git a/changelogs/unreleased/4838-ywk253100 b/changelogs/unreleased/4838-ywk253100 new file mode 100644 index 000000000..70befd62a --- /dev/null +++ b/changelogs/unreleased/4838-ywk253100 @@ -0,0 +1 @@ +Use controller-gen to generate the deep copy methods for objects \ No newline at end of file diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 1f6a9f12a..0e95ec2f6 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -52,6 +52,26 @@ rules: - get - patch - update +- apiGroups: + - velero.io + resources: + - podvolumebackups + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - velero.io + resources: + - podvolumebackups/status + verbs: + - get + - patch + - update - apiGroups: - velero.io resources: @@ -92,23 +112,3 @@ rules: - get - patch - update -- apiGroups: - - velero.io - resources: - - podvolumebackup - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - velero.io - resources: - - podvolumebackup/status - verbs: - - get - - patch - - update \ No newline at end of file diff --git a/hack/update-generated-crd-code.sh b/hack/update-generated-crd-code.sh index d1c3eb0d5..70b9a942b 100755 --- a/hack/update-generated-crd-code.sh +++ b/hack/update-generated-crd-code.sh @@ -51,7 +51,9 @@ controller-gen \ paths=./pkg/apis/velero/v1/... \ rbac:roleName=velero-perms \ paths=./pkg/controller/... \ - output:crd:artifacts:config=config/crd/v1/bases + output:crd:artifacts:config=config/crd/v1/bases \ + object \ + paths=./pkg/apis/velero/v1/... # this is a super hacky workaround for https://github.com/kubernetes/kubernetes/issues/91395 # which a result of fixing the validation on CRD objects. The validation ensures the fields that are list map keys, are either marked diff --git a/hack/verify-generated-crd-code.sh b/hack/verify-generated-crd-code.sh index ef7490c83..d4c097c79 100755 --- a/hack/verify-generated-crd-code.sh +++ b/hack/verify-generated-crd-code.sh @@ -16,7 +16,7 @@ HACK_DIR=$(dirname "${BASH_SOURCE}") -${HACK_DIR}/update-generated-crd-code.sh --verify-only +${HACK_DIR}/update-generated-crd-code.sh # ensure no changes to generated CRDs if ! git diff --exit-code config/crd/v1/crds/crds.go >/dev/null; then diff --git a/pkg/apis/velero/v1/schedule_types.go b/pkg/apis/velero/v1/schedule_types.go index 52cac8255..a3987180d 100644 --- a/pkg/apis/velero/v1/schedule_types.go +++ b/pkg/apis/velero/v1/schedule_types.go @@ -80,8 +80,8 @@ type ScheduleStatus struct { // TODO(2.0) After converting all resources to use the runtime-controller client, the genclient and k8s:deepcopy markers will no longer be needed and should be removed. // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:object:root // +kubebuilder:object:generate=true +// +kubebuilder:object:root=true // +kubebuilder:storageversion // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Name",type="string",JSONPath=".metadata.name",description="Name of the schedule" @@ -106,7 +106,8 @@ type Schedule struct { } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:object:root +// +kubebuilder:object:generate=true +// +kubebuilder:object:root=true // ScheduleList is a list of Schedules. type ScheduleList struct { diff --git a/pkg/apis/velero/v1/zz_generated.deepcopy.go b/pkg/apis/velero/v1/zz_generated.deepcopy.go index 27e687336..4c905d4f7 100644 --- a/pkg/apis/velero/v1/zz_generated.deepcopy.go +++ b/pkg/apis/velero/v1/zz_generated.deepcopy.go @@ -1,30 +1,14 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -/* -Copyright the Velero contributors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. +// Code generated by controller-gen. DO NOT EDIT. package v1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -34,7 +18,6 @@ func (in *Backup) DeepCopyInto(out *Backup) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup. @@ -65,7 +48,6 @@ func (in *BackupHooks) DeepCopyInto(out *BackupHooks) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupHooks. @@ -90,7 +72,6 @@ func (in *BackupList) DeepCopyInto(out *BackupList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupList. @@ -114,7 +95,6 @@ func (in *BackupList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BackupProgress) DeepCopyInto(out *BackupProgress) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupProgress. @@ -135,7 +115,6 @@ func (in *BackupResourceHook) DeepCopyInto(out *BackupResourceHook) { *out = new(ExecHook) (*in).DeepCopyInto(*out) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupResourceHook. @@ -190,7 +169,6 @@ func (in *BackupResourceHookSpec) DeepCopyInto(out *BackupResourceHookSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupResourceHookSpec. @@ -261,7 +239,6 @@ func (in *BackupSpec) DeepCopyInto(out *BackupSpec) { (*out)[key] = val } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec. @@ -299,7 +276,6 @@ func (in *BackupStatus) DeepCopyInto(out *BackupStatus) { *out = new(BackupProgress) **out = **in } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus. @@ -319,7 +295,6 @@ func (in *BackupStorageLocation) DeepCopyInto(out *BackupStorageLocation) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageLocation. @@ -352,7 +327,6 @@ func (in *BackupStorageLocationList) DeepCopyInto(out *BackupStorageLocationList (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageLocationList. @@ -399,7 +373,6 @@ func (in *BackupStorageLocationSpec) DeepCopyInto(out *BackupStorageLocationSpec *out = new(metav1.Duration) **out = **in } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageLocationSpec. @@ -423,7 +396,6 @@ func (in *BackupStorageLocationStatus) DeepCopyInto(out *BackupStorageLocationSt in, out := &in.LastValidationTime, &out.LastValidationTime *out = (*in).DeepCopy() } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageLocationStatus. @@ -443,7 +415,6 @@ func (in *DeleteBackupRequest) DeepCopyInto(out *DeleteBackupRequest) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteBackupRequest. @@ -476,7 +447,6 @@ func (in *DeleteBackupRequestList) DeepCopyInto(out *DeleteBackupRequestList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteBackupRequestList. @@ -500,7 +470,6 @@ func (in *DeleteBackupRequestList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DeleteBackupRequestSpec) DeepCopyInto(out *DeleteBackupRequestSpec) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteBackupRequestSpec. @@ -521,7 +490,6 @@ func (in *DeleteBackupRequestStatus) DeepCopyInto(out *DeleteBackupRequestStatus *out = make([]string, len(*in)) copy(*out, *in) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteBackupRequestStatus. @@ -541,7 +509,6 @@ func (in *DownloadRequest) DeepCopyInto(out *DownloadRequest) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadRequest. @@ -574,7 +541,6 @@ func (in *DownloadRequestList) DeepCopyInto(out *DownloadRequestList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadRequestList. @@ -599,7 +565,6 @@ func (in *DownloadRequestList) DeepCopyObject() runtime.Object { func (in *DownloadRequestSpec) DeepCopyInto(out *DownloadRequestSpec) { *out = *in out.Target = in.Target - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadRequestSpec. @@ -619,7 +584,6 @@ func (in *DownloadRequestStatus) DeepCopyInto(out *DownloadRequestStatus) { in, out := &in.Expiration, &out.Expiration *out = (*in).DeepCopy() } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadRequestStatus. @@ -635,7 +599,6 @@ func (in *DownloadRequestStatus) DeepCopy() *DownloadRequestStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DownloadTarget) DeepCopyInto(out *DownloadTarget) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadTarget. @@ -657,7 +620,6 @@ func (in *ExecHook) DeepCopyInto(out *ExecHook) { copy(*out, *in) } out.Timeout = in.Timeout - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecHook. @@ -680,7 +642,6 @@ func (in *ExecRestoreHook) DeepCopyInto(out *ExecRestoreHook) { } out.ExecTimeout = in.ExecTimeout out.WaitTimeout = in.WaitTimeout - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecRestoreHook. @@ -704,7 +665,6 @@ func (in *InitRestoreHook) DeepCopyInto(out *InitRestoreHook) { } } out.Timeout = in.Timeout - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitRestoreHook. @@ -727,7 +687,6 @@ func (in *Metadata) DeepCopyInto(out *Metadata) { (*out)[key] = val } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata. @@ -748,7 +707,6 @@ func (in *ObjectStorageLocation) DeepCopyInto(out *ObjectStorageLocation) { *out = make([]byte, len(*in)) copy(*out, *in) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageLocation. @@ -764,7 +722,6 @@ func (in *ObjectStorageLocation) DeepCopy() *ObjectStorageLocation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PluginInfo) DeepCopyInto(out *PluginInfo) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInfo. @@ -784,7 +741,6 @@ func (in *PodVolumeBackup) DeepCopyInto(out *PodVolumeBackup) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeBackup. @@ -817,7 +773,6 @@ func (in *PodVolumeBackupList) DeepCopyInto(out *PodVolumeBackupList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeBackupList. @@ -849,7 +804,6 @@ func (in *PodVolumeBackupSpec) DeepCopyInto(out *PodVolumeBackupSpec) { (*out)[key] = val } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeBackupSpec. @@ -874,7 +828,6 @@ func (in *PodVolumeBackupStatus) DeepCopyInto(out *PodVolumeBackupStatus) { *out = (*in).DeepCopy() } out.Progress = in.Progress - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeBackupStatus. @@ -890,7 +843,6 @@ func (in *PodVolumeBackupStatus) DeepCopy() *PodVolumeBackupStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodVolumeOperationProgress) DeepCopyInto(out *PodVolumeOperationProgress) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeOperationProgress. @@ -910,7 +862,6 @@ func (in *PodVolumeRestore) DeepCopyInto(out *PodVolumeRestore) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeRestore. @@ -943,7 +894,6 @@ func (in *PodVolumeRestoreList) DeepCopyInto(out *PodVolumeRestoreList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeRestoreList. @@ -968,7 +918,6 @@ func (in *PodVolumeRestoreList) DeepCopyObject() runtime.Object { func (in *PodVolumeRestoreSpec) DeepCopyInto(out *PodVolumeRestoreSpec) { *out = *in out.Pod = in.Pod - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeRestoreSpec. @@ -993,7 +942,6 @@ func (in *PodVolumeRestoreStatus) DeepCopyInto(out *PodVolumeRestoreStatus) { *out = (*in).DeepCopy() } out.Progress = in.Progress - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodVolumeRestoreStatus. @@ -1013,7 +961,6 @@ func (in *ResticRepository) DeepCopyInto(out *ResticRepository) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResticRepository. @@ -1046,7 +993,6 @@ func (in *ResticRepositoryList) DeepCopyInto(out *ResticRepositoryList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResticRepositoryList. @@ -1071,7 +1017,6 @@ func (in *ResticRepositoryList) DeepCopyObject() runtime.Object { func (in *ResticRepositorySpec) DeepCopyInto(out *ResticRepositorySpec) { *out = *in out.MaintenanceFrequency = in.MaintenanceFrequency - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResticRepositorySpec. @@ -1091,7 +1036,6 @@ func (in *ResticRepositoryStatus) DeepCopyInto(out *ResticRepositoryStatus) { in, out := &in.LastMaintenanceTime, &out.LastMaintenanceTime *out = (*in).DeepCopy() } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResticRepositoryStatus. @@ -1111,7 +1055,6 @@ func (in *Restore) DeepCopyInto(out *Restore) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore. @@ -1142,7 +1085,6 @@ func (in *RestoreHooks) DeepCopyInto(out *RestoreHooks) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreHooks. @@ -1167,7 +1109,6 @@ func (in *RestoreList) DeepCopyInto(out *RestoreList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreList. @@ -1191,7 +1132,6 @@ func (in *RestoreList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RestoreProgress) DeepCopyInto(out *RestoreProgress) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreProgress. @@ -1217,7 +1157,6 @@ func (in *RestoreResourceHook) DeepCopyInto(out *RestoreResourceHook) { *out = new(InitRestoreHook) (*in).DeepCopyInto(*out) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreResourceHook. @@ -1265,7 +1204,6 @@ func (in *RestoreResourceHookSpec) DeepCopyInto(out *RestoreResourceHookSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreResourceHookSpec. @@ -1329,7 +1267,6 @@ func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec) { **out = **in } in.Hooks.DeepCopyInto(&out.Hooks) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSpec. @@ -1363,7 +1300,6 @@ func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus) { *out = new(RestoreProgress) **out = **in } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreStatus. @@ -1383,7 +1319,6 @@ func (in *Schedule) DeepCopyInto(out *Schedule) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule. @@ -1416,7 +1351,6 @@ func (in *ScheduleList) DeepCopyInto(out *ScheduleList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleList. @@ -1446,7 +1380,6 @@ func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec) { *out = new(bool) **out = **in } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleSpec. @@ -1471,7 +1404,6 @@ func (in *ScheduleStatus) DeepCopyInto(out *ScheduleStatus) { *out = make([]string, len(*in)) copy(*out, *in) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleStatus. @@ -1491,7 +1423,6 @@ func (in *ServerStatusRequest) DeepCopyInto(out *ServerStatusRequest) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatusRequest. @@ -1524,7 +1455,6 @@ func (in *ServerStatusRequestList) DeepCopyInto(out *ServerStatusRequestList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatusRequestList. @@ -1548,7 +1478,6 @@ func (in *ServerStatusRequestList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServerStatusRequestSpec) DeepCopyInto(out *ServerStatusRequestSpec) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatusRequestSpec. @@ -1573,7 +1502,6 @@ func (in *ServerStatusRequestStatus) DeepCopyInto(out *ServerStatusRequestStatus *out = make([]PluginInfo, len(*in)) copy(*out, *in) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatusRequestStatus. @@ -1594,7 +1522,6 @@ func (in *StorageType) DeepCopyInto(out *StorageType) { *out = new(ObjectStorageLocation) (*in).DeepCopyInto(*out) } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageType. @@ -1614,7 +1541,6 @@ func (in *VolumeSnapshotLocation) DeepCopyInto(out *VolumeSnapshotLocation) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotLocation. @@ -1647,7 +1573,6 @@ func (in *VolumeSnapshotLocationList) DeepCopyInto(out *VolumeSnapshotLocationLi (*in)[i].DeepCopyInto(&(*out)[i]) } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotLocationList. @@ -1678,7 +1603,6 @@ func (in *VolumeSnapshotLocationSpec) DeepCopyInto(out *VolumeSnapshotLocationSp (*out)[key] = val } } - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotLocationSpec. @@ -1694,7 +1618,6 @@ func (in *VolumeSnapshotLocationSpec) DeepCopy() *VolumeSnapshotLocationSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VolumeSnapshotLocationStatus) DeepCopyInto(out *VolumeSnapshotLocationStatus) { *out = *in - return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotLocationStatus.