Update generated code
This commit is contained in:
@@ -17,7 +17,6 @@ go_library(
|
||||
importpath = "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm",
|
||||
deps = [
|
||||
"//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",
|
||||
],
|
||||
|
||||
@@ -22,51 +22,9 @@ package v1alpha1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
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.(*API).DeepCopyInto(out.(*API))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&API{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Etcd).DeepCopyInto(out.(*Etcd))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Etcd{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*HostPathMount).DeepCopyInto(out.(*HostPathMount))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&HostPathMount{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&MasterConfiguration{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Networking).DeepCopyInto(out.(*Networking))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Networking{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&NodeConfiguration{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*SelfHostedEtcd).DeepCopyInto(out.(*SelfHostedEtcd))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&SelfHostedEtcd{})},
|
||||
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&TokenDiscovery{})},
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *API) DeepCopyInto(out *API) {
|
||||
*out = *in
|
||||
|
||||
@@ -22,56 +22,9 @@ package kubeadm
|
||||
|
||||
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.(*API).DeepCopyInto(out.(*API))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&API{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Etcd).DeepCopyInto(out.(*Etcd))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Etcd{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*HostPathMount).DeepCopyInto(out.(*HostPathMount))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&HostPathMount{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&MasterConfiguration{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Networking).DeepCopyInto(out.(*Networking))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Networking{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&NodeConfiguration{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*SelfHostedEtcd).DeepCopyInto(out.(*SelfHostedEtcd))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&SelfHostedEtcd{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&TokenDiscovery{})},
|
||||
)
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *API) DeepCopyInto(out *API) {
|
||||
*out = *in
|
||||
|
||||
@@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
"doc.go",
|
||||
"spec.go",
|
||||
"zz_generated.deepcopy.go",
|
||||
],
|
||||
@@ -11,7 +12,6 @@ go_library(
|
||||
deps = [
|
||||
"//vendor/k8s.io/api/core/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",
|
||||
],
|
||||
|
||||
@@ -21,58 +21,10 @@ limitations under the License.
|
||||
package spec
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
|
||||
v1 "k8s.io/api/core/v1"
|
||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
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.(*ClusterSpec).DeepCopyInto(out.(*ClusterSpec))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterSpec{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*EtcdCluster).DeepCopyInto(out.(*EtcdCluster))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&EtcdCluster{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*EtcdClusterList).DeepCopyInto(out.(*EtcdClusterList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&EtcdClusterList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*MemberSecret).DeepCopyInto(out.(*MemberSecret))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&MemberSecret{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*PodPolicy).DeepCopyInto(out.(*PodPolicy))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&PodPolicy{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*SelfHostedPolicy).DeepCopyInto(out.(*SelfHostedPolicy))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&SelfHostedPolicy{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*StaticTLS).DeepCopyInto(out.(*StaticTLS))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&StaticTLS{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*TLSPolicy).DeepCopyInto(out.(*TLSPolicy))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&TLSPolicy{})},
|
||||
)
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
|
||||
*out = *in
|
||||
@@ -137,7 +89,11 @@ func (in *EtcdCluster) DeepCopy() *EtcdCluster {
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *EtcdCluster) DeepCopyObject() runtime.Object {
|
||||
return in.DeepCopy()
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
@@ -167,7 +123,11 @@ func (in *EtcdClusterList) DeepCopy() *EtcdClusterList {
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *EtcdClusterList) DeepCopyObject() runtime.Object {
|
||||
return in.DeepCopy()
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
|
||||
Reference in New Issue
Block a user