Merge pull request #55396 from sttts/sttts-drop-deepcopy-registration

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

deepcopy: remove unused deepcopy func registration

Counterpart to https://github.com/kubernetes/gengo/pull/67.

Kubernetes-commit: 7c8596a95fb37e3c1318e25ae505989122bd4e56
This commit is contained in:
Kubernetes Publisher 2017-11-10 13:35:23 -08:00
commit 1fa4c00827
11 changed files with 83 additions and 224 deletions

160
Godeps/Godeps.json generated
View File

@ -372,323 +372,323 @@
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/apps/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/apps/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/apps/v1beta2",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/authentication/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/authentication/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/authorization/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/authorization/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/autoscaling/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/batch/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/batch/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/batch/v2alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/certificates/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/core/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/extensions/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/networking/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/policy/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/rbac/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/rbac/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/rbac/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/settings/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/storage/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/api/storage/v1beta1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "5f4007a0e958f38dac0d273902a612407572f91f"
"Rev": "a9cb6e84984eea03e544d1838305650995a7ea05"
},
{
"ImportPath": "k8s.io/kube-openapi/pkg/common",

View File

@ -65,7 +65,6 @@ go_library(
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer/streaming:go_default_library",

View File

@ -20,23 +20,6 @@ limitations under the License.
package rest
import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)
// 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 {
in.(*TLSClientConfig).DeepCopyInto(out.(*TLSClientConfig))
return nil
}, InType: reflect.TypeOf(&TLSClientConfig{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TLSClientConfig) DeepCopyInto(out *TLSClientConfig) {
*out = *in

View File

@ -13,7 +13,6 @@ go_library(
deps = [
"//vendor/k8s.io/api/autoscaling/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
],

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// +k8s:deepcopy-gen=package,register
// +k8s:deepcopy-gen=package
// Package scheme contains a runtime.Scheme to be used for serializing
// and deserializing different versions of Scale, and for converting

View File

@ -22,36 +22,9 @@ package scheme
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Scale).DeepCopyInto(out.(*Scale))
return nil
}, InType: reflect.TypeOf(&Scale{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ScaleSpec).DeepCopyInto(out.(*ScaleSpec))
return nil
}, InType: reflect.TypeOf(&ScaleSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ScaleStatus).DeepCopyInto(out.(*ScaleStatus))
return nil
}, InType: reflect.TypeOf(&ScaleStatus{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Scale) DeepCopyInto(out *Scale) {
*out = *in

View File

@ -28,7 +28,6 @@ go_library(
],
importpath = "k8s.io/client-go/tools/clientcmd/api",
deps = [
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
],

View File

@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// +k8s:deepcopy-gen=package,register
// +k8s:deepcopy-gen=package
package api

View File

@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// +k8s:deepcopy-gen=package,register
// +k8s:deepcopy-gen=package
package v1

View File

@ -21,64 +21,9 @@ limitations under the License.
package v1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AuthInfo).DeepCopyInto(out.(*AuthInfo))
return nil
}, InType: reflect.TypeOf(&AuthInfo{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AuthProviderConfig).DeepCopyInto(out.(*AuthProviderConfig))
return nil
}, InType: reflect.TypeOf(&AuthProviderConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Cluster).DeepCopyInto(out.(*Cluster))
return nil
}, InType: reflect.TypeOf(&Cluster{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Config).DeepCopyInto(out.(*Config))
return nil
}, InType: reflect.TypeOf(&Config{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Context).DeepCopyInto(out.(*Context))
return nil
}, InType: reflect.TypeOf(&Context{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NamedAuthInfo).DeepCopyInto(out.(*NamedAuthInfo))
return nil
}, InType: reflect.TypeOf(&NamedAuthInfo{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NamedCluster).DeepCopyInto(out.(*NamedCluster))
return nil
}, InType: reflect.TypeOf(&NamedCluster{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NamedContext).DeepCopyInto(out.(*NamedContext))
return nil
}, InType: reflect.TypeOf(&NamedContext{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NamedExtension).DeepCopyInto(out.(*NamedExtension))
return nil
}, InType: reflect.TypeOf(&NamedExtension{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Preferences).DeepCopyInto(out.(*Preferences))
return nil
}, InType: reflect.TypeOf(&Preferences{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
*out = *in

View File

@ -21,48 +21,9 @@ limitations under the License.
package api
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
//
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AuthInfo).DeepCopyInto(out.(*AuthInfo))
return nil
}, InType: reflect.TypeOf(&AuthInfo{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AuthProviderConfig).DeepCopyInto(out.(*AuthProviderConfig))
return nil
}, InType: reflect.TypeOf(&AuthProviderConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Cluster).DeepCopyInto(out.(*Cluster))
return nil
}, InType: reflect.TypeOf(&Cluster{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Config).DeepCopyInto(out.(*Config))
return nil
}, InType: reflect.TypeOf(&Config{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Context).DeepCopyInto(out.(*Context))
return nil
}, InType: reflect.TypeOf(&Context{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Preferences).DeepCopyInto(out.(*Preferences))
return nil
}, InType: reflect.TypeOf(&Preferences{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
*out = *in