Update generated code

Kubernetes-commit: 8dd0989b395b29b872e1f5e06934721863e4a210
This commit is contained in:
Dr. Stefan Schimanski 2017-07-06 10:07:09 +02:00 committed by Kubernetes Publisher
parent 42619eca71
commit e24df9a2e5
15 changed files with 1266 additions and 740 deletions

View File

@ -26,51 +26,72 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionConfiguration, InType: reflect.TypeOf(&AdmissionConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionPluginConfiguration, InType: reflect.TypeOf(&AdmissionPluginConfiguration{})}, in.(*AdmissionConfiguration).DeepCopyInto(out.(*AdmissionConfiguration))
return nil
}, InType: reflect.TypeOf(&AdmissionConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionPluginConfiguration).DeepCopyInto(out.(*AdmissionPluginConfiguration))
return nil
}, InType: reflect.TypeOf(&AdmissionPluginConfiguration{})},
) )
} }
// DeepCopy_v1alpha1_AdmissionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_AdmissionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionConfiguration) DeepCopyInto(out *AdmissionConfiguration) {
{
in := in.(*AdmissionConfiguration)
out := out.(*AdmissionConfiguration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.Plugins != nil { if in.Plugins != nil {
in, out := &in.Plugins, &out.Plugins in, out := &in.Plugins, &out.Plugins
*out = make([]AdmissionPluginConfiguration, len(*in)) *out = make([]AdmissionPluginConfiguration, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (x *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if x == nil {
return nil
}
out := new(AdmissionConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*AdmissionPluginConfiguration)
}
}
}
return nil return nil
} }
} }
// DeepCopy_v1alpha1_AdmissionPluginConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_AdmissionPluginConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionPluginConfiguration) DeepCopyInto(out *AdmissionPluginConfiguration) {
{
in := in.(*AdmissionPluginConfiguration)
out := out.(*AdmissionPluginConfiguration)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.Configuration); err != nil { in.Configuration.DeepCopyInto(&out.Configuration)
return err return
} else { }
out.Configuration = *newVal.(*runtime.RawExtension)
} // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (x *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if x == nil {
return nil return nil
} }
out := new(AdmissionPluginConfiguration)
x.DeepCopyInto(out)
return out
} }

View File

@ -26,54 +26,76 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apiserver_AdmissionConfiguration, InType: reflect.TypeOf(&AdmissionConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apiserver_AdmissionPluginConfiguration, InType: reflect.TypeOf(&AdmissionPluginConfiguration{})}, in.(*AdmissionConfiguration).DeepCopyInto(out.(*AdmissionConfiguration))
return nil
}, InType: reflect.TypeOf(&AdmissionConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionPluginConfiguration).DeepCopyInto(out.(*AdmissionPluginConfiguration))
return nil
}, InType: reflect.TypeOf(&AdmissionPluginConfiguration{})},
) )
} }
// DeepCopy_apiserver_AdmissionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apiserver_AdmissionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionConfiguration) DeepCopyInto(out *AdmissionConfiguration) {
{
in := in.(*AdmissionConfiguration)
out := out.(*AdmissionConfiguration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.Plugins != nil { if in.Plugins != nil {
in, out := &in.Plugins, &out.Plugins in, out := &in.Plugins, &out.Plugins
*out = make([]AdmissionPluginConfiguration, len(*in)) *out = make([]AdmissionPluginConfiguration, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (x *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if x == nil {
return nil
}
out := new(AdmissionConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*AdmissionPluginConfiguration)
}
}
}
return nil return nil
} }
} }
// DeepCopy_apiserver_AdmissionPluginConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apiserver_AdmissionPluginConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionPluginConfiguration) DeepCopyInto(out *AdmissionPluginConfiguration) {
{
in := in.(*AdmissionPluginConfiguration)
out := out.(*AdmissionPluginConfiguration)
*out = *in *out = *in
// in.Configuration is kind 'Interface' if in.Configuration == nil {
if in.Configuration != nil { out.Configuration = nil
if newVal, err := c.DeepCopy(&in.Configuration); err != nil {
return err
} else { } else {
out.Configuration = *newVal.(*runtime.Object) out.Configuration = in.Configuration.DeepCopyObject()
}
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (x *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if x == nil {
return nil return nil
} }
out := new(AdmissionPluginConfiguration)
x.DeepCopyInto(out)
return out
} }

View File

@ -21,51 +21,67 @@ limitations under the License.
package v1alpha1 package v1alpha1
import ( import (
authentication_v1 "k8s.io/api/authentication/v1" v1 "k8s.io/api/authentication/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Event, InType: reflect.TypeOf(&Event{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_EventList, InType: reflect.TypeOf(&EventList{})}, in.(*Event).DeepCopyInto(out.(*Event))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_GroupResources, InType: reflect.TypeOf(&GroupResources{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, }, InType: reflect.TypeOf(&Event{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Policy, InType: reflect.TypeOf(&Policy{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PolicyList, InType: reflect.TypeOf(&PolicyList{})}, in.(*EventList).DeepCopyInto(out.(*EventList))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, return nil
}, InType: reflect.TypeOf(&EventList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*GroupResources).DeepCopyInto(out.(*GroupResources))
return nil
}, InType: reflect.TypeOf(&GroupResources{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ObjectReference).DeepCopyInto(out.(*ObjectReference))
return nil
}, InType: reflect.TypeOf(&ObjectReference{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Policy).DeepCopyInto(out.(*Policy))
return nil
}, InType: reflect.TypeOf(&Policy{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicyList).DeepCopyInto(out.(*PolicyList))
return nil
}, InType: reflect.TypeOf(&PolicyList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule))
return nil
}, InType: reflect.TypeOf(&PolicyRule{})},
) )
} }
// DeepCopy_v1alpha1_Event is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_Event(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Event) DeepCopyInto(out *Event) {
{
in := in.(*Event)
out := out.(*Event)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else { in.Timestamp.DeepCopyInto(&out.Timestamp)
out.ObjectMeta = *newVal.(*v1.ObjectMeta) in.User.DeepCopyInto(&out.User)
}
out.Timestamp = in.Timestamp.DeepCopy()
if err := authentication_v1.DeepCopy_v1_UserInfo(&in.User, &out.User, c); err != nil {
return err
}
if in.ImpersonatedUser != nil { if in.ImpersonatedUser != nil {
in, out := &in.ImpersonatedUser, &out.ImpersonatedUser in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
*out = new(authentication_v1.UserInfo) if *in == nil {
if err := authentication_v1.DeepCopy_v1_UserInfo(*in, *out, c); err != nil { *out = nil
return err } else {
*out = new(v1.UserInfo)
(*in).DeepCopyInto(*out)
} }
} }
if in.SourceIPs != nil { if in.SourceIPs != nil {
@ -75,135 +91,203 @@ func DeepCopy_v1alpha1_Event(in interface{}, out interface{}, c *conversion.Clon
} }
if in.ObjectRef != nil { if in.ObjectRef != nil {
in, out := &in.ObjectRef, &out.ObjectRef in, out := &in.ObjectRef, &out.ObjectRef
if *in == nil {
*out = nil
} else {
*out = new(ObjectReference) *out = new(ObjectReference)
**out = **in **out = **in
} }
}
if in.ResponseStatus != nil { if in.ResponseStatus != nil {
in, out := &in.ResponseStatus, &out.ResponseStatus in, out := &in.ResponseStatus, &out.ResponseStatus
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.Status) *out = new(meta_v1.Status)
(*in).DeepCopyInto(*out)
} }
} }
if in.RequestObject != nil { if in.RequestObject != nil {
in, out := &in.RequestObject, &out.RequestObject in, out := &in.RequestObject, &out.RequestObject
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*runtime.Unknown) *out = new(runtime.Unknown)
(*in).DeepCopyInto(*out)
} }
} }
if in.ResponseObject != nil { if in.ResponseObject != nil {
in, out := &in.ResponseObject, &out.ResponseObject in, out := &in.ResponseObject, &out.ResponseObject
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*runtime.Unknown) *out = new(runtime.Unknown)
(*in).DeepCopyInto(*out)
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (x *Event) DeepCopy() *Event {
if x == nil {
return nil
}
out := new(Event)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Event) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_EventList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *EventList) DeepCopyInto(out *EventList) {
{
in := in.(*EventList)
out := out.(*EventList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Event, len(*in)) *out = make([]Event, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (x *EventList) DeepCopy() *EventList {
if x == nil {
return nil
}
out := new(EventList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *EventList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Event)
}
}
}
return nil return nil
} }
} }
// DeepCopy_v1alpha1_GroupResources is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_GroupResources(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *GroupResources) DeepCopyInto(out *GroupResources) {
{
in := in.(*GroupResources)
out := out.(*GroupResources)
*out = *in *out = *in
if in.Resources != nil { if in.Resources != nil {
in, out := &in.Resources, &out.Resources in, out := &in.Resources, &out.Resources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_v1alpha1_ObjectReference is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
func DeepCopy_v1alpha1_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *GroupResources) DeepCopy() *GroupResources {
{ if x == nil {
in := in.(*ObjectReference)
out := out.(*ObjectReference)
*out = *in
return nil return nil
} }
out := new(GroupResources)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_v1alpha1_Policy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_Policy(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
{
in := in.(*Policy)
out := out.(*Policy)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { return
return err }
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (x *ObjectReference) DeepCopy() *ObjectReference {
if x == nil {
return nil
} }
out := new(ObjectReference)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Policy) DeepCopyInto(out *Policy) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]PolicyRule, len(*in)) *out = make([]PolicyRule, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
return nil
}
out := new(Policy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*PolicyRule)
}
}
}
return nil return nil
} }
} }
// DeepCopy_v1alpha1_PolicyList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_PolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicyList) DeepCopyInto(out *PolicyList) {
{
in := in.(*PolicyList)
out := out.(*PolicyList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Policy, len(*in)) *out = make([]Policy, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (x *PolicyList) DeepCopy() *PolicyList {
if x == nil {
return nil
}
out := new(PolicyList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PolicyList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Policy)
}
}
}
return nil return nil
} }
} }
// DeepCopy_v1alpha1_PolicyRule is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
{
in := in.(*PolicyRule)
out := out.(*PolicyRule)
*out = *in *out = *in
if in.Users != nil { if in.Users != nil {
in, out := &in.Users, &out.Users in, out := &in.Users, &out.Users
@ -224,11 +308,7 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion
in, out := &in.Resources, &out.Resources in, out := &in.Resources, &out.Resources
*out = make([]GroupResources, len(*in)) *out = make([]GroupResources, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} else {
(*out)[i] = *newVal.(*GroupResources)
}
} }
} }
if in.Namespaces != nil { if in.Namespaces != nil {
@ -241,6 +321,15 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
func (x *PolicyRule) DeepCopy() *PolicyRule {
if x == nil {
return nil return nil
} }
out := new(PolicyRule)
x.DeepCopyInto(out)
return out
} }

View File

@ -27,43 +27,58 @@ import (
reflect "reflect" reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{ return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_audit_Event, InType: reflect.TypeOf(&Event{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
{Fn: DeepCopy_audit_EventList, InType: reflect.TypeOf(&EventList{})}, in.(*Event).DeepCopyInto(out.(*Event))
{Fn: DeepCopy_audit_GroupResources, InType: reflect.TypeOf(&GroupResources{})}, return nil
{Fn: DeepCopy_audit_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, }, InType: reflect.TypeOf(&Event{})},
{Fn: DeepCopy_audit_Policy, InType: reflect.TypeOf(&Policy{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
{Fn: DeepCopy_audit_PolicyList, InType: reflect.TypeOf(&PolicyList{})}, in.(*EventList).DeepCopyInto(out.(*EventList))
{Fn: DeepCopy_audit_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, return nil
{Fn: DeepCopy_audit_UserInfo, InType: reflect.TypeOf(&UserInfo{})}, }, InType: reflect.TypeOf(&EventList{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*GroupResources).DeepCopyInto(out.(*GroupResources))
return nil
}, InType: reflect.TypeOf(&GroupResources{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ObjectReference).DeepCopyInto(out.(*ObjectReference))
return nil
}, InType: reflect.TypeOf(&ObjectReference{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Policy).DeepCopyInto(out.(*Policy))
return nil
}, InType: reflect.TypeOf(&Policy{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicyList).DeepCopyInto(out.(*PolicyList))
return nil
}, InType: reflect.TypeOf(&PolicyList{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule))
return nil
}, InType: reflect.TypeOf(&PolicyRule{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*UserInfo).DeepCopyInto(out.(*UserInfo))
return nil
}, InType: reflect.TypeOf(&UserInfo{})},
} }
} }
// DeepCopy_audit_Event is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_Event(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Event) DeepCopyInto(out *Event) {
{
in := in.(*Event)
out := out.(*Event)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else { in.Timestamp.DeepCopyInto(&out.Timestamp)
out.ObjectMeta = *newVal.(*v1.ObjectMeta) in.User.DeepCopyInto(&out.User)
}
out.Timestamp = in.Timestamp.DeepCopy()
if newVal, err := c.DeepCopy(&in.User); err != nil {
return err
} else {
out.User = *newVal.(*UserInfo)
}
if in.ImpersonatedUser != nil { if in.ImpersonatedUser != nil {
in, out := &in.ImpersonatedUser, &out.ImpersonatedUser in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*UserInfo) *out = new(UserInfo)
(*in).DeepCopyInto(*out)
} }
} }
if in.SourceIPs != nil { if in.SourceIPs != nil {
@ -73,135 +88,203 @@ func DeepCopy_audit_Event(in interface{}, out interface{}, c *conversion.Cloner)
} }
if in.ObjectRef != nil { if in.ObjectRef != nil {
in, out := &in.ObjectRef, &out.ObjectRef in, out := &in.ObjectRef, &out.ObjectRef
if *in == nil {
*out = nil
} else {
*out = new(ObjectReference) *out = new(ObjectReference)
**out = **in **out = **in
} }
}
if in.ResponseStatus != nil { if in.ResponseStatus != nil {
in, out := &in.ResponseStatus, &out.ResponseStatus in, out := &in.ResponseStatus, &out.ResponseStatus
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.Status) *out = new(v1.Status)
(*in).DeepCopyInto(*out)
} }
} }
if in.RequestObject != nil { if in.RequestObject != nil {
in, out := &in.RequestObject, &out.RequestObject in, out := &in.RequestObject, &out.RequestObject
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*runtime.Unknown) *out = new(runtime.Unknown)
(*in).DeepCopyInto(*out)
} }
} }
if in.ResponseObject != nil { if in.ResponseObject != nil {
in, out := &in.ResponseObject, &out.ResponseObject in, out := &in.ResponseObject, &out.ResponseObject
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*runtime.Unknown) *out = new(runtime.Unknown)
(*in).DeepCopyInto(*out)
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (x *Event) DeepCopy() *Event {
if x == nil {
return nil
}
out := new(Event)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Event) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_audit_EventList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *EventList) DeepCopyInto(out *EventList) {
{
in := in.(*EventList)
out := out.(*EventList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Event, len(*in)) *out = make([]Event, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (x *EventList) DeepCopy() *EventList {
if x == nil {
return nil
}
out := new(EventList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *EventList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Event)
}
}
}
return nil return nil
} }
} }
// DeepCopy_audit_GroupResources is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_GroupResources(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *GroupResources) DeepCopyInto(out *GroupResources) {
{
in := in.(*GroupResources)
out := out.(*GroupResources)
*out = *in *out = *in
if in.Resources != nil { if in.Resources != nil {
in, out := &in.Resources, &out.Resources in, out := &in.Resources, &out.Resources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_audit_ObjectReference is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
func DeepCopy_audit_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *GroupResources) DeepCopy() *GroupResources {
{ if x == nil {
in := in.(*ObjectReference)
out := out.(*ObjectReference)
*out = *in
return nil return nil
} }
out := new(GroupResources)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_audit_Policy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_Policy(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
{
in := in.(*Policy)
out := out.(*Policy)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { return
return err }
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (x *ObjectReference) DeepCopy() *ObjectReference {
if x == nil {
return nil
} }
out := new(ObjectReference)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Policy) DeepCopyInto(out *Policy) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]PolicyRule, len(*in)) *out = make([]PolicyRule, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
return nil
}
out := new(Policy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*PolicyRule)
}
}
}
return nil return nil
} }
} }
// DeepCopy_audit_PolicyList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_PolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicyList) DeepCopyInto(out *PolicyList) {
{
in := in.(*PolicyList)
out := out.(*PolicyList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Policy, len(*in)) *out = make([]Policy, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (x *PolicyList) DeepCopy() *PolicyList {
if x == nil {
return nil
}
out := new(PolicyList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PolicyList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Policy)
}
}
}
return nil return nil
} }
} }
// DeepCopy_audit_PolicyRule is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_audit_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
{
in := in.(*PolicyRule)
out := out.(*PolicyRule)
*out = *in *out = *in
if in.Users != nil { if in.Users != nil {
in, out := &in.Users, &out.Users in, out := &in.Users, &out.Users
@ -222,11 +305,7 @@ func DeepCopy_audit_PolicyRule(in interface{}, out interface{}, c *conversion.Cl
in, out := &in.Resources, &out.Resources in, out := &in.Resources, &out.Resources
*out = make([]GroupResources, len(*in)) *out = make([]GroupResources, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} else {
(*out)[i] = *newVal.(*GroupResources)
}
} }
} }
if in.Namespaces != nil { if in.Namespaces != nil {
@ -239,15 +318,21 @@ func DeepCopy_audit_PolicyRule(in interface{}, out interface{}, c *conversion.Cl
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_audit_UserInfo is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
func DeepCopy_audit_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PolicyRule) DeepCopy() *PolicyRule {
{ if x == nil {
in := in.(*UserInfo) return nil
out := out.(*UserInfo) }
out := new(PolicyRule)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UserInfo) DeepCopyInto(out *UserInfo) {
*out = *in *out = *in
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
@ -256,15 +341,21 @@ func DeepCopy_audit_UserInfo(in interface{}, out interface{}, c *conversion.Clon
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
*out = make(map[string]ExtraValue) *out = make(map[string]ExtraValue, len(*in))
for key, val := range *in { for key, val := range *in {
if newVal, err := c.DeepCopy(&val); err != nil { (*out)[key] = make(ExtraValue, len(val))
return err copy((*out)[key], val)
} else {
(*out)[key] = *newVal.(*ExtraValue)
}
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
func (x *UserInfo) DeepCopy() *UserInfo {
if x == nil {
return nil return nil
} }
out := new(UserInfo)
x.DeepCopyInto(out)
return out
} }

View File

@ -27,129 +27,188 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Pod, InType: reflect.TypeOf(&Pod{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, in.(*Pod).DeepCopyInto(out.(*Pod))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodList, InType: reflect.TypeOf(&PodList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, }, InType: reflect.TypeOf(&Pod{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodCondition).DeepCopyInto(out.(*PodCondition))
return nil
}, InType: reflect.TypeOf(&PodCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodList).DeepCopyInto(out.(*PodList))
return nil
}, InType: reflect.TypeOf(&PodList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodSpec).DeepCopyInto(out.(*PodSpec))
return nil
}, InType: reflect.TypeOf(&PodSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodStatus).DeepCopyInto(out.(*PodStatus))
return nil
}, InType: reflect.TypeOf(&PodStatus{})},
) )
} }
// DeepCopy_v1_Pod is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Pod) DeepCopyInto(out *Pod) {
{
in := in.(*Pod)
out := out.(*Pod)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else { in.Spec.DeepCopyInto(&out.Spec)
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta) in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (x *Pod) DeepCopy() *Pod {
if x == nil {
return nil
} }
if newVal, err := c.DeepCopy(&in.Spec); err != nil { out := new(Pod)
return err x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Pod) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.Spec = *newVal.(*PodSpec)
}
if newVal, err := c.DeepCopy(&in.Status); err != nil {
return err
} else {
out.Status = *newVal.(*PodStatus)
}
return nil return nil
} }
} }
// DeepCopy_v1_PodCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodCondition) DeepCopyInto(out *PodCondition) {
{
in := in.(*PodCondition)
out := out.(*PodCondition)
*out = *in *out = *in
out.LastProbeTime = in.LastProbeTime.DeepCopy() in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_v1_PodList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func DeepCopy_v1_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodCondition) DeepCopy() *PodCondition {
{ if x == nil {
in := in.(*PodList) return nil
out := out.(*PodList) }
out := new(PodCondition)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodList) DeepCopyInto(out *PodList) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Pod, len(*in)) *out = make([]Pod, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (x *PodList) DeepCopy() *PodList {
if x == nil {
return nil
}
out := new(PodList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Pod)
}
}
}
return nil return nil
} }
} }
// DeepCopy_v1_PodSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodSpec) DeepCopyInto(out *PodSpec) {
{
in := in.(*PodSpec)
out := out.(*PodSpec)
*out = *in *out = *in
if in.TerminationGracePeriodSeconds != nil { if in.TerminationGracePeriodSeconds != nil {
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.NodeSelector != nil { if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector in, out := &in.NodeSelector, &out.NodeSelector
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return nil return
}
} }
// DeepCopy_v1_PodStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodSpec) DeepCopy() *PodSpec {
{ if x == nil {
in := in.(*PodStatus) return nil
out := out.(*PodStatus) }
out := new(PodSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodStatus) DeepCopyInto(out *PodStatus) {
*out = *in *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]PodCondition, len(*in)) *out = make([]PodCondition, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} else {
(*out)[i] = *newVal.(*PodCondition)
}
} }
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
if *in == nil {
*out = nil
} else {
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() (*in).DeepCopyInto(*out)
} }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (x *PodStatus) DeepCopy() *PodStatus {
if x == nil {
return nil return nil
} }
out := new(PodStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -27,129 +27,188 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_example_Pod, InType: reflect.TypeOf(&Pod{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_example_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, in.(*Pod).DeepCopyInto(out.(*Pod))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_example_PodList, InType: reflect.TypeOf(&PodList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_example_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, }, InType: reflect.TypeOf(&Pod{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_example_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodCondition).DeepCopyInto(out.(*PodCondition))
return nil
}, InType: reflect.TypeOf(&PodCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodList).DeepCopyInto(out.(*PodList))
return nil
}, InType: reflect.TypeOf(&PodList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodSpec).DeepCopyInto(out.(*PodSpec))
return nil
}, InType: reflect.TypeOf(&PodSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodStatus).DeepCopyInto(out.(*PodStatus))
return nil
}, InType: reflect.TypeOf(&PodStatus{})},
) )
} }
// DeepCopy_example_Pod is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_example_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Pod) DeepCopyInto(out *Pod) {
{
in := in.(*Pod)
out := out.(*Pod)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else { in.Spec.DeepCopyInto(&out.Spec)
out.ObjectMeta = *newVal.(*v1.ObjectMeta) in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (x *Pod) DeepCopy() *Pod {
if x == nil {
return nil
} }
if newVal, err := c.DeepCopy(&in.Spec); err != nil { out := new(Pod)
return err x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Pod) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.Spec = *newVal.(*PodSpec)
}
if newVal, err := c.DeepCopy(&in.Status); err != nil {
return err
} else {
out.Status = *newVal.(*PodStatus)
}
return nil return nil
} }
} }
// DeepCopy_example_PodCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_example_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodCondition) DeepCopyInto(out *PodCondition) {
{
in := in.(*PodCondition)
out := out.(*PodCondition)
*out = *in *out = *in
out.LastProbeTime = in.LastProbeTime.DeepCopy() in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_example_PodList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func DeepCopy_example_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodCondition) DeepCopy() *PodCondition {
{ if x == nil {
in := in.(*PodList) return nil
out := out.(*PodList) }
out := new(PodCondition)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodList) DeepCopyInto(out *PodList) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Pod, len(*in)) *out = make([]Pod, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (x *PodList) DeepCopy() *PodList {
if x == nil {
return nil
}
out := new(PodList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Pod)
}
}
}
return nil return nil
} }
} }
// DeepCopy_example_PodSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_example_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodSpec) DeepCopyInto(out *PodSpec) {
{
in := in.(*PodSpec)
out := out.(*PodSpec)
*out = *in *out = *in
if in.TerminationGracePeriodSeconds != nil { if in.TerminationGracePeriodSeconds != nil {
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.NodeSelector != nil { if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector in, out := &in.NodeSelector, &out.NodeSelector
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return nil return
}
} }
// DeepCopy_example_PodStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func DeepCopy_example_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodSpec) DeepCopy() *PodSpec {
{ if x == nil {
in := in.(*PodStatus) return nil
out := out.(*PodStatus) }
out := new(PodSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodStatus) DeepCopyInto(out *PodStatus) {
*out = *in *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]PodCondition, len(*in)) *out = make([]PodCondition, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} else {
(*out)[i] = *newVal.(*PodCondition)
}
} }
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
if *in == nil {
*out = nil
} else {
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() (*in).DeepCopyInto(*out)
} }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (x *PodStatus) DeepCopy() *PodStatus {
if x == nil {
return nil return nil
} }
out := new(PodStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -16,6 +16,7 @@ go_library(
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/conversion: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/schema:go_default_library",
], ],
) )

View File

@ -22,22 +22,41 @@ package testing
import ( import (
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{ return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_testing_TestType, InType: reflect.TypeOf(&TestType{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestType).DeepCopyInto(out.(*TestType))
return nil
}, InType: reflect.TypeOf(&TestType{})},
} }
} }
// DeepCopy_testing_TestType is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_TestType(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *TestType) DeepCopyInto(out *TestType) {
{
in := in.(*TestType)
out := out.(*TestType)
*out = *in *out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType.
func (x *TestType) DeepCopy() *TestType {
if x == nil {
return nil
}
out := new(TestType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestType) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -20,6 +20,7 @@ go_library(
"//vendor/github.com/ugorji/go/codec:go_default_library", "//vendor/github.com/ugorji/go/codec:go_default_library",
"//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/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library", "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
], ],
) )

View File

@ -21,115 +21,195 @@ limitations under the License.
package testing package testing
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{ return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_testing_Simple, InType: reflect.TypeOf(&Simple{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
{Fn: DeepCopy_testing_SimpleGetOptions, InType: reflect.TypeOf(&SimpleGetOptions{})}, in.(*Simple).DeepCopyInto(out.(*Simple))
{Fn: DeepCopy_testing_SimpleList, InType: reflect.TypeOf(&SimpleList{})}, return nil
{Fn: DeepCopy_testing_SimpleRoot, InType: reflect.TypeOf(&SimpleRoot{})}, }, InType: reflect.TypeOf(&Simple{})},
{Fn: DeepCopy_testing_SimpleXGSubresource, InType: reflect.TypeOf(&SimpleXGSubresource{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SimpleGetOptions).DeepCopyInto(out.(*SimpleGetOptions))
return nil
}, InType: reflect.TypeOf(&SimpleGetOptions{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SimpleList).DeepCopyInto(out.(*SimpleList))
return nil
}, InType: reflect.TypeOf(&SimpleList{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SimpleRoot).DeepCopyInto(out.(*SimpleRoot))
return nil
}, InType: reflect.TypeOf(&SimpleRoot{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SimpleXGSubresource).DeepCopyInto(out.(*SimpleXGSubresource))
return nil
}, InType: reflect.TypeOf(&SimpleXGSubresource{})},
} }
} }
// DeepCopy_testing_Simple is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_Simple(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Simple) DeepCopyInto(out *Simple) {
{
in := in.(*Simple)
out := out.(*Simple)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Labels != nil { if in.Labels != nil {
in, out := &in.Labels, &out.Labels in, out := &in.Labels, &out.Labels
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Simple.
func (x *Simple) DeepCopy() *Simple {
if x == nil {
return nil
}
out := new(Simple)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Simple) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_testing_SimpleGetOptions is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_SimpleGetOptions(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SimpleGetOptions) DeepCopyInto(out *SimpleGetOptions) {
{
in := in.(*SimpleGetOptions)
out := out.(*SimpleGetOptions)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleGetOptions.
func (x *SimpleGetOptions) DeepCopy() *SimpleGetOptions {
if x == nil {
return nil
}
out := new(SimpleGetOptions)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleGetOptions) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_testing_SimpleList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_SimpleList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SimpleList) DeepCopyInto(out *SimpleList) {
{
in := in.(*SimpleList)
out := out.(*SimpleList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Simple, len(*in)) *out = make([]Simple, len(*in))
for i := range *in { for i := range *in {
if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleList.
func (x *SimpleList) DeepCopy() *SimpleList {
if x == nil {
return nil
}
out := new(SimpleList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
(*out)[i] = *newVal.(*Simple)
}
}
}
return nil return nil
} }
} }
// DeepCopy_testing_SimpleRoot is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_SimpleRoot(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SimpleRoot) DeepCopyInto(out *SimpleRoot) {
{
in := in.(*SimpleRoot)
out := out.(*SimpleRoot)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Labels != nil { if in.Labels != nil {
in, out := &in.Labels, &out.Labels in, out := &in.Labels, &out.Labels
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleRoot.
func (x *SimpleRoot) DeepCopy() *SimpleRoot {
if x == nil {
return nil
}
out := new(SimpleRoot)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleRoot) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_testing_SimpleXGSubresource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_SimpleXGSubresource(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SimpleXGSubresource) DeepCopyInto(out *SimpleXGSubresource) {
{
in := in.(*SimpleXGSubresource)
out := out.(*SimpleXGSubresource)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Labels != nil { if in.Labels != nil {
in, out := &in.Labels, &out.Labels in, out := &in.Labels, &out.Labels
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleXGSubresource.
func (x *SimpleXGSubresource) DeepCopy() *SimpleXGSubresource {
if x == nil {
return nil
}
out := new(SimpleXGSubresource)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleXGSubresource) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -33,6 +33,7 @@ go_library(
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors: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/apiserver/pkg/registry/rest:go_default_library", "//vendor/k8s.io/apiserver/pkg/registry/rest:go_default_library",
], ],

View File

@ -33,6 +33,7 @@ go_library(
"rest.go", "rest.go",
"table.go", "table.go",
"update.go", "update.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
@ -44,6 +45,7 @@ go_library(
"//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/apis/meta/v1/validation:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1: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/apimachinery/pkg/util/uuid:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/uuid:go_default_library",

View File

@ -0,0 +1,67 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package rest
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ConnectRequest).DeepCopyInto(out.(*ConnectRequest))
return nil
}, InType: reflect.TypeOf(&ConnectRequest{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ConnectRequest) DeepCopyInto(out *ConnectRequest) {
*out = *in
if in.Options == nil {
out.Options = nil
} else {
out.Options = in.Options.DeepCopyObject()
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ConnectRequest.
func (x *ConnectRequest) DeepCopy() *ConnectRequest {
if x == nil {
return nil
}
out := new(ConnectRequest)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ConnectRequest) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil
}
}

View File

@ -21,29 +21,44 @@ limitations under the License.
package testing package testing
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{ return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_testing_TestResource, InType: reflect.TypeOf(&TestResource{})}, {Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestResource).DeepCopyInto(out.(*TestResource))
return nil
}, InType: reflect.TypeOf(&TestResource{})},
} }
} }
// DeepCopy_testing_TestResource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_testing_TestResource(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *TestResource) DeepCopyInto(out *TestResource) {
{
in := in.(*TestResource)
out := out.(*TestResource)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else { return
out.ObjectMeta = *newVal.(*v1.ObjectMeta) }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.
func (x *TestResource) DeepCopy() *TestResource {
if x == nil {
return nil
} }
out := new(TestResource)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestResource) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -30,7 +30,6 @@ go_library(
srcs = ["webhook.go"], srcs = ["webhook.go"],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apimachinery/announced:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apimachinery/announced:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apimachinery/registered:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apimachinery/registered:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",