Merge pull request #49782 from supereagle/update-generated-deepcopy

Automatic merge from submit-queue (batch tested with PRs 50029, 48517, 49739, 49866, 49782)

Update generated deepcopy code

**What this PR does / why we need it**:
In generated deepcopy code, the method names in comments do not match the real method names.

**Which issue this PR fixes**: fixes #49755

**Special notes for your reviewer**:
/assign @sttts @caesarxuchao 


**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue
2017-08-02 12:46:57 -07:00
committed by GitHub
99 changed files with 5368 additions and 5246 deletions

View File

@@ -26,7 +26,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
@@ -48,19 +50,19 @@ func (in *MetadataOnlyObject) DeepCopyInto(out *MetadataOnlyObject) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObject.
func (x *MetadataOnlyObject) DeepCopy() *MetadataOnlyObject {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObject.
func (in *MetadataOnlyObject) DeepCopy() *MetadataOnlyObject {
if in == nil {
return nil
}
out := new(MetadataOnlyObject)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MetadataOnlyObject) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *MetadataOnlyObject) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@@ -82,19 +84,19 @@ func (in *MetadataOnlyObjectList) DeepCopyInto(out *MetadataOnlyObjectList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObjectList.
func (x *MetadataOnlyObjectList) DeepCopy() *MetadataOnlyObjectList {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObjectList.
func (in *MetadataOnlyObjectList) DeepCopy() *MetadataOnlyObjectList {
if in == nil {
return nil
}
out := new(MetadataOnlyObjectList)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MetadataOnlyObjectList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *MetadataOnlyObjectList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil