mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-02-07 22:32:55 +08:00
Update generated code
Kubernetes-commit: 1e79dfb959896f2e51be87ecef491452bd17724c
This commit is contained in:
parent
04e0ebc686
commit
e46caf46ff
@ -12,7 +12,6 @@ go_library(
|
|||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/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:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
||||||
"//vendor/k8s.io/sample-controller/pkg/apis/samplecontroller:go_default_library",
|
"//vendor/k8s.io/sample-controller/pkg/apis/samplecontroller:go_default_library",
|
||||||
|
@ -21,40 +21,9 @@ limitations under the License.
|
|||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
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.(*Foo).DeepCopyInto(out.(*Foo))
|
|
||||||
return nil
|
|
||||||
}, InType: reflect.TypeOf(&Foo{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
in.(*FooList).DeepCopyInto(out.(*FooList))
|
|
||||||
return nil
|
|
||||||
}, InType: reflect.TypeOf(&FooList{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
in.(*FooSpec).DeepCopyInto(out.(*FooSpec))
|
|
||||||
return nil
|
|
||||||
}, InType: reflect.TypeOf(&FooSpec{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
in.(*FooStatus).DeepCopyInto(out.(*FooStatus))
|
|
||||||
return nil
|
|
||||||
}, InType: reflect.TypeOf(&FooStatus{})},
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *Foo) DeepCopyInto(out *Foo) {
|
func (in *Foo) DeepCopyInto(out *Foo) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
Loading…
Reference in New Issue
Block a user