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
```

Kubernetes-commit: 84e0326eb1f108f0d7aa2e9e48fb0c4a8edb4bd5
This commit is contained in:
Kubernetes Publisher 2017-08-02 12:46:57 -07:00
commit b4b413abb1
4 changed files with 130 additions and 126 deletions

98
Godeps/Godeps.json generated
View File

@ -416,199 +416,199 @@
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/equality", "ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/errors", "ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/meta", "ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/resource", "ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery", "ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered", "ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion", "ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams", "ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/fields", "ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/labels", "ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/openapi", "ImportPath": "k8s.io/apimachinery/pkg/openapi",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime", "ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema", "ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/selection", "ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/types", "ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/cache", "ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/clock", "ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/diff", "ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/errors", "ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/framer", "ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr", "ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/json", "ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch", "ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/net", "ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand", "ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime", "ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/sets", "ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch", "ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation", "ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field", "ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/wait", "ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml", "ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/version", "ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/watch", "ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "806e2e07933f50f9edcf738b14a53ae8d2011ab3" "Rev": "10097186a05f7d03ca925ad0912be6185f4a202c"
} }
] ]
} }

View File

@ -25,7 +25,9 @@ import (
reflect "reflect" 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 { func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{ return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
@ -56,12 +58,12 @@ func (in *TLSClientConfig) DeepCopyInto(out *TLSClientConfig) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig.
func (x *TLSClientConfig) DeepCopy() *TLSClientConfig { func (in *TLSClientConfig) DeepCopy() *TLSClientConfig {
if x == nil { if in == nil {
return nil return nil
} }
out := new(TLSClientConfig) out := new(TLSClientConfig)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }

View File

@ -26,13 +26,14 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
@ -127,13 +128,13 @@ func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
func (x *AuthInfo) DeepCopy() *AuthInfo { func (in *AuthInfo) DeepCopy() *AuthInfo {
if x == nil { if in == nil {
return nil return nil
} }
out := new(AuthInfo) out := new(AuthInfo)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -150,13 +151,13 @@ func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
func (x *AuthProviderConfig) DeepCopy() *AuthProviderConfig { func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
if x == nil { if in == nil {
return nil return nil
} }
out := new(AuthProviderConfig) out := new(AuthProviderConfig)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -178,13 +179,13 @@ func (in *Cluster) DeepCopyInto(out *Cluster) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (x *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopy() *Cluster {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Cluster) out := new(Cluster)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -223,19 +224,19 @@ func (in *Config) DeepCopyInto(out *Config) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Config. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (x *Config) DeepCopy() *Config { func (in *Config) DeepCopy() *Config {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Config) out := new(Config)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Config) DeepCopyObject() runtime.Object { func (in *Config) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil { if c := in.DeepCopy(); c != nil {
return c return c
} else { } else {
return nil return nil
@ -255,13 +256,13 @@ func (in *Context) DeepCopyInto(out *Context) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Context. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
func (x *Context) DeepCopy() *Context { func (in *Context) DeepCopy() *Context {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Context) out := new(Context)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -272,13 +273,13 @@ func (in *NamedAuthInfo) DeepCopyInto(out *NamedAuthInfo) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo.
func (x *NamedAuthInfo) DeepCopy() *NamedAuthInfo { func (in *NamedAuthInfo) DeepCopy() *NamedAuthInfo {
if x == nil { if in == nil {
return nil return nil
} }
out := new(NamedAuthInfo) out := new(NamedAuthInfo)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -289,13 +290,13 @@ func (in *NamedCluster) DeepCopyInto(out *NamedCluster) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster.
func (x *NamedCluster) DeepCopy() *NamedCluster { func (in *NamedCluster) DeepCopy() *NamedCluster {
if x == nil { if in == nil {
return nil return nil
} }
out := new(NamedCluster) out := new(NamedCluster)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -306,13 +307,13 @@ func (in *NamedContext) DeepCopyInto(out *NamedContext) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext.
func (x *NamedContext) DeepCopy() *NamedContext { func (in *NamedContext) DeepCopy() *NamedContext {
if x == nil { if in == nil {
return nil return nil
} }
out := new(NamedContext) out := new(NamedContext)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -323,13 +324,13 @@ func (in *NamedExtension) DeepCopyInto(out *NamedExtension) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NamedExtension. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedExtension.
func (x *NamedExtension) DeepCopy() *NamedExtension { func (in *NamedExtension) DeepCopy() *NamedExtension {
if x == nil { if in == nil {
return nil return nil
} }
out := new(NamedExtension) out := new(NamedExtension)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -346,12 +347,12 @@ func (in *Preferences) DeepCopyInto(out *Preferences) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Preferences. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
func (x *Preferences) DeepCopy() *Preferences { func (in *Preferences) DeepCopy() *Preferences {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Preferences) out := new(Preferences)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }

View File

@ -26,13 +26,14 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
@ -115,13 +116,13 @@ func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
func (x *AuthInfo) DeepCopy() *AuthInfo { func (in *AuthInfo) DeepCopy() *AuthInfo {
if x == nil { if in == nil {
return nil return nil
} }
out := new(AuthInfo) out := new(AuthInfo)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -138,13 +139,13 @@ func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
func (x *AuthProviderConfig) DeepCopy() *AuthProviderConfig { func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
if x == nil { if in == nil {
return nil return nil
} }
out := new(AuthProviderConfig) out := new(AuthProviderConfig)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -170,13 +171,13 @@ func (in *Cluster) DeepCopyInto(out *Cluster) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (x *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopy() *Cluster {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Cluster) out := new(Cluster)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -234,19 +235,19 @@ func (in *Config) DeepCopyInto(out *Config) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Config. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (x *Config) DeepCopy() *Config { func (in *Config) DeepCopy() *Config {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Config) out := new(Config)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Config) DeepCopyObject() runtime.Object { func (in *Config) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil { if c := in.DeepCopy(); c != nil {
return c return c
} else { } else {
return nil return nil
@ -270,13 +271,13 @@ func (in *Context) DeepCopyInto(out *Context) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Context. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
func (x *Context) DeepCopy() *Context { func (in *Context) DeepCopy() *Context {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Context) out := new(Context)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }
@ -297,12 +298,12 @@ func (in *Preferences) DeepCopyInto(out *Preferences) {
return return
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Preferences. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
func (x *Preferences) DeepCopy() *Preferences { func (in *Preferences) DeepCopy() *Preferences {
if x == nil { if in == nil {
return nil return nil
} }
out := new(Preferences) out := new(Preferences)
x.DeepCopyInto(out) in.DeepCopyInto(out)
return out return out
} }