Merge pull request #39490 from deads2k/generic-16-bump-gengo

Automatic merge from submit-queue (batch tested with PRs 39466, 39490, 39527)

bump gengo to latest

bumping gengo to limit surprises while working on https://github.com/kubernetes/kubernetes/pull/39475

@kubernetes/sig-api-machinery-misc
This commit is contained in:
Kubernetes Submit Queue 2017-01-06 11:30:13 -08:00 committed by GitHub
commit 07ce35a325
61 changed files with 1296 additions and 3315 deletions

20
Godeps/Godeps.json generated
View File

@ -2669,43 +2669,43 @@
}, },
{ {
"ImportPath": "k8s.io/gengo/args", "ImportPath": "k8s.io/gengo/args",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators", "ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators", "ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/import-boss/generators", "ImportPath": "k8s.io/gengo/examples/import-boss/generators",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/generators", "ImportPath": "k8s.io/gengo/examples/set-gen/generators",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/sets", "ImportPath": "k8s.io/gengo/examples/set-gen/sets",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/generator", "ImportPath": "k8s.io/gengo/generator",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/namer", "ImportPath": "k8s.io/gengo/namer",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/parser", "ImportPath": "k8s.io/gengo/parser",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/gengo/types", "ImportPath": "k8s.io/gengo/types",
"Rev": "6a1c24d7f08e671c244023ca9367d2dfbfaf57fc" "Rev": "8dd9c9e5e82c3cca687497c3cd7ac90e702c7c21"
}, },
{ {
"ImportPath": "k8s.io/heapster/metrics/api/v1/types", "ImportPath": "k8s.io/heapster/metrics/api/v1/types",

View File

@ -47,14 +47,13 @@ func DeepCopy_v1alpha1_APIService(in interface{}, out interface{}, c *conversion
{ {
in := in.(*APIService) in := in.(*APIService)
out := out.(*APIService) out := out.(*APIService)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1alpha1_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1alpha1_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -63,8 +62,7 @@ func DeepCopy_v1alpha1_APIServiceList(in interface{}, out interface{}, c *conver
{ {
in := in.(*APIServiceList) in := in.(*APIServiceList)
out := out.(*APIServiceList) out := out.(*APIServiceList)
out.TypeMeta = in.TypeMeta *out = *in
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([]APIService, len(*in)) *out = make([]APIService, len(*in))
@ -73,8 +71,6 @@ func DeepCopy_v1alpha1_APIServiceList(in interface{}, out interface{}, c *conver
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -84,18 +80,12 @@ func DeepCopy_v1alpha1_APIServiceSpec(in interface{}, out interface{}, c *conver
{ {
in := in.(*APIServiceSpec) in := in.(*APIServiceSpec)
out := out.(*APIServiceSpec) out := out.(*APIServiceSpec)
out.Service = in.Service *out = *in
out.Group = in.Group
out.Version = in.Version
out.InsecureSkipTLSVerify = in.InsecureSkipTLSVerify
if in.CABundle != nil { if in.CABundle != nil {
in, out := &in.CABundle, &out.CABundle in, out := &in.CABundle, &out.CABundle
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.CABundle = nil
} }
out.Priority = in.Priority
return nil return nil
} }
} }
@ -104,8 +94,7 @@ func DeepCopy_v1alpha1_APIServiceStatus(in interface{}, out interface{}, c *conv
{ {
in := in.(*APIServiceStatus) in := in.(*APIServiceStatus)
out := out.(*APIServiceStatus) out := out.(*APIServiceStatus)
_ = in *out = *in
_ = out
return nil return nil
} }
} }
@ -114,8 +103,7 @@ func DeepCopy_v1alpha1_ServiceReference(in interface{}, out interface{}, c *conv
{ {
in := in.(*ServiceReference) in := in.(*ServiceReference)
out := out.(*ServiceReference) out := out.(*ServiceReference)
out.Namespace = in.Namespace *out = *in
out.Name = in.Name
return nil return nil
} }
} }

View File

@ -47,14 +47,13 @@ func DeepCopy_apiregistration_APIService(in interface{}, out interface{}, c *con
{ {
in := in.(*APIService) in := in.(*APIService)
out := out.(*APIService) out := out.(*APIService)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_apiregistration_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_apiregistration_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -63,8 +62,7 @@ func DeepCopy_apiregistration_APIServiceList(in interface{}, out interface{}, c
{ {
in := in.(*APIServiceList) in := in.(*APIServiceList)
out := out.(*APIServiceList) out := out.(*APIServiceList)
out.TypeMeta = in.TypeMeta *out = *in
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([]APIService, len(*in)) *out = make([]APIService, len(*in))
@ -73,8 +71,6 @@ func DeepCopy_apiregistration_APIServiceList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -84,18 +80,12 @@ func DeepCopy_apiregistration_APIServiceSpec(in interface{}, out interface{}, c
{ {
in := in.(*APIServiceSpec) in := in.(*APIServiceSpec)
out := out.(*APIServiceSpec) out := out.(*APIServiceSpec)
out.Service = in.Service *out = *in
out.Group = in.Group
out.Version = in.Version
out.InsecureSkipTLSVerify = in.InsecureSkipTLSVerify
if in.CABundle != nil { if in.CABundle != nil {
in, out := &in.CABundle, &out.CABundle in, out := &in.CABundle, &out.CABundle
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.CABundle = nil
} }
out.Priority = in.Priority
return nil return nil
} }
} }
@ -104,8 +94,7 @@ func DeepCopy_apiregistration_APIServiceStatus(in interface{}, out interface{},
{ {
in := in.(*APIServiceStatus) in := in.(*APIServiceStatus)
out := out.(*APIServiceStatus) out := out.(*APIServiceStatus)
_ = in *out = *in
_ = out
return nil return nil
} }
} }
@ -114,8 +103,7 @@ func DeepCopy_apiregistration_ServiceReference(in interface{}, out interface{},
{ {
in := in.(*ServiceReference) in := in.(*ServiceReference)
out := out.(*ServiceReference) out := out.(*ServiceReference)
out.Namespace = in.Namespace *out = *in
out.Name = in.Name
return nil return nil
} }
} }

View File

@ -33,7 +33,7 @@ import (
func construct(t *testing.T, files map[string]string, testNamer namer.Namer) (*parser.Builder, types.Universe, []*types.Type) { func construct(t *testing.T, files map[string]string, testNamer namer.Namer) (*parser.Builder, types.Universe, []*types.Type) {
b := parser.New() b := parser.New()
for name, src := range files { for name, src := range files {
if err := b.AddFile(filepath.Dir(name), name, []byte(src)); err != nil { if err := b.AddFileForTest(filepath.Dir(name), name, []byte(src)); err != nil {
t.Fatal(err) t.Fatal(err)
} }
} }

View File

@ -20,6 +20,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*Cluster) in := in.(*Cluster)
out := out.(*Cluster) out := out.(*Cluster)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -66,12 +66,9 @@ func DeepCopy_v1beta1_ClusterCondition(in interface{}, out interface{}, c *conve
{ {
in := in.(*ClusterCondition) in := in.(*ClusterCondition)
out := out.(*ClusterCondition) out := out.(*ClusterCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastProbeTime = in.LastProbeTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -80,8 +77,7 @@ func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion
{ {
in := in.(*ClusterList) in := in.(*ClusterList)
out := out.(*ClusterList) out := out.(*ClusterList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Cluster, len(*in)) *out = make([]Cluster, len(*in))
@ -90,8 +86,6 @@ func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -101,21 +95,18 @@ func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion
{ {
in := in.(*ClusterSpec) in := in.(*ClusterSpec)
out := out.(*ClusterSpec) out := out.(*ClusterSpec)
*out = *in
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
*out = make([]ServerAddressByClientCIDR, len(*in)) *out = make([]ServerAddressByClientCIDR, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.ServerAddressByClientCIDRs = nil
} }
if in.SecretRef != nil { if in.SecretRef != nil {
in, out := &in.SecretRef, &out.SecretRef in, out := &in.SecretRef, &out.SecretRef
*out = new(v1.LocalObjectReference) *out = new(v1.LocalObjectReference)
**out = **in **out = **in
} else {
out.SecretRef = nil
} }
return nil return nil
} }
@ -125,6 +116,7 @@ func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversi
{ {
in := in.(*ClusterStatus) in := in.(*ClusterStatus)
out := out.(*ClusterStatus) out := out.(*ClusterStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ClusterCondition, len(*in)) *out = make([]ClusterCondition, len(*in))
@ -133,17 +125,12 @@ func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversi
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.Zones != nil { if in.Zones != nil {
in, out := &in.Zones, &out.Zones in, out := &in.Zones, &out.Zones
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Zones = nil
} }
out.Region = in.Region
return nil return nil
} }
} }
@ -152,8 +139,7 @@ func DeepCopy_v1beta1_ServerAddressByClientCIDR(in interface{}, out interface{},
{ {
in := in.(*ServerAddressByClientCIDR) in := in.(*ServerAddressByClientCIDR)
out := out.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR)
out.ClientCIDR = in.ClientCIDR *out = *in
out.ServerAddress = in.ServerAddress
return nil return nil
} }
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1beta1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -50,7 +50,7 @@ func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*Cluster) in := in.(*Cluster)
out := out.(*Cluster) out := out.(*Cluster)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -68,12 +68,9 @@ func DeepCopy_federation_ClusterCondition(in interface{}, out interface{}, c *co
{ {
in := in.(*ClusterCondition) in := in.(*ClusterCondition)
out := out.(*ClusterCondition) out := out.(*ClusterCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastProbeTime = in.LastProbeTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -82,8 +79,7 @@ func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *convers
{ {
in := in.(*ClusterList) in := in.(*ClusterList)
out := out.(*ClusterList) out := out.(*ClusterList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Cluster, len(*in)) *out = make([]Cluster, len(*in))
@ -92,8 +88,6 @@ func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -103,15 +97,12 @@ func DeepCopy_federation_ClusterReplicaSetPreferences(in interface{}, out interf
{ {
in := in.(*ClusterReplicaSetPreferences) in := in.(*ClusterReplicaSetPreferences)
out := out.(*ClusterReplicaSetPreferences) out := out.(*ClusterReplicaSetPreferences)
out.MinReplicas = in.MinReplicas *out = *in
if in.MaxReplicas != nil { if in.MaxReplicas != nil {
in, out := &in.MaxReplicas, &out.MaxReplicas in, out := &in.MaxReplicas, &out.MaxReplicas
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.MaxReplicas = nil
} }
out.Weight = in.Weight
return nil return nil
} }
} }
@ -120,21 +111,18 @@ func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *convers
{ {
in := in.(*ClusterSpec) in := in.(*ClusterSpec)
out := out.(*ClusterSpec) out := out.(*ClusterSpec)
*out = *in
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
*out = make([]ServerAddressByClientCIDR, len(*in)) *out = make([]ServerAddressByClientCIDR, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.ServerAddressByClientCIDRs = nil
} }
if in.SecretRef != nil { if in.SecretRef != nil {
in, out := &in.SecretRef, &out.SecretRef in, out := &in.SecretRef, &out.SecretRef
*out = new(api.LocalObjectReference) *out = new(api.LocalObjectReference)
**out = **in **out = **in
} else {
out.SecretRef = nil
} }
return nil return nil
} }
@ -144,6 +132,7 @@ func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conve
{ {
in := in.(*ClusterStatus) in := in.(*ClusterStatus)
out := out.(*ClusterStatus) out := out.(*ClusterStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ClusterCondition, len(*in)) *out = make([]ClusterCondition, len(*in))
@ -152,17 +141,12 @@ func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.Zones != nil { if in.Zones != nil {
in, out := &in.Zones, &out.Zones in, out := &in.Zones, &out.Zones
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Zones = nil
} }
out.Region = in.Region
return nil return nil
} }
} }
@ -171,7 +155,7 @@ func DeepCopy_federation_FederatedReplicaSetPreferences(in interface{}, out inte
{ {
in := in.(*FederatedReplicaSetPreferences) in := in.(*FederatedReplicaSetPreferences)
out := out.(*FederatedReplicaSetPreferences) out := out.(*FederatedReplicaSetPreferences)
out.Rebalance = in.Rebalance *out = *in
if in.Clusters != nil { if in.Clusters != nil {
in, out := &in.Clusters, &out.Clusters in, out := &in.Clusters, &out.Clusters
*out = make(map[string]ClusterReplicaSetPreferences) *out = make(map[string]ClusterReplicaSetPreferences)
@ -182,8 +166,6 @@ func DeepCopy_federation_FederatedReplicaSetPreferences(in interface{}, out inte
} }
(*out)[key] = *newVal (*out)[key] = *newVal
} }
} else {
out.Clusters = nil
} }
return nil return nil
} }
@ -193,8 +175,7 @@ func DeepCopy_federation_ServerAddressByClientCIDR(in interface{}, out interface
{ {
in := in.(*ServerAddressByClientCIDR) in := in.(*ServerAddressByClientCIDR)
out := out.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR)
out.ClientCIDR = in.ClientCIDR *out = *in
out.ServerAddress = in.ServerAddress
return nil return nil
} }
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,7 @@ go_library(
"types.go", "types.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -43,8 +43,7 @@ func DeepCopy_v1beta1_Policy(in interface{}, out interface{}, c *conversion.Clon
{ {
in := in.(*Policy) in := in.(*Policy)
out := out.(*Policy) out := out.(*Policy)
out.TypeMeta = in.TypeMeta *out = *in
out.Spec = in.Spec
return nil return nil
} }
} }
@ -53,13 +52,7 @@ func DeepCopy_v1beta1_PolicySpec(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*PolicySpec) in := in.(*PolicySpec)
out := out.(*PolicySpec) out := out.(*PolicySpec)
out.User = in.User *out = *in
out.Group = in.Group
out.Readonly = in.Readonly
out.APIGroup = in.APIGroup
out.Resource = in.Resource
out.Namespace = in.Namespace
out.NonResourcePath = in.NonResourcePath
return nil return nil
} }
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1beta1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -47,7 +47,7 @@ func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion
{ {
in := in.(*StatefulSet) in := in.(*StatefulSet)
out := out.(*StatefulSet) out := out.(*StatefulSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,8 +65,7 @@ func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conver
{ {
in := in.(*StatefulSetList) in := in.(*StatefulSetList)
out := out.(*StatefulSetList) out := out.(*StatefulSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]StatefulSet, len(*in)) *out = make([]StatefulSet, len(*in))
@ -75,8 +74,6 @@ func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conver
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -86,12 +83,11 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver
{ {
in := in.(*StatefulSetSpec) in := in.(*StatefulSetSpec)
out := out.(*StatefulSetSpec) out := out.(*StatefulSetSpec)
*out = *in
if in.Replicas != nil { if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas in, out := &in.Replicas, &out.Replicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Replicas = nil
} }
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
@ -99,8 +95,6 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -113,10 +107,7 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver
return err return err
} }
} }
} else {
out.VolumeClaimTemplates = nil
} }
out.ServiceName = in.ServiceName
return nil return nil
} }
} }
@ -125,14 +116,12 @@ func DeepCopy_v1beta1_StatefulSetStatus(in interface{}, out interface{}, c *conv
{ {
in := in.(*StatefulSetStatus) in := in.(*StatefulSetStatus)
out := out.(*StatefulSetStatus) out := out.(*StatefulSetStatus)
*out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ObservedGeneration = nil
} }
out.Replicas = in.Replicas
return nil return nil
} }
} }

View File

@ -47,7 +47,7 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*StatefulSet) in := in.(*StatefulSet)
out := out.(*StatefulSet) out := out.(*StatefulSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,8 +65,7 @@ func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversio
{ {
in := in.(*StatefulSetList) in := in.(*StatefulSetList)
out := out.(*StatefulSetList) out := out.(*StatefulSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]StatefulSet, len(*in)) *out = make([]StatefulSet, len(*in))
@ -75,8 +74,6 @@ func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -86,15 +83,13 @@ func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversio
{ {
in := in.(*StatefulSetSpec) in := in.(*StatefulSetSpec)
out := out.(*StatefulSetSpec) out := out.(*StatefulSetSpec)
out.Replicas = in.Replicas *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -107,10 +102,7 @@ func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.VolumeClaimTemplates = nil
} }
out.ServiceName = in.ServiceName
return nil return nil
} }
} }
@ -119,14 +111,12 @@ func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *convers
{ {
in := in.(*StatefulSetStatus) in := in.(*StatefulSetStatus)
out := out.(*StatefulSetStatus) out := out.(*StatefulSetStatus)
*out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ObservedGeneration = nil
} }
out.Replicas = in.Replicas
return nil return nil
} }
} }

View File

@ -20,6 +20,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -46,11 +46,10 @@ func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion
{ {
in := in.(*TokenReview) in := in.(*TokenReview)
out := out.(*TokenReview) out := out.(*TokenReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err return err
} }
@ -62,7 +61,7 @@ func DeepCopy_v1beta1_TokenReviewSpec(in interface{}, out interface{}, c *conver
{ {
in := in.(*TokenReviewSpec) in := in.(*TokenReviewSpec)
out := out.(*TokenReviewSpec) out := out.(*TokenReviewSpec)
out.Token = in.Token *out = *in
return nil return nil
} }
} }
@ -71,11 +70,10 @@ func DeepCopy_v1beta1_TokenReviewStatus(in interface{}, out interface{}, c *conv
{ {
in := in.(*TokenReviewStatus) in := in.(*TokenReviewStatus)
out := out.(*TokenReviewStatus) out := out.(*TokenReviewStatus)
out.Authenticated = in.Authenticated *out = *in
if err := DeepCopy_v1beta1_UserInfo(&in.User, &out.User, c); err != nil { if err := DeepCopy_v1beta1_UserInfo(&in.User, &out.User, c); err != nil {
return err return err
} }
out.Error = in.Error
return nil return nil
} }
} }
@ -84,14 +82,11 @@ func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*UserInfo) in := in.(*UserInfo)
out := out.(*UserInfo) out := out.(*UserInfo)
out.Username = in.Username *out = *in
out.UID = in.UID
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
@ -103,8 +98,6 @@ func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cl
(*out)[key] = *newVal.(*ExtraValue) (*out)[key] = *newVal.(*ExtraValue)
} }
} }
} else {
out.Extra = nil
} }
return nil return nil
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1beta1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -46,11 +46,10 @@ func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *con
{ {
in := in.(*TokenReview) in := in.(*TokenReview)
out := out.(*TokenReview) out := out.(*TokenReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err return err
} }
@ -62,7 +61,7 @@ func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c
{ {
in := in.(*TokenReviewSpec) in := in.(*TokenReviewSpec)
out := out.(*TokenReviewSpec) out := out.(*TokenReviewSpec)
out.Token = in.Token *out = *in
return nil return nil
} }
} }
@ -71,11 +70,10 @@ func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{},
{ {
in := in.(*TokenReviewStatus) in := in.(*TokenReviewStatus)
out := out.(*TokenReviewStatus) out := out.(*TokenReviewStatus)
out.Authenticated = in.Authenticated *out = *in
if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil { if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil {
return err return err
} }
out.Error = in.Error
return nil return nil
} }
} }
@ -84,14 +82,11 @@ func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conver
{ {
in := in.(*UserInfo) in := in.(*UserInfo)
out := out.(*UserInfo) out := out.(*UserInfo)
out.Username = in.Username *out = *in
out.UID = in.UID
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
@ -103,8 +98,6 @@ func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conver
(*out)[key] = *newVal.(*ExtraValue) (*out)[key] = *newVal.(*ExtraValue)
} }
} }
} else {
out.Extra = nil
} }
return nil return nil
} }

View File

@ -20,6 +20,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -50,14 +50,13 @@ func DeepCopy_v1beta1_LocalSubjectAccessReview(in interface{}, out interface{},
{ {
in := in.(*LocalSubjectAccessReview) in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -66,8 +65,7 @@ func DeepCopy_v1beta1_NonResourceAttributes(in interface{}, out interface{}, c *
{ {
in := in.(*NonResourceAttributes) in := in.(*NonResourceAttributes)
out := out.(*NonResourceAttributes) out := out.(*NonResourceAttributes)
out.Path = in.Path *out = *in
out.Verb = in.Verb
return nil return nil
} }
} }
@ -76,13 +74,7 @@ func DeepCopy_v1beta1_ResourceAttributes(in interface{}, out interface{}, c *con
{ {
in := in.(*ResourceAttributes) in := in.(*ResourceAttributes)
out := out.(*ResourceAttributes) out := out.(*ResourceAttributes)
out.Namespace = in.Namespace *out = *in
out.Verb = in.Verb
out.Group = in.Group
out.Version = in.Version
out.Resource = in.Resource
out.Subresource = in.Subresource
out.Name = in.Name
return nil return nil
} }
} }
@ -91,14 +83,13 @@ func DeepCopy_v1beta1_SelfSubjectAccessReview(in interface{}, out interface{}, c
{ {
in := in.(*SelfSubjectAccessReview) in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -107,19 +98,16 @@ func DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in interface{}, out interface{
{ {
in := in.(*SelfSubjectAccessReviewSpec) in := in.(*SelfSubjectAccessReviewSpec)
out := out.(*SelfSubjectAccessReviewSpec) out := out.(*SelfSubjectAccessReviewSpec)
*out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} else {
out.ResourceAttributes = nil
} }
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} else {
out.NonResourceAttributes = nil
} }
return nil return nil
} }
@ -129,14 +117,13 @@ func DeepCopy_v1beta1_SubjectAccessReview(in interface{}, out interface{}, c *co
{ {
in := in.(*SubjectAccessReview) in := in.(*SubjectAccessReview)
out := out.(*SubjectAccessReview) out := out.(*SubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -145,27 +132,21 @@ func DeepCopy_v1beta1_SubjectAccessReviewSpec(in interface{}, out interface{}, c
{ {
in := in.(*SubjectAccessReviewSpec) in := in.(*SubjectAccessReviewSpec)
out := out.(*SubjectAccessReviewSpec) out := out.(*SubjectAccessReviewSpec)
*out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} else {
out.ResourceAttributes = nil
} }
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} else {
out.NonResourceAttributes = nil
} }
out.User = in.User
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
@ -177,8 +158,6 @@ func DeepCopy_v1beta1_SubjectAccessReviewSpec(in interface{}, out interface{}, c
(*out)[key] = *newVal.(*ExtraValue) (*out)[key] = *newVal.(*ExtraValue)
} }
} }
} else {
out.Extra = nil
} }
return nil return nil
} }
@ -188,9 +167,7 @@ func DeepCopy_v1beta1_SubjectAccessReviewStatus(in interface{}, out interface{},
{ {
in := in.(*SubjectAccessReviewStatus) in := in.(*SubjectAccessReviewStatus)
out := out.(*SubjectAccessReviewStatus) out := out.(*SubjectAccessReviewStatus)
out.Allowed = in.Allowed *out = *in
out.Reason = in.Reason
out.EvaluationError = in.EvaluationError
return nil return nil
} }
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1beta1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -50,14 +50,13 @@ func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interfa
{ {
in := in.(*LocalSubjectAccessReview) in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -66,8 +65,7 @@ func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{
{ {
in := in.(*NonResourceAttributes) in := in.(*NonResourceAttributes)
out := out.(*NonResourceAttributes) out := out.(*NonResourceAttributes)
out.Path = in.Path *out = *in
out.Verb = in.Verb
return nil return nil
} }
} }
@ -76,13 +74,7 @@ func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{},
{ {
in := in.(*ResourceAttributes) in := in.(*ResourceAttributes)
out := out.(*ResourceAttributes) out := out.(*ResourceAttributes)
out.Namespace = in.Namespace *out = *in
out.Verb = in.Verb
out.Group = in.Group
out.Version = in.Version
out.Resource = in.Resource
out.Subresource = in.Subresource
out.Name = in.Name
return nil return nil
} }
} }
@ -91,14 +83,13 @@ func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interfac
{ {
in := in.(*SelfSubjectAccessReview) in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -107,19 +98,16 @@ func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out inte
{ {
in := in.(*SelfSubjectAccessReviewSpec) in := in.(*SelfSubjectAccessReviewSpec)
out := out.(*SelfSubjectAccessReviewSpec) out := out.(*SelfSubjectAccessReviewSpec)
*out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} else {
out.ResourceAttributes = nil
} }
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} else {
out.NonResourceAttributes = nil
} }
return nil return nil
} }
@ -129,14 +117,13 @@ func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{},
{ {
in := in.(*SubjectAccessReview) in := in.(*SubjectAccessReview)
out := out.(*SubjectAccessReview) out := out.(*SubjectAccessReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -145,27 +132,21 @@ func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interfac
{ {
in := in.(*SubjectAccessReviewSpec) in := in.(*SubjectAccessReviewSpec)
out := out.(*SubjectAccessReviewSpec) out := out.(*SubjectAccessReviewSpec)
*out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} else {
out.ResourceAttributes = nil
} }
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} else {
out.NonResourceAttributes = nil
} }
out.User = in.User
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
@ -177,8 +158,6 @@ func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interfac
(*out)[key] = *newVal.(*ExtraValue) (*out)[key] = *newVal.(*ExtraValue)
} }
} }
} else {
out.Extra = nil
} }
return nil return nil
} }
@ -188,9 +167,7 @@ func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interf
{ {
in := in.(*SubjectAccessReviewStatus) in := in.(*SubjectAccessReviewStatus)
out := out.(*SubjectAccessReviewStatus) out := out.(*SubjectAccessReviewStatus)
out.Allowed = in.Allowed *out = *in
out.Reason = in.Reason
out.EvaluationError = in.EvaluationError
return nil return nil
} }
} }

View File

@ -51,9 +51,7 @@ func DeepCopy_v1_CrossVersionObjectReference(in interface{}, out interface{}, c
{ {
in := in.(*CrossVersionObjectReference) in := in.(*CrossVersionObjectReference)
out := out.(*CrossVersionObjectReference) out := out.(*CrossVersionObjectReference)
out.Kind = in.Kind *out = *in
out.Name = in.Name
out.APIVersion = in.APIVersion
return nil return nil
} }
} }
@ -62,7 +60,7 @@ func DeepCopy_v1_HorizontalPodAutoscaler(in interface{}, out interface{}, c *con
{ {
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
out.TypeMeta = in.TypeMeta *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -80,8 +78,7 @@ func DeepCopy_v1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c
{ {
in := in.(*HorizontalPodAutoscalerList) in := in.(*HorizontalPodAutoscalerList)
out := out.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList)
out.TypeMeta = in.TypeMeta *out = *in
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([]HorizontalPodAutoscaler, len(*in)) *out = make([]HorizontalPodAutoscaler, len(*in))
@ -90,8 +87,6 @@ func DeepCopy_v1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -101,21 +96,16 @@ func DeepCopy_v1_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c
{ {
in := in.(*HorizontalPodAutoscalerSpec) in := in.(*HorizontalPodAutoscalerSpec)
out := out.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec)
out.ScaleTargetRef = in.ScaleTargetRef *out = *in
if in.MinReplicas != nil { if in.MinReplicas != nil {
in, out := &in.MinReplicas, &out.MinReplicas in, out := &in.MinReplicas, &out.MinReplicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.MinReplicas = nil
} }
out.MaxReplicas = in.MaxReplicas
if in.TargetCPUUtilizationPercentage != nil { if in.TargetCPUUtilizationPercentage != nil {
in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.TargetCPUUtilizationPercentage = nil
} }
return nil return nil
} }
@ -125,28 +115,21 @@ func DeepCopy_v1_HorizontalPodAutoscalerStatus(in interface{}, out interface{},
{ {
in := in.(*HorizontalPodAutoscalerStatus) in := in.(*HorizontalPodAutoscalerStatus)
out := out.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus)
*out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ObservedGeneration = nil
} }
if in.LastScaleTime != nil { if in.LastScaleTime != nil {
in, out := &in.LastScaleTime, &out.LastScaleTime in, out := &in.LastScaleTime, &out.LastScaleTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.LastScaleTime = nil
} }
out.CurrentReplicas = in.CurrentReplicas
out.DesiredReplicas = in.DesiredReplicas
if in.CurrentCPUUtilizationPercentage != nil { if in.CurrentCPUUtilizationPercentage != nil {
in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.CurrentCPUUtilizationPercentage = nil
} }
return nil return nil
} }
@ -156,12 +139,10 @@ func DeepCopy_v1_Scale(in interface{}, out interface{}, c *conversion.Cloner) er
{ {
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
out.TypeMeta = in.TypeMeta *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
out.Status = in.Status
return nil return nil
} }
} }
@ -170,7 +151,7 @@ func DeepCopy_v1_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*ScaleSpec) in := in.(*ScaleSpec)
out := out.(*ScaleSpec) out := out.(*ScaleSpec)
out.Replicas = in.Replicas *out = *in
return nil return nil
} }
} }
@ -179,8 +160,7 @@ func DeepCopy_v1_ScaleStatus(in interface{}, out interface{}, c *conversion.Clon
{ {
in := in.(*ScaleStatus) in := in.(*ScaleStatus)
out := out.(*ScaleStatus) out := out.(*ScaleStatus)
out.Replicas = in.Replicas *out = *in
out.Selector = in.Selector
return nil return nil
} }
} }

View File

@ -51,9 +51,7 @@ func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interf
{ {
in := in.(*CrossVersionObjectReference) in := in.(*CrossVersionObjectReference)
out := out.(*CrossVersionObjectReference) out := out.(*CrossVersionObjectReference)
out.Kind = in.Kind *out = *in
out.Name = in.Name
out.APIVersion = in.APIVersion
return nil return nil
} }
} }
@ -62,7 +60,7 @@ func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{
{ {
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -80,8 +78,7 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interf
{ {
in := in.(*HorizontalPodAutoscalerList) in := in.(*HorizontalPodAutoscalerList)
out := out.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList)
out.TypeMeta = in.TypeMeta *out = *in
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([]HorizontalPodAutoscaler, len(*in)) *out = make([]HorizontalPodAutoscaler, len(*in))
@ -90,8 +87,6 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interf
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -101,21 +96,16 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interf
{ {
in := in.(*HorizontalPodAutoscalerSpec) in := in.(*HorizontalPodAutoscalerSpec)
out := out.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec)
out.ScaleTargetRef = in.ScaleTargetRef *out = *in
if in.MinReplicas != nil { if in.MinReplicas != nil {
in, out := &in.MinReplicas, &out.MinReplicas in, out := &in.MinReplicas, &out.MinReplicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.MinReplicas = nil
} }
out.MaxReplicas = in.MaxReplicas
if in.TargetCPUUtilizationPercentage != nil { if in.TargetCPUUtilizationPercentage != nil {
in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.TargetCPUUtilizationPercentage = nil
} }
return nil return nil
} }
@ -125,28 +115,21 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out inte
{ {
in := in.(*HorizontalPodAutoscalerStatus) in := in.(*HorizontalPodAutoscalerStatus)
out := out.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus)
*out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ObservedGeneration = nil
} }
if in.LastScaleTime != nil { if in.LastScaleTime != nil {
in, out := &in.LastScaleTime, &out.LastScaleTime in, out := &in.LastScaleTime, &out.LastScaleTime
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.LastScaleTime = nil
} }
out.CurrentReplicas = in.CurrentReplicas
out.DesiredReplicas = in.DesiredReplicas
if in.CurrentCPUUtilizationPercentage != nil { if in.CurrentCPUUtilizationPercentage != nil {
in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.CurrentCPUUtilizationPercentage = nil
} }
return nil return nil
} }
@ -156,12 +139,10 @@ func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
out.Status = in.Status
return nil return nil
} }
} }
@ -170,7 +151,7 @@ func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversi
{ {
in := in.(*ScaleSpec) in := in.(*ScaleSpec)
out := out.(*ScaleSpec) out := out.(*ScaleSpec)
out.Replicas = in.Replicas *out = *in
return nil return nil
} }
} }
@ -179,8 +160,7 @@ func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conver
{ {
in := in.(*ScaleStatus) in := in.(*ScaleStatus)
out := out.(*ScaleStatus) out := out.(*ScaleStatus)
out.Replicas = in.Replicas *out = *in
out.Selector = in.Selector
return nil return nil
} }
} }

View File

@ -48,7 +48,7 @@ func DeepCopy_v1_Job(in interface{}, out interface{}, c *conversion.Cloner) erro
{ {
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
out.TypeMeta = in.TypeMeta *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -66,12 +66,9 @@ func DeepCopy_v1_JobCondition(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*JobCondition) in := in.(*JobCondition)
out := out.(*JobCondition) out := out.(*JobCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastProbeTime = in.LastProbeTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -80,8 +77,7 @@ func DeepCopy_v1_JobList(in interface{}, out interface{}, c *conversion.Cloner)
{ {
in := in.(*JobList) in := in.(*JobList)
out := out.(*JobList) out := out.(*JobList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Job, len(*in)) *out = make([]Job, len(*in))
@ -90,8 +86,6 @@ func DeepCopy_v1_JobList(in interface{}, out interface{}, c *conversion.Cloner)
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -101,26 +95,21 @@ func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner)
{ {
in := in.(*JobSpec) in := in.(*JobSpec)
out := out.(*JobSpec) out := out.(*JobSpec)
*out = *in
if in.Parallelism != nil { if in.Parallelism != nil {
in, out := &in.Parallelism, &out.Parallelism in, out := &in.Parallelism, &out.Parallelism
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Parallelism = nil
} }
if in.Completions != nil { if in.Completions != nil {
in, out := &in.Completions, &out.Completions in, out := &in.Completions, &out.Completions
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Completions = nil
} }
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ActiveDeadlineSeconds = nil
} }
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
@ -128,15 +117,11 @@ func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner)
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if in.ManualSelector != nil { if in.ManualSelector != nil {
in, out := &in.ManualSelector, &out.ManualSelector in, out := &in.ManualSelector, &out.ManualSelector
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.ManualSelector = nil
} }
if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -149,6 +134,7 @@ func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*JobStatus) in := in.(*JobStatus)
out := out.(*JobStatus) out := out.(*JobStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]JobCondition, len(*in)) *out = make([]JobCondition, len(*in))
@ -157,26 +143,17 @@ func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.StartTime = nil
} }
if in.CompletionTime != nil { if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime in, out := &in.CompletionTime, &out.CompletionTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.CompletionTime = nil
} }
out.Active = in.Active
out.Succeeded = in.Succeeded
out.Failed = in.Failed
return nil return nil
} }
} }

View File

@ -54,7 +54,7 @@ func DeepCopy_v2alpha1_CronJob(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*CronJob) in := in.(*CronJob)
out := out.(*CronJob) out := out.(*CronJob)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -72,8 +72,7 @@ func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversio
{ {
in := in.(*CronJobList) in := in.(*CronJobList)
out := out.(*CronJobList) out := out.(*CronJobList)
out.TypeMeta = in.TypeMeta *out = *in
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([]CronJob, len(*in)) *out = make([]CronJob, len(*in))
@ -82,8 +81,6 @@ func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -93,21 +90,16 @@ func DeepCopy_v2alpha1_CronJobSpec(in interface{}, out interface{}, c *conversio
{ {
in := in.(*CronJobSpec) in := in.(*CronJobSpec)
out := out.(*CronJobSpec) out := out.(*CronJobSpec)
out.Schedule = in.Schedule *out = *in
if in.StartingDeadlineSeconds != nil { if in.StartingDeadlineSeconds != nil {
in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.StartingDeadlineSeconds = nil
} }
out.ConcurrencyPolicy = in.ConcurrencyPolicy
if in.Suspend != nil { if in.Suspend != nil {
in, out := &in.Suspend, &out.Suspend in, out := &in.Suspend, &out.Suspend
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Suspend = nil
} }
if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil {
return err return err
@ -120,21 +112,18 @@ func DeepCopy_v2alpha1_CronJobStatus(in interface{}, out interface{}, c *convers
{ {
in := in.(*CronJobStatus) in := in.(*CronJobStatus)
out := out.(*CronJobStatus) out := out.(*CronJobStatus)
*out = *in
if in.Active != nil { if in.Active != nil {
in, out := &in.Active, &out.Active in, out := &in.Active, &out.Active
*out = make([]v1.ObjectReference, len(*in)) *out = make([]v1.ObjectReference, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Active = nil
} }
if in.LastScheduleTime != nil { if in.LastScheduleTime != nil {
in, out := &in.LastScheduleTime, &out.LastScheduleTime in, out := &in.LastScheduleTime, &out.LastScheduleTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.LastScheduleTime = nil
} }
return nil return nil
} }
@ -144,7 +133,7 @@ func DeepCopy_v2alpha1_Job(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -162,12 +151,9 @@ func DeepCopy_v2alpha1_JobCondition(in interface{}, out interface{}, c *conversi
{ {
in := in.(*JobCondition) in := in.(*JobCondition)
out := out.(*JobCondition) out := out.(*JobCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastProbeTime = in.LastProbeTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -176,8 +162,7 @@ func DeepCopy_v2alpha1_JobList(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*JobList) in := in.(*JobList)
out := out.(*JobList) out := out.(*JobList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Job, len(*in)) *out = make([]Job, len(*in))
@ -186,8 +171,6 @@ func DeepCopy_v2alpha1_JobList(in interface{}, out interface{}, c *conversion.Cl
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -197,26 +180,21 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*JobSpec) in := in.(*JobSpec)
out := out.(*JobSpec) out := out.(*JobSpec)
*out = *in
if in.Parallelism != nil { if in.Parallelism != nil {
in, out := &in.Parallelism, &out.Parallelism in, out := &in.Parallelism, &out.Parallelism
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Parallelism = nil
} }
if in.Completions != nil { if in.Completions != nil {
in, out := &in.Completions, &out.Completions in, out := &in.Completions, &out.Completions
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Completions = nil
} }
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ActiveDeadlineSeconds = nil
} }
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
@ -224,15 +202,11 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if in.ManualSelector != nil { if in.ManualSelector != nil {
in, out := &in.ManualSelector, &out.ManualSelector in, out := &in.ManualSelector, &out.ManualSelector
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.ManualSelector = nil
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -245,6 +219,7 @@ func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*JobStatus) in := in.(*JobStatus)
out := out.(*JobStatus) out := out.(*JobStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]JobCondition, len(*in)) *out = make([]JobCondition, len(*in))
@ -253,26 +228,17 @@ func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion.
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.StartTime = nil
} }
if in.CompletionTime != nil { if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime in, out := &in.CompletionTime, &out.CompletionTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.CompletionTime = nil
} }
out.Active = in.Active
out.Succeeded = in.Succeeded
out.Failed = in.Failed
return nil return nil
} }
} }
@ -281,7 +247,7 @@ func DeepCopy_v2alpha1_JobTemplate(in interface{}, out interface{}, c *conversio
{ {
in := in.(*JobTemplate) in := in.(*JobTemplate)
out := out.(*JobTemplate) out := out.(*JobTemplate)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -296,6 +262,7 @@ func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conve
{ {
in := in.(*JobTemplateSpec) in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec) out := out.(*JobTemplateSpec)
*out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }

View File

@ -54,7 +54,7 @@ func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*CronJob) in := in.(*CronJob)
out := out.(*CronJob) out := out.(*CronJob)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -72,8 +72,7 @@ func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*CronJobList) in := in.(*CronJobList)
out := out.(*CronJobList) out := out.(*CronJobList)
out.TypeMeta = in.TypeMeta *out = *in
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([]CronJob, len(*in)) *out = make([]CronJob, len(*in))
@ -82,8 +81,6 @@ func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.C
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -93,21 +90,16 @@ func DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*CronJobSpec) in := in.(*CronJobSpec)
out := out.(*CronJobSpec) out := out.(*CronJobSpec)
out.Schedule = in.Schedule *out = *in
if in.StartingDeadlineSeconds != nil { if in.StartingDeadlineSeconds != nil {
in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.StartingDeadlineSeconds = nil
} }
out.ConcurrencyPolicy = in.ConcurrencyPolicy
if in.Suspend != nil { if in.Suspend != nil {
in, out := &in.Suspend, &out.Suspend in, out := &in.Suspend, &out.Suspend
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Suspend = nil
} }
if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil {
return err return err
@ -120,21 +112,18 @@ func DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion
{ {
in := in.(*CronJobStatus) in := in.(*CronJobStatus)
out := out.(*CronJobStatus) out := out.(*CronJobStatus)
*out = *in
if in.Active != nil { if in.Active != nil {
in, out := &in.Active, &out.Active in, out := &in.Active, &out.Active
*out = make([]api.ObjectReference, len(*in)) *out = make([]api.ObjectReference, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Active = nil
} }
if in.LastScheduleTime != nil { if in.LastScheduleTime != nil {
in, out := &in.LastScheduleTime, &out.LastScheduleTime in, out := &in.LastScheduleTime, &out.LastScheduleTime
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.LastScheduleTime = nil
} }
return nil return nil
} }
@ -144,7 +133,7 @@ func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) e
{ {
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -162,12 +151,9 @@ func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*JobCondition) in := in.(*JobCondition)
out := out.(*JobCondition) out := out.(*JobCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastProbeTime = in.LastProbeTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -176,8 +162,7 @@ func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*JobList) in := in.(*JobList)
out := out.(*JobList) out := out.(*JobList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Job, len(*in)) *out = make([]Job, len(*in))
@ -186,8 +171,6 @@ func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Clone
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -197,26 +180,21 @@ func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*JobSpec) in := in.(*JobSpec)
out := out.(*JobSpec) out := out.(*JobSpec)
*out = *in
if in.Parallelism != nil { if in.Parallelism != nil {
in, out := &in.Parallelism, &out.Parallelism in, out := &in.Parallelism, &out.Parallelism
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Parallelism = nil
} }
if in.Completions != nil { if in.Completions != nil {
in, out := &in.Completions, &out.Completions in, out := &in.Completions, &out.Completions
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Completions = nil
} }
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ActiveDeadlineSeconds = nil
} }
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
@ -224,15 +202,11 @@ func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Clone
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if in.ManualSelector != nil { if in.ManualSelector != nil {
in, out := &in.ManualSelector, &out.ManualSelector in, out := &in.ManualSelector, &out.ManualSelector
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.ManualSelector = nil
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -245,6 +219,7 @@ func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*JobStatus) in := in.(*JobStatus)
out := out.(*JobStatus) out := out.(*JobStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]JobCondition, len(*in)) *out = make([]JobCondition, len(*in))
@ -253,26 +228,17 @@ func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Clo
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.StartTime = nil
} }
if in.CompletionTime != nil { if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime in, out := &in.CompletionTime, &out.CompletionTime
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.CompletionTime = nil
} }
out.Active = in.Active
out.Succeeded = in.Succeeded
out.Failed = in.Failed
return nil return nil
} }
} }
@ -281,7 +247,7 @@ func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*JobTemplate) in := in.(*JobTemplate)
out := out.(*JobTemplate) out := out.(*JobTemplate)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -296,6 +262,7 @@ func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversi
{ {
in := in.(*JobTemplateSpec) in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec) out := out.(*JobTemplateSpec)
*out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }

View File

@ -19,6 +19,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -47,7 +47,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequest(in interface{}, out interface{}
{ {
in := in.(*CertificateSigningRequest) in := in.(*CertificateSigningRequest)
out := out.(*CertificateSigningRequest) out := out.(*CertificateSigningRequest)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,9 +65,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in interface{}, out in
{ {
in := in.(*CertificateSigningRequestCondition) in := in.(*CertificateSigningRequestCondition)
out := out.(*CertificateSigningRequestCondition) out := out.(*CertificateSigningRequestCondition)
out.Type = in.Type *out = *in
out.Reason = in.Reason
out.Message = in.Message
out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
return nil return nil
} }
@ -77,8 +75,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestList(in interface{}, out interfa
{ {
in := in.(*CertificateSigningRequestList) in := in.(*CertificateSigningRequestList)
out := out.(*CertificateSigningRequestList) out := out.(*CertificateSigningRequestList)
out.TypeMeta = in.TypeMeta *out = *in
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([]CertificateSigningRequest, len(*in)) *out = make([]CertificateSigningRequest, len(*in))
@ -87,8 +84,6 @@ func DeepCopy_v1alpha1_CertificateSigningRequestList(in interface{}, out interfa
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -98,21 +93,16 @@ func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in interface{}, out interfa
{ {
in := in.(*CertificateSigningRequestSpec) in := in.(*CertificateSigningRequestSpec)
out := out.(*CertificateSigningRequestSpec) out := out.(*CertificateSigningRequestSpec)
*out = *in
if in.Request != nil { if in.Request != nil {
in, out := &in.Request, &out.Request in, out := &in.Request, &out.Request
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Request = nil
} }
out.Username = in.Username
out.UID = in.UID
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
return nil return nil
} }
@ -122,6 +112,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in interface{}, out inter
{ {
in := in.(*CertificateSigningRequestStatus) in := in.(*CertificateSigningRequestStatus)
out := out.(*CertificateSigningRequestStatus) out := out.(*CertificateSigningRequestStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]CertificateSigningRequestCondition, len(*in)) *out = make([]CertificateSigningRequestCondition, len(*in))
@ -130,15 +121,11 @@ func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in interface{}, out inter
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.Certificate != nil { if in.Certificate != nil {
in, out := &in.Certificate, &out.Certificate in, out := &in.Certificate, &out.Certificate
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Certificate = nil
} }
return nil return nil
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1alpha1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -47,7 +47,7 @@ func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interfa
{ {
in := in.(*CertificateSigningRequest) in := in.(*CertificateSigningRequest)
out := out.(*CertificateSigningRequest) out := out.(*CertificateSigningRequest)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,9 +65,7 @@ func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, ou
{ {
in := in.(*CertificateSigningRequestCondition) in := in.(*CertificateSigningRequestCondition)
out := out.(*CertificateSigningRequestCondition) out := out.(*CertificateSigningRequestCondition)
out.Type = in.Type *out = *in
out.Reason = in.Reason
out.Message = in.Message
out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
return nil return nil
} }
@ -77,8 +75,7 @@ func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out int
{ {
in := in.(*CertificateSigningRequestList) in := in.(*CertificateSigningRequestList)
out := out.(*CertificateSigningRequestList) out := out.(*CertificateSigningRequestList)
out.TypeMeta = in.TypeMeta *out = *in
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([]CertificateSigningRequest, len(*in)) *out = make([]CertificateSigningRequest, len(*in))
@ -87,8 +84,6 @@ func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out int
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -98,21 +93,16 @@ func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out int
{ {
in := in.(*CertificateSigningRequestSpec) in := in.(*CertificateSigningRequestSpec)
out := out.(*CertificateSigningRequestSpec) out := out.(*CertificateSigningRequestSpec)
*out = *in
if in.Request != nil { if in.Request != nil {
in, out := &in.Request, &out.Request in, out := &in.Request, &out.Request
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Request = nil
} }
out.Username = in.Username
out.UID = in.UID
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Groups = nil
} }
return nil return nil
} }
@ -122,6 +112,7 @@ func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out i
{ {
in := in.(*CertificateSigningRequestStatus) in := in.(*CertificateSigningRequestStatus)
out := out.(*CertificateSigningRequestStatus) out := out.(*CertificateSigningRequestStatus)
*out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]CertificateSigningRequestCondition, len(*in)) *out = make([]CertificateSigningRequestCondition, len(*in))
@ -130,15 +121,11 @@ func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out i
return err return err
} }
} }
} else {
out.Conditions = nil
} }
if in.Certificate != nil { if in.Certificate != nil {
in, out := &in.Certificate, &out.Certificate in, out := &in.Certificate, &out.Certificate
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Certificate = nil
} }
return nil return nil
} }

View File

@ -52,40 +52,17 @@ func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c
{ {
in := in.(*KubeProxyConfiguration) in := in.(*KubeProxyConfiguration)
out := out.(*KubeProxyConfiguration) out := out.(*KubeProxyConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.BindAddress = in.BindAddress
out.ClusterCIDR = in.ClusterCIDR
out.HealthzBindAddress = in.HealthzBindAddress
out.HealthzPort = in.HealthzPort
out.HostnameOverride = in.HostnameOverride
if in.IPTablesMasqueradeBit != nil { if in.IPTablesMasqueradeBit != nil {
in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.IPTablesMasqueradeBit = nil
} }
out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
out.IPTablesMinSyncPeriod = in.IPTablesMinSyncPeriod
out.KubeconfigPath = in.KubeconfigPath
out.MasqueradeAll = in.MasqueradeAll
out.Master = in.Master
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.OOMScoreAdj = nil
} }
out.Mode = in.Mode
out.PortRange = in.PortRange
out.ResourceContainer = in.ResourceContainer
out.UDPIdleTimeout = in.UDPIdleTimeout
out.ConntrackMax = in.ConntrackMax
out.ConntrackMaxPerCore = in.ConntrackMaxPerCore
out.ConntrackMin = in.ConntrackMin
out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout
return nil return nil
} }
} }
@ -94,25 +71,12 @@ func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{
{ {
in := in.(*KubeSchedulerConfiguration) in := in.(*KubeSchedulerConfiguration)
out := out.(*KubeSchedulerConfiguration) out := out.(*KubeSchedulerConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.Port = in.Port
out.Address = in.Address
out.AlgorithmProvider = in.AlgorithmProvider
out.PolicyConfigFile = in.PolicyConfigFile
if in.EnableProfiling != nil { if in.EnableProfiling != nil {
in, out := &in.EnableProfiling, &out.EnableProfiling in, out := &in.EnableProfiling, &out.EnableProfiling
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.EnableProfiling = nil
} }
out.EnableContentionProfiling = in.EnableContentionProfiling
out.ContentType = in.ContentType
out.KubeAPIQPS = in.KubeAPIQPS
out.KubeAPIBurst = in.KubeAPIBurst
out.SchedulerName = in.SchedulerName
out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
out.FailureDomains = in.FailureDomains
if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil { if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil {
return err return err
} }
@ -124,12 +88,11 @@ func DeepCopy_v1alpha1_KubeletAnonymousAuthentication(in interface{}, out interf
{ {
in := in.(*KubeletAnonymousAuthentication) in := in.(*KubeletAnonymousAuthentication)
out := out.(*KubeletAnonymousAuthentication) out := out.(*KubeletAnonymousAuthentication)
*out = *in
if in.Enabled != nil { if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled in, out := &in.Enabled, &out.Enabled
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Enabled = nil
} }
return nil return nil
} }
@ -139,7 +102,7 @@ func DeepCopy_v1alpha1_KubeletAuthentication(in interface{}, out interface{}, c
{ {
in := in.(*KubeletAuthentication) in := in.(*KubeletAuthentication)
out := out.(*KubeletAuthentication) out := out.(*KubeletAuthentication)
out.X509 = in.X509 *out = *in
if err := DeepCopy_v1alpha1_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, c); err != nil { if err := DeepCopy_v1alpha1_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, c); err != nil {
return err return err
} }
@ -154,8 +117,7 @@ func DeepCopy_v1alpha1_KubeletAuthorization(in interface{}, out interface{}, c *
{ {
in := in.(*KubeletAuthorization) in := in.(*KubeletAuthorization)
out := out.(*KubeletAuthorization) out := out.(*KubeletAuthorization)
out.Mode = in.Mode *out = *in
out.Webhook = in.Webhook
return nil return nil
} }
} }
@ -164,199 +126,99 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
{ {
in := in.(*KubeletConfiguration) in := in.(*KubeletConfiguration)
out := out.(*KubeletConfiguration) out := out.(*KubeletConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.PodManifestPath = in.PodManifestPath
out.SyncFrequency = in.SyncFrequency
out.FileCheckFrequency = in.FileCheckFrequency
out.HTTPCheckFrequency = in.HTTPCheckFrequency
out.ManifestURL = in.ManifestURL
out.ManifestURLHeader = in.ManifestURLHeader
if in.EnableServer != nil { if in.EnableServer != nil {
in, out := &in.EnableServer, &out.EnableServer in, out := &in.EnableServer, &out.EnableServer
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.EnableServer = nil
} }
out.Address = in.Address
out.Port = in.Port
out.ReadOnlyPort = in.ReadOnlyPort
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CertDirectory = in.CertDirectory
if err := DeepCopy_v1alpha1_KubeletAuthentication(&in.Authentication, &out.Authentication, c); err != nil { if err := DeepCopy_v1alpha1_KubeletAuthentication(&in.Authentication, &out.Authentication, c); err != nil {
return err return err
} }
out.Authorization = in.Authorization
out.HostnameOverride = in.HostnameOverride
out.PodInfraContainerImage = in.PodInfraContainerImage
out.DockerEndpoint = in.DockerEndpoint
out.RootDirectory = in.RootDirectory
out.SeccompProfileRoot = in.SeccompProfileRoot
if in.AllowPrivileged != nil { if in.AllowPrivileged != nil {
in, out := &in.AllowPrivileged, &out.AllowPrivileged in, out := &in.AllowPrivileged, &out.AllowPrivileged
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.AllowPrivileged = nil
} }
if in.HostNetworkSources != nil { if in.HostNetworkSources != nil {
in, out := &in.HostNetworkSources, &out.HostNetworkSources in, out := &in.HostNetworkSources, &out.HostNetworkSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostNetworkSources = nil
} }
if in.HostPIDSources != nil { if in.HostPIDSources != nil {
in, out := &in.HostPIDSources, &out.HostPIDSources in, out := &in.HostPIDSources, &out.HostPIDSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostPIDSources = nil
} }
if in.HostIPCSources != nil { if in.HostIPCSources != nil {
in, out := &in.HostIPCSources, &out.HostIPCSources in, out := &in.HostIPCSources, &out.HostIPCSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostIPCSources = nil
} }
if in.RegistryPullQPS != nil { if in.RegistryPullQPS != nil {
in, out := &in.RegistryPullQPS, &out.RegistryPullQPS in, out := &in.RegistryPullQPS, &out.RegistryPullQPS
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.RegistryPullQPS = nil
} }
out.RegistryBurst = in.RegistryBurst
if in.EventRecordQPS != nil { if in.EventRecordQPS != nil {
in, out := &in.EventRecordQPS, &out.EventRecordQPS in, out := &in.EventRecordQPS, &out.EventRecordQPS
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.EventRecordQPS = nil
} }
out.EventBurst = in.EventBurst
if in.EnableDebuggingHandlers != nil { if in.EnableDebuggingHandlers != nil {
in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.EnableDebuggingHandlers = nil
} }
out.MinimumGCAge = in.MinimumGCAge
out.MaxPerPodContainerCount = in.MaxPerPodContainerCount
if in.MaxContainerCount != nil { if in.MaxContainerCount != nil {
in, out := &in.MaxContainerCount, &out.MaxContainerCount in, out := &in.MaxContainerCount, &out.MaxContainerCount
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.MaxContainerCount = nil
} }
out.CAdvisorPort = in.CAdvisorPort
out.HealthzPort = in.HealthzPort
out.HealthzBindAddress = in.HealthzBindAddress
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.OOMScoreAdj = nil
} }
if in.RegisterNode != nil { if in.RegisterNode != nil {
in, out := &in.RegisterNode, &out.RegisterNode in, out := &in.RegisterNode, &out.RegisterNode
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.RegisterNode = nil
} }
out.ClusterDomain = in.ClusterDomain
out.MasterServiceNamespace = in.MasterServiceNamespace
out.ClusterDNS = in.ClusterDNS
out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ImageMinimumGCAge = in.ImageMinimumGCAge
if in.ImageGCHighThresholdPercent != nil { if in.ImageGCHighThresholdPercent != nil {
in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.ImageGCHighThresholdPercent = nil
} }
if in.ImageGCLowThresholdPercent != nil { if in.ImageGCLowThresholdPercent != nil {
in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.ImageGCLowThresholdPercent = nil
} }
out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
out.NetworkPluginName = in.NetworkPluginName
out.NetworkPluginDir = in.NetworkPluginDir
out.CNIConfDir = in.CNIConfDir
out.CNIBinDir = in.CNIBinDir
out.NetworkPluginMTU = in.NetworkPluginMTU
out.VolumePluginDir = in.VolumePluginDir
out.CloudProvider = in.CloudProvider
out.CloudConfigFile = in.CloudConfigFile
out.KubeletCgroups = in.KubeletCgroups
out.RuntimeCgroups = in.RuntimeCgroups
out.SystemCgroups = in.SystemCgroups
out.CgroupRoot = in.CgroupRoot
if in.ExperimentalCgroupsPerQOS != nil { if in.ExperimentalCgroupsPerQOS != nil {
in, out := &in.ExperimentalCgroupsPerQOS, &out.ExperimentalCgroupsPerQOS in, out := &in.ExperimentalCgroupsPerQOS, &out.ExperimentalCgroupsPerQOS
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.ExperimentalCgroupsPerQOS = nil
} }
out.CgroupDriver = in.CgroupDriver
out.ContainerRuntime = in.ContainerRuntime
out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint
out.RemoteImageEndpoint = in.RemoteImageEndpoint
out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
out.ImagePullProgressDeadline = in.ImagePullProgressDeadline
out.RktPath = in.RktPath
out.ExperimentalMounterPath = in.ExperimentalMounterPath
out.RktAPIEndpoint = in.RktAPIEndpoint
out.RktStage1Image = in.RktStage1Image
if in.LockFilePath != nil { if in.LockFilePath != nil {
in, out := &in.LockFilePath, &out.LockFilePath in, out := &in.LockFilePath, &out.LockFilePath
*out = new(string) *out = new(string)
**out = **in **out = **in
} else {
out.LockFilePath = nil
} }
out.ExitOnLockContention = in.ExitOnLockContention
out.HairpinMode = in.HairpinMode
out.BabysitDaemons = in.BabysitDaemons
out.MaxPods = in.MaxPods
out.NvidiaGPUs = in.NvidiaGPUs
out.DockerExecHandlerName = in.DockerExecHandlerName
out.PodCIDR = in.PodCIDR
out.ResolverConfig = in.ResolverConfig
if in.CPUCFSQuota != nil { if in.CPUCFSQuota != nil {
in, out := &in.CPUCFSQuota, &out.CPUCFSQuota in, out := &in.CPUCFSQuota, &out.CPUCFSQuota
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.CPUCFSQuota = nil
} }
if in.Containerized != nil { if in.Containerized != nil {
in, out := &in.Containerized, &out.Containerized in, out := &in.Containerized, &out.Containerized
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Containerized = nil
} }
out.MaxOpenFiles = in.MaxOpenFiles
if in.RegisterSchedulable != nil { if in.RegisterSchedulable != nil {
in, out := &in.RegisterSchedulable, &out.RegisterSchedulable in, out := &in.RegisterSchedulable, &out.RegisterSchedulable
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.RegisterSchedulable = nil
} }
if in.RegisterWithTaints != nil { if in.RegisterWithTaints != nil {
in, out := &in.RegisterWithTaints, &out.RegisterWithTaints in, out := &in.RegisterWithTaints, &out.RegisterWithTaints
@ -364,64 +226,38 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.RegisterWithTaints = nil
} }
out.ContentType = in.ContentType
if in.KubeAPIQPS != nil { if in.KubeAPIQPS != nil {
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.KubeAPIQPS = nil
} }
out.KubeAPIBurst = in.KubeAPIBurst
if in.SerializeImagePulls != nil { if in.SerializeImagePulls != nil {
in, out := &in.SerializeImagePulls, &out.SerializeImagePulls in, out := &in.SerializeImagePulls, &out.SerializeImagePulls
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.SerializeImagePulls = nil
} }
out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
out.NodeIP = in.NodeIP
if in.NodeLabels != nil { if in.NodeLabels != nil {
in, out := &in.NodeLabels, &out.NodeLabels in, out := &in.NodeLabels, &out.NodeLabels
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.NodeLabels = nil
} }
out.NonMasqueradeCIDR = in.NonMasqueradeCIDR
out.EnableCustomMetrics = in.EnableCustomMetrics
if in.EvictionHard != nil { if in.EvictionHard != nil {
in, out := &in.EvictionHard, &out.EvictionHard in, out := &in.EvictionHard, &out.EvictionHard
*out = new(string) *out = new(string)
**out = **in **out = **in
} else {
out.EvictionHard = nil
} }
out.EvictionSoft = in.EvictionSoft
out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod
out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod
out.EvictionMinimumReclaim = in.EvictionMinimumReclaim
if in.ExperimentalKernelMemcgNotification != nil { if in.ExperimentalKernelMemcgNotification != nil {
in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.ExperimentalKernelMemcgNotification = nil
} }
out.PodsPerCore = in.PodsPerCore
if in.EnableControllerAttachDetach != nil { if in.EnableControllerAttachDetach != nil {
in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.EnableControllerAttachDetach = nil
} }
if in.SystemReserved != nil { if in.SystemReserved != nil {
in, out := &in.SystemReserved, &out.SystemReserved in, out := &in.SystemReserved, &out.SystemReserved
@ -429,8 +265,6 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.SystemReserved = nil
} }
if in.KubeReserved != nil { if in.KubeReserved != nil {
in, out := &in.KubeReserved, &out.KubeReserved in, out := &in.KubeReserved, &out.KubeReserved
@ -438,42 +272,27 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.KubeReserved = nil
} }
out.ProtectKernelDefaults = in.ProtectKernelDefaults
if in.MakeIPTablesUtilChains != nil { if in.MakeIPTablesUtilChains != nil {
in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.MakeIPTablesUtilChains = nil
} }
if in.IPTablesMasqueradeBit != nil { if in.IPTablesMasqueradeBit != nil {
in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.IPTablesMasqueradeBit = nil
} }
if in.IPTablesDropBit != nil { if in.IPTablesDropBit != nil {
in, out := &in.IPTablesDropBit, &out.IPTablesDropBit in, out := &in.IPTablesDropBit, &out.IPTablesDropBit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.IPTablesDropBit = nil
} }
if in.AllowedUnsafeSysctls != nil { if in.AllowedUnsafeSysctls != nil {
in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.AllowedUnsafeSysctls = nil
} }
out.FeatureGates = in.FeatureGates
out.EnableCRI = in.EnableCRI
out.ExperimentalFailSwapOn = in.ExperimentalFailSwapOn
out.ExperimentalCheckNodeCapabilitiesBeforeMount = in.ExperimentalCheckNodeCapabilitiesBeforeMount
return nil return nil
} }
} }
@ -482,14 +301,12 @@ func DeepCopy_v1alpha1_KubeletWebhookAuthentication(in interface{}, out interfac
{ {
in := in.(*KubeletWebhookAuthentication) in := in.(*KubeletWebhookAuthentication)
out := out.(*KubeletWebhookAuthentication) out := out.(*KubeletWebhookAuthentication)
*out = *in
if in.Enabled != nil { if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled in, out := &in.Enabled, &out.Enabled
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Enabled = nil
} }
out.CacheTTL = in.CacheTTL
return nil return nil
} }
} }
@ -498,8 +315,7 @@ func DeepCopy_v1alpha1_KubeletWebhookAuthorization(in interface{}, out interface
{ {
in := in.(*KubeletWebhookAuthorization) in := in.(*KubeletWebhookAuthorization)
out := out.(*KubeletWebhookAuthorization) out := out.(*KubeletWebhookAuthorization)
out.CacheAuthorizedTTL = in.CacheAuthorizedTTL *out = *in
out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL
return nil return nil
} }
} }
@ -508,7 +324,7 @@ func DeepCopy_v1alpha1_KubeletX509Authentication(in interface{}, out interface{}
{ {
in := in.(*KubeletX509Authentication) in := in.(*KubeletX509Authentication)
out := out.(*KubeletX509Authentication) out := out.(*KubeletX509Authentication)
out.ClientCAFile = in.ClientCAFile *out = *in
return nil return nil
} }
} }
@ -517,16 +333,12 @@ func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface
{ {
in := in.(*LeaderElectionConfiguration) in := in.(*LeaderElectionConfiguration)
out := out.(*LeaderElectionConfiguration) out := out.(*LeaderElectionConfiguration)
*out = *in
if in.LeaderElect != nil { if in.LeaderElect != nil {
in, out := &in.LeaderElect, &out.LeaderElect in, out := &in.LeaderElect, &out.LeaderElect
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.LeaderElect = nil
} }
out.LeaseDuration = in.LeaseDuration
out.RenewDeadline = in.RenewDeadline
out.RetryPeriod = in.RetryPeriod
return nil return nil
} }
} }

View File

@ -58,12 +58,11 @@ func DeepCopy_componentconfig_IPVar(in interface{}, out interface{}, c *conversi
{ {
in := in.(*IPVar) in := in.(*IPVar)
out := out.(*IPVar) out := out.(*IPVar)
*out = *in
if in.Val != nil { if in.Val != nil {
in, out := &in.Val, &out.Val in, out := &in.Val, &out.Val
*out = new(string) *out = new(string)
**out = **in **out = **in
} else {
out.Val = nil
} }
return nil return nil
} }
@ -73,66 +72,7 @@ func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{},
{ {
in := in.(*KubeControllerManagerConfiguration) in := in.(*KubeControllerManagerConfiguration)
out := out.(*KubeControllerManagerConfiguration) out := out.(*KubeControllerManagerConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.Port = in.Port
out.Address = in.Address
out.UseServiceAccountCredentials = in.UseServiceAccountCredentials
out.CloudProvider = in.CloudProvider
out.CloudConfigFile = in.CloudConfigFile
out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs
out.ConcurrentRSSyncs = in.ConcurrentRSSyncs
out.ConcurrentRCSyncs = in.ConcurrentRCSyncs
out.ConcurrentServiceSyncs = in.ConcurrentServiceSyncs
out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs
out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs
out.ConcurrentDaemonSetSyncs = in.ConcurrentDaemonSetSyncs
out.ConcurrentJobSyncs = in.ConcurrentJobSyncs
out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs
out.ConcurrentSATokenSyncs = in.ConcurrentSATokenSyncs
out.LookupCacheSizeForRC = in.LookupCacheSizeForRC
out.LookupCacheSizeForRS = in.LookupCacheSizeForRS
out.LookupCacheSizeForDaemonSet = in.LookupCacheSizeForDaemonSet
out.ServiceSyncPeriod = in.ServiceSyncPeriod
out.NodeSyncPeriod = in.NodeSyncPeriod
out.RouteReconciliationPeriod = in.RouteReconciliationPeriod
out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod
out.NamespaceSyncPeriod = in.NamespaceSyncPeriod
out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod
out.MinResyncPeriod = in.MinResyncPeriod
out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold
out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod
out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod
out.PodEvictionTimeout = in.PodEvictionTimeout
out.DeletingPodsQps = in.DeletingPodsQps
out.DeletingPodsBurst = in.DeletingPodsBurst
out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod
out.RegisterRetryCount = in.RegisterRetryCount
out.NodeStartupGracePeriod = in.NodeStartupGracePeriod
out.NodeMonitorPeriod = in.NodeMonitorPeriod
out.ServiceAccountKeyFile = in.ServiceAccountKeyFile
out.ClusterSigningCertFile = in.ClusterSigningCertFile
out.ClusterSigningKeyFile = in.ClusterSigningKeyFile
out.ApproveAllKubeletCSRsForGroup = in.ApproveAllKubeletCSRsForGroup
out.EnableProfiling = in.EnableProfiling
out.ClusterName = in.ClusterName
out.ClusterCIDR = in.ClusterCIDR
out.ServiceCIDR = in.ServiceCIDR
out.NodeCIDRMaskSize = in.NodeCIDRMaskSize
out.AllocateNodeCIDRs = in.AllocateNodeCIDRs
out.ConfigureCloudRoutes = in.ConfigureCloudRoutes
out.RootCAFile = in.RootCAFile
out.ContentType = in.ContentType
out.KubeAPIQPS = in.KubeAPIQPS
out.KubeAPIBurst = in.KubeAPIBurst
out.LeaderElection = in.LeaderElection
out.VolumeConfiguration = in.VolumeConfiguration
out.ControllerStartInterval = in.ControllerStartInterval
out.EnableGarbageCollector = in.EnableGarbageCollector
out.ConcurrentGCSyncs = in.ConcurrentGCSyncs
out.NodeEvictionRate = in.NodeEvictionRate
out.SecondaryNodeEvictionRate = in.SecondaryNodeEvictionRate
out.LargeClusterSizeThreshold = in.LargeClusterSizeThreshold
out.UnhealthyZoneThreshold = in.UnhealthyZoneThreshold
return nil return nil
} }
} }
@ -141,40 +81,17 @@ func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interfa
{ {
in := in.(*KubeProxyConfiguration) in := in.(*KubeProxyConfiguration)
out := out.(*KubeProxyConfiguration) out := out.(*KubeProxyConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.BindAddress = in.BindAddress
out.ClusterCIDR = in.ClusterCIDR
out.HealthzBindAddress = in.HealthzBindAddress
out.HealthzPort = in.HealthzPort
out.HostnameOverride = in.HostnameOverride
if in.IPTablesMasqueradeBit != nil { if in.IPTablesMasqueradeBit != nil {
in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.IPTablesMasqueradeBit = nil
} }
out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
out.IPTablesMinSyncPeriod = in.IPTablesMinSyncPeriod
out.KubeconfigPath = in.KubeconfigPath
out.MasqueradeAll = in.MasqueradeAll
out.Master = in.Master
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.OOMScoreAdj = nil
} }
out.Mode = in.Mode
out.PortRange = in.PortRange
out.ResourceContainer = in.ResourceContainer
out.UDPIdleTimeout = in.UDPIdleTimeout
out.ConntrackMax = in.ConntrackMax
out.ConntrackMaxPerCore = in.ConntrackMaxPerCore
out.ConntrackMin = in.ConntrackMin
out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout
return nil return nil
} }
} }
@ -183,20 +100,7 @@ func DeepCopy_componentconfig_KubeSchedulerConfiguration(in interface{}, out int
{ {
in := in.(*KubeSchedulerConfiguration) in := in.(*KubeSchedulerConfiguration)
out := out.(*KubeSchedulerConfiguration) out := out.(*KubeSchedulerConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.Port = in.Port
out.Address = in.Address
out.AlgorithmProvider = in.AlgorithmProvider
out.PolicyConfigFile = in.PolicyConfigFile
out.EnableProfiling = in.EnableProfiling
out.EnableContentionProfiling = in.EnableContentionProfiling
out.ContentType = in.ContentType
out.KubeAPIQPS = in.KubeAPIQPS
out.KubeAPIBurst = in.KubeAPIBurst
out.SchedulerName = in.SchedulerName
out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
out.FailureDomains = in.FailureDomains
out.LeaderElection = in.LeaderElection
return nil return nil
} }
} }
@ -205,7 +109,7 @@ func DeepCopy_componentconfig_KubeletAnonymousAuthentication(in interface{}, out
{ {
in := in.(*KubeletAnonymousAuthentication) in := in.(*KubeletAnonymousAuthentication)
out := out.(*KubeletAnonymousAuthentication) out := out.(*KubeletAnonymousAuthentication)
out.Enabled = in.Enabled *out = *in
return nil return nil
} }
} }
@ -214,9 +118,7 @@ func DeepCopy_componentconfig_KubeletAuthentication(in interface{}, out interfac
{ {
in := in.(*KubeletAuthentication) in := in.(*KubeletAuthentication)
out := out.(*KubeletAuthentication) out := out.(*KubeletAuthentication)
out.X509 = in.X509 *out = *in
out.Webhook = in.Webhook
out.Anonymous = in.Anonymous
return nil return nil
} }
} }
@ -225,8 +127,7 @@ func DeepCopy_componentconfig_KubeletAuthorization(in interface{}, out interface
{ {
in := in.(*KubeletAuthorization) in := in.(*KubeletAuthorization)
out := out.(*KubeletAuthorization) out := out.(*KubeletAuthorization)
out.Mode = in.Mode *out = *in
out.Webhook = in.Webhook
return nil return nil
} }
} }
@ -235,151 +136,42 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface
{ {
in := in.(*KubeletConfiguration) in := in.(*KubeletConfiguration)
out := out.(*KubeletConfiguration) out := out.(*KubeletConfiguration)
out.TypeMeta = in.TypeMeta *out = *in
out.PodManifestPath = in.PodManifestPath
out.SyncFrequency = in.SyncFrequency
out.FileCheckFrequency = in.FileCheckFrequency
out.HTTPCheckFrequency = in.HTTPCheckFrequency
out.ManifestURL = in.ManifestURL
out.ManifestURLHeader = in.ManifestURLHeader
out.EnableServer = in.EnableServer
out.Address = in.Address
out.Port = in.Port
out.ReadOnlyPort = in.ReadOnlyPort
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CertDirectory = in.CertDirectory
out.Authentication = in.Authentication
out.Authorization = in.Authorization
out.HostnameOverride = in.HostnameOverride
out.PodInfraContainerImage = in.PodInfraContainerImage
out.DockerEndpoint = in.DockerEndpoint
out.RootDirectory = in.RootDirectory
out.SeccompProfileRoot = in.SeccompProfileRoot
out.AllowPrivileged = in.AllowPrivileged
if in.HostNetworkSources != nil { if in.HostNetworkSources != nil {
in, out := &in.HostNetworkSources, &out.HostNetworkSources in, out := &in.HostNetworkSources, &out.HostNetworkSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostNetworkSources = nil
} }
if in.HostPIDSources != nil { if in.HostPIDSources != nil {
in, out := &in.HostPIDSources, &out.HostPIDSources in, out := &in.HostPIDSources, &out.HostPIDSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostPIDSources = nil
} }
if in.HostIPCSources != nil { if in.HostIPCSources != nil {
in, out := &in.HostIPCSources, &out.HostIPCSources in, out := &in.HostIPCSources, &out.HostIPCSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.HostIPCSources = nil
} }
out.RegistryPullQPS = in.RegistryPullQPS
out.RegistryBurst = in.RegistryBurst
out.EventRecordQPS = in.EventRecordQPS
out.EventBurst = in.EventBurst
out.EnableDebuggingHandlers = in.EnableDebuggingHandlers
out.MinimumGCAge = in.MinimumGCAge
out.MaxPerPodContainerCount = in.MaxPerPodContainerCount
out.MaxContainerCount = in.MaxContainerCount
out.CAdvisorPort = in.CAdvisorPort
out.HealthzPort = in.HealthzPort
out.HealthzBindAddress = in.HealthzBindAddress
out.OOMScoreAdj = in.OOMScoreAdj
out.RegisterNode = in.RegisterNode
out.ClusterDomain = in.ClusterDomain
out.MasterServiceNamespace = in.MasterServiceNamespace
out.ClusterDNS = in.ClusterDNS
out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ImageMinimumGCAge = in.ImageMinimumGCAge
out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent
out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent
out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
out.NetworkPluginName = in.NetworkPluginName
out.NetworkPluginMTU = in.NetworkPluginMTU
out.NetworkPluginDir = in.NetworkPluginDir
out.CNIConfDir = in.CNIConfDir
out.CNIBinDir = in.CNIBinDir
out.VolumePluginDir = in.VolumePluginDir
out.CloudProvider = in.CloudProvider
out.CloudConfigFile = in.CloudConfigFile
out.KubeletCgroups = in.KubeletCgroups
out.ExperimentalCgroupsPerQOS = in.ExperimentalCgroupsPerQOS
out.CgroupDriver = in.CgroupDriver
out.RuntimeCgroups = in.RuntimeCgroups
out.SystemCgroups = in.SystemCgroups
out.CgroupRoot = in.CgroupRoot
out.ContainerRuntime = in.ContainerRuntime
out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint
out.RemoteImageEndpoint = in.RemoteImageEndpoint
out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
out.ImagePullProgressDeadline = in.ImagePullProgressDeadline
out.RktPath = in.RktPath
out.ExperimentalMounterPath = in.ExperimentalMounterPath
out.RktAPIEndpoint = in.RktAPIEndpoint
out.RktStage1Image = in.RktStage1Image
out.LockFilePath = in.LockFilePath
out.ExitOnLockContention = in.ExitOnLockContention
out.HairpinMode = in.HairpinMode
out.BabysitDaemons = in.BabysitDaemons
out.MaxPods = in.MaxPods
out.NvidiaGPUs = in.NvidiaGPUs
out.DockerExecHandlerName = in.DockerExecHandlerName
out.PodCIDR = in.PodCIDR
out.ResolverConfig = in.ResolverConfig
out.CPUCFSQuota = in.CPUCFSQuota
out.Containerized = in.Containerized
out.MaxOpenFiles = in.MaxOpenFiles
out.RegisterSchedulable = in.RegisterSchedulable
if in.RegisterWithTaints != nil { if in.RegisterWithTaints != nil {
in, out := &in.RegisterWithTaints, &out.RegisterWithTaints in, out := &in.RegisterWithTaints, &out.RegisterWithTaints
*out = make([]api.Taint, len(*in)) *out = make([]api.Taint, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.RegisterWithTaints = nil
} }
out.ContentType = in.ContentType
out.KubeAPIQPS = in.KubeAPIQPS
out.KubeAPIBurst = in.KubeAPIBurst
out.SerializeImagePulls = in.SerializeImagePulls
out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
out.NodeIP = in.NodeIP
if in.NodeLabels != nil { if in.NodeLabels != nil {
in, out := &in.NodeLabels, &out.NodeLabels in, out := &in.NodeLabels, &out.NodeLabels
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.NodeLabels = nil
} }
out.NonMasqueradeCIDR = in.NonMasqueradeCIDR
out.EnableCustomMetrics = in.EnableCustomMetrics
out.EvictionHard = in.EvictionHard
out.EvictionSoft = in.EvictionSoft
out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod
out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod
out.EvictionMinimumReclaim = in.EvictionMinimumReclaim
out.ExperimentalKernelMemcgNotification = in.ExperimentalKernelMemcgNotification
out.PodsPerCore = in.PodsPerCore
out.EnableControllerAttachDetach = in.EnableControllerAttachDetach
if in.SystemReserved != nil { if in.SystemReserved != nil {
in, out := &in.SystemReserved, &out.SystemReserved in, out := &in.SystemReserved, &out.SystemReserved
*out = make(config.ConfigurationMap) *out = make(config.ConfigurationMap)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.SystemReserved = nil
} }
if in.KubeReserved != nil { if in.KubeReserved != nil {
in, out := &in.KubeReserved, &out.KubeReserved in, out := &in.KubeReserved, &out.KubeReserved
@ -387,24 +179,12 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.KubeReserved = nil
} }
out.ProtectKernelDefaults = in.ProtectKernelDefaults
out.MakeIPTablesUtilChains = in.MakeIPTablesUtilChains
out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit
out.IPTablesDropBit = in.IPTablesDropBit
if in.AllowedUnsafeSysctls != nil { if in.AllowedUnsafeSysctls != nil {
in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.AllowedUnsafeSysctls = nil
} }
out.FeatureGates = in.FeatureGates
out.EnableCRI = in.EnableCRI
out.ExperimentalFailSwapOn = in.ExperimentalFailSwapOn
out.ExperimentalCheckNodeCapabilitiesBeforeMount = in.ExperimentalCheckNodeCapabilitiesBeforeMount
return nil return nil
} }
} }
@ -413,8 +193,7 @@ func DeepCopy_componentconfig_KubeletWebhookAuthentication(in interface{}, out i
{ {
in := in.(*KubeletWebhookAuthentication) in := in.(*KubeletWebhookAuthentication)
out := out.(*KubeletWebhookAuthentication) out := out.(*KubeletWebhookAuthentication)
out.Enabled = in.Enabled *out = *in
out.CacheTTL = in.CacheTTL
return nil return nil
} }
} }
@ -423,8 +202,7 @@ func DeepCopy_componentconfig_KubeletWebhookAuthorization(in interface{}, out in
{ {
in := in.(*KubeletWebhookAuthorization) in := in.(*KubeletWebhookAuthorization)
out := out.(*KubeletWebhookAuthorization) out := out.(*KubeletWebhookAuthorization)
out.CacheAuthorizedTTL = in.CacheAuthorizedTTL *out = *in
out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL
return nil return nil
} }
} }
@ -433,7 +211,7 @@ func DeepCopy_componentconfig_KubeletX509Authentication(in interface{}, out inte
{ {
in := in.(*KubeletX509Authentication) in := in.(*KubeletX509Authentication)
out := out.(*KubeletX509Authentication) out := out.(*KubeletX509Authentication)
out.ClientCAFile = in.ClientCAFile *out = *in
return nil return nil
} }
} }
@ -442,10 +220,7 @@ func DeepCopy_componentconfig_LeaderElectionConfiguration(in interface{}, out in
{ {
in := in.(*LeaderElectionConfiguration) in := in.(*LeaderElectionConfiguration)
out := out.(*LeaderElectionConfiguration) out := out.(*LeaderElectionConfiguration)
out.LeaderElect = in.LeaderElect *out = *in
out.LeaseDuration = in.LeaseDuration
out.RenewDeadline = in.RenewDeadline
out.RetryPeriod = in.RetryPeriod
return nil return nil
} }
} }
@ -454,13 +229,7 @@ func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in interface
{ {
in := in.(*PersistentVolumeRecyclerConfiguration) in := in.(*PersistentVolumeRecyclerConfiguration)
out := out.(*PersistentVolumeRecyclerConfiguration) out := out.(*PersistentVolumeRecyclerConfiguration)
out.MaximumRetry = in.MaximumRetry *out = *in
out.MinimumTimeoutNFS = in.MinimumTimeoutNFS
out.PodTemplateFilePathNFS = in.PodTemplateFilePathNFS
out.IncrementTimeoutNFS = in.IncrementTimeoutNFS
out.PodTemplateFilePathHostPath = in.PodTemplateFilePathHostPath
out.MinimumTimeoutHostPath = in.MinimumTimeoutHostPath
out.IncrementTimeoutHostPath = in.IncrementTimeoutHostPath
return nil return nil
} }
} }
@ -469,12 +238,11 @@ func DeepCopy_componentconfig_PortRangeVar(in interface{}, out interface{}, c *c
{ {
in := in.(*PortRangeVar) in := in.(*PortRangeVar)
out := out.(*PortRangeVar) out := out.(*PortRangeVar)
*out = *in
if in.Val != nil { if in.Val != nil {
in, out := &in.Val, &out.Val in, out := &in.Val, &out.Val
*out = new(string) *out = new(string)
**out = **in **out = **in
} else {
out.Val = nil
} }
return nil return nil
} }
@ -484,10 +252,7 @@ func DeepCopy_componentconfig_VolumeConfiguration(in interface{}, out interface{
{ {
in := in.(*VolumeConfiguration) in := in.(*VolumeConfiguration)
out := out.(*VolumeConfiguration) out := out.(*VolumeConfiguration)
out.EnableHostPathProvisioning = in.EnableHostPathProvisioning *out = *in
out.EnableDynamicProvisioning = in.EnableDynamicProvisioning
out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration
out.FlexVolumePluginDir = in.FlexVolumePluginDir
return nil return nil
} }
} }

View File

@ -106,7 +106,7 @@ func DeepCopy_v1beta1_APIVersion(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*APIVersion) in := in.(*APIVersion)
out := out.(*APIVersion) out := out.(*APIVersion)
out.Name = in.Name *out = *in
return nil return nil
} }
} }
@ -115,7 +115,7 @@ func DeepCopy_v1beta1_CPUTargetUtilization(in interface{}, out interface{}, c *c
{ {
in := in.(*CPUTargetUtilization) in := in.(*CPUTargetUtilization)
out := out.(*CPUTargetUtilization) out := out.(*CPUTargetUtilization)
out.TargetPercentage = in.TargetPercentage *out = *in
return nil return nil
} }
} }
@ -124,7 +124,7 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatus(in interface{}, out interface{},
{ {
in := in.(*CustomMetricCurrentStatus) in := in.(*CustomMetricCurrentStatus)
out := out.(*CustomMetricCurrentStatus) out := out.(*CustomMetricCurrentStatus)
out.Name = in.Name *out = *in
out.CurrentValue = in.CurrentValue.DeepCopy() out.CurrentValue = in.CurrentValue.DeepCopy()
return nil return nil
} }
@ -134,6 +134,7 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in interface{}, out interfac
{ {
in := in.(*CustomMetricCurrentStatusList) in := in.(*CustomMetricCurrentStatusList)
out := out.(*CustomMetricCurrentStatusList) out := out.(*CustomMetricCurrentStatusList)
*out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CustomMetricCurrentStatus, len(*in)) *out = make([]CustomMetricCurrentStatus, len(*in))
@ -142,8 +143,6 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in interface{}, out interfac
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -153,7 +152,7 @@ func DeepCopy_v1beta1_CustomMetricTarget(in interface{}, out interface{}, c *con
{ {
in := in.(*CustomMetricTarget) in := in.(*CustomMetricTarget)
out := out.(*CustomMetricTarget) out := out.(*CustomMetricTarget)
out.Name = in.Name *out = *in
out.TargetValue = in.TargetValue.DeepCopy() out.TargetValue = in.TargetValue.DeepCopy()
return nil return nil
} }
@ -163,6 +162,7 @@ func DeepCopy_v1beta1_CustomMetricTargetList(in interface{}, out interface{}, c
{ {
in := in.(*CustomMetricTargetList) in := in.(*CustomMetricTargetList)
out := out.(*CustomMetricTargetList) out := out.(*CustomMetricTargetList)
*out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CustomMetricTarget, len(*in)) *out = make([]CustomMetricTarget, len(*in))
@ -171,8 +171,6 @@ func DeepCopy_v1beta1_CustomMetricTargetList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -182,14 +180,13 @@ func DeepCopy_v1beta1_DaemonSet(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*DaemonSet) in := in.(*DaemonSet)
out := out.(*DaemonSet) out := out.(*DaemonSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1beta1_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -198,8 +195,7 @@ func DeepCopy_v1beta1_DaemonSetList(in interface{}, out interface{}, c *conversi
{ {
in := in.(*DaemonSetList) in := in.(*DaemonSetList)
out := out.(*DaemonSetList) out := out.(*DaemonSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]DaemonSet, len(*in)) *out = make([]DaemonSet, len(*in))
@ -208,8 +204,6 @@ func DeepCopy_v1beta1_DaemonSetList(in interface{}, out interface{}, c *conversi
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -219,14 +213,13 @@ func DeepCopy_v1beta1_DaemonSetSpec(in interface{}, out interface{}, c *conversi
{ {
in := in.(*DaemonSetSpec) in := in.(*DaemonSetSpec)
out := out.(*DaemonSetSpec) out := out.(*DaemonSetSpec)
*out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(meta_v1.LabelSelector) *out = new(meta_v1.LabelSelector)
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -239,11 +232,7 @@ func DeepCopy_v1beta1_DaemonSetStatus(in interface{}, out interface{}, c *conver
{ {
in := in.(*DaemonSetStatus) in := in.(*DaemonSetStatus)
out := out.(*DaemonSetStatus) out := out.(*DaemonSetStatus)
out.CurrentNumberScheduled = in.CurrentNumberScheduled *out = *in
out.NumberMisscheduled = in.NumberMisscheduled
out.DesiredNumberScheduled = in.DesiredNumberScheduled
out.NumberReady = in.NumberReady
out.ObservedGeneration = in.ObservedGeneration
return nil return nil
} }
} }
@ -252,7 +241,7 @@ func DeepCopy_v1beta1_Deployment(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*Deployment) in := in.(*Deployment)
out := out.(*Deployment) out := out.(*Deployment)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -270,12 +259,9 @@ func DeepCopy_v1beta1_DeploymentCondition(in interface{}, out interface{}, c *co
{ {
in := in.(*DeploymentCondition) in := in.(*DeploymentCondition)
out := out.(*DeploymentCondition) out := out.(*DeploymentCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -284,8 +270,7 @@ func DeepCopy_v1beta1_DeploymentList(in interface{}, out interface{}, c *convers
{ {
in := in.(*DeploymentList) in := in.(*DeploymentList)
out := out.(*DeploymentList) out := out.(*DeploymentList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Deployment, len(*in)) *out = make([]Deployment, len(*in))
@ -294,8 +279,6 @@ func DeepCopy_v1beta1_DeploymentList(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -305,18 +288,14 @@ func DeepCopy_v1beta1_DeploymentRollback(in interface{}, out interface{}, c *con
{ {
in := in.(*DeploymentRollback) in := in.(*DeploymentRollback)
out := out.(*DeploymentRollback) out := out.(*DeploymentRollback)
out.TypeMeta = in.TypeMeta *out = *in
out.Name = in.Name
if in.UpdatedAnnotations != nil { if in.UpdatedAnnotations != nil {
in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.UpdatedAnnotations = nil
} }
out.RollbackTo = in.RollbackTo
return nil return nil
} }
} }
@ -325,12 +304,11 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers
{ {
in := in.(*DeploymentSpec) in := in.(*DeploymentSpec)
out := out.(*DeploymentSpec) out := out.(*DeploymentSpec)
*out = *in
if in.Replicas != nil { if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas in, out := &in.Replicas, &out.Replicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Replicas = nil
} }
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
@ -338,8 +316,6 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -347,28 +323,20 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers
if err := DeepCopy_v1beta1_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { if err := DeepCopy_v1beta1_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil {
return err return err
} }
out.MinReadySeconds = in.MinReadySeconds
if in.RevisionHistoryLimit != nil { if in.RevisionHistoryLimit != nil {
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.RevisionHistoryLimit = nil
} }
out.Paused = in.Paused
if in.RollbackTo != nil { if in.RollbackTo != nil {
in, out := &in.RollbackTo, &out.RollbackTo in, out := &in.RollbackTo, &out.RollbackTo
*out = new(RollbackConfig) *out = new(RollbackConfig)
**out = **in **out = **in
} else {
out.RollbackTo = nil
} }
if in.ProgressDeadlineSeconds != nil { if in.ProgressDeadlineSeconds != nil {
in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.ProgressDeadlineSeconds = nil
} }
return nil return nil
} }
@ -378,12 +346,7 @@ func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conve
{ {
in := in.(*DeploymentStatus) in := in.(*DeploymentStatus)
out := out.(*DeploymentStatus) out := out.(*DeploymentStatus)
out.ObservedGeneration = in.ObservedGeneration *out = *in
out.Replicas = in.Replicas
out.UpdatedReplicas = in.UpdatedReplicas
out.ReadyReplicas = in.ReadyReplicas
out.AvailableReplicas = in.AvailableReplicas
out.UnavailableReplicas = in.UnavailableReplicas
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]DeploymentCondition, len(*in)) *out = make([]DeploymentCondition, len(*in))
@ -392,8 +355,6 @@ func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Conditions = nil
} }
return nil return nil
} }
@ -403,15 +364,13 @@ func DeepCopy_v1beta1_DeploymentStrategy(in interface{}, out interface{}, c *con
{ {
in := in.(*DeploymentStrategy) in := in.(*DeploymentStrategy)
out := out.(*DeploymentStrategy) out := out.(*DeploymentStrategy)
out.Type = in.Type *out = *in
if in.RollingUpdate != nil { if in.RollingUpdate != nil {
in, out := &in.RollingUpdate, &out.RollingUpdate in, out := &in.RollingUpdate, &out.RollingUpdate
*out = new(RollingUpdateDeployment) *out = new(RollingUpdateDeployment)
if err := DeepCopy_v1beta1_RollingUpdateDeployment(*in, *out, c); err != nil { if err := DeepCopy_v1beta1_RollingUpdateDeployment(*in, *out, c); err != nil {
return err return err
} }
} else {
out.RollingUpdate = nil
} }
return nil return nil
} }
@ -421,15 +380,13 @@ func DeepCopy_v1beta1_FSGroupStrategyOptions(in interface{}, out interface{}, c
{ {
in := in.(*FSGroupStrategyOptions) in := in.(*FSGroupStrategyOptions)
out := out.(*FSGroupStrategyOptions) out := out.(*FSGroupStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -439,8 +396,7 @@ func DeepCopy_v1beta1_HTTPIngressPath(in interface{}, out interface{}, c *conver
{ {
in := in.(*HTTPIngressPath) in := in.(*HTTPIngressPath)
out := out.(*HTTPIngressPath) out := out.(*HTTPIngressPath)
out.Path = in.Path *out = *in
out.Backend = in.Backend
return nil return nil
} }
} }
@ -449,14 +405,13 @@ func DeepCopy_v1beta1_HTTPIngressRuleValue(in interface{}, out interface{}, c *c
{ {
in := in.(*HTTPIngressRuleValue) in := in.(*HTTPIngressRuleValue)
out := out.(*HTTPIngressRuleValue) out := out.(*HTTPIngressRuleValue)
*out = *in
if in.Paths != nil { if in.Paths != nil {
in, out := &in.Paths, &out.Paths in, out := &in.Paths, &out.Paths
*out = make([]HTTPIngressPath, len(*in)) *out = make([]HTTPIngressPath, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Paths = nil
} }
return nil return nil
} }
@ -466,7 +421,7 @@ func DeepCopy_v1beta1_HorizontalPodAutoscaler(in interface{}, out interface{}, c
{ {
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -484,8 +439,7 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in interface{}, out interface{
{ {
in := in.(*HorizontalPodAutoscalerList) in := in.(*HorizontalPodAutoscalerList)
out := out.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList)
out.TypeMeta = in.TypeMeta *out = *in
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([]HorizontalPodAutoscaler, len(*in)) *out = make([]HorizontalPodAutoscaler, len(*in))
@ -494,8 +448,6 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in interface{}, out interface{
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -505,21 +457,16 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(in interface{}, out interface{
{ {
in := in.(*HorizontalPodAutoscalerSpec) in := in.(*HorizontalPodAutoscalerSpec)
out := out.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec)
out.ScaleRef = in.ScaleRef *out = *in
if in.MinReplicas != nil { if in.MinReplicas != nil {
in, out := &in.MinReplicas, &out.MinReplicas in, out := &in.MinReplicas, &out.MinReplicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.MinReplicas = nil
} }
out.MaxReplicas = in.MaxReplicas
if in.CPUUtilization != nil { if in.CPUUtilization != nil {
in, out := &in.CPUUtilization, &out.CPUUtilization in, out := &in.CPUUtilization, &out.CPUUtilization
*out = new(CPUTargetUtilization) *out = new(CPUTargetUtilization)
**out = **in **out = **in
} else {
out.CPUUtilization = nil
} }
return nil return nil
} }
@ -529,28 +476,21 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in interface{}, out interfac
{ {
in := in.(*HorizontalPodAutoscalerStatus) in := in.(*HorizontalPodAutoscalerStatus)
out := out.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus)
*out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} else {
out.ObservedGeneration = nil
} }
if in.LastScaleTime != nil { if in.LastScaleTime != nil {
in, out := &in.LastScaleTime, &out.LastScaleTime in, out := &in.LastScaleTime, &out.LastScaleTime
*out = new(meta_v1.Time) *out = new(meta_v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} else {
out.LastScaleTime = nil
} }
out.CurrentReplicas = in.CurrentReplicas
out.DesiredReplicas = in.DesiredReplicas
if in.CurrentCPUUtilizationPercentage != nil { if in.CurrentCPUUtilizationPercentage != nil {
in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.CurrentCPUUtilizationPercentage = nil
} }
return nil return nil
} }
@ -560,8 +500,7 @@ func DeepCopy_v1beta1_HostPortRange(in interface{}, out interface{}, c *conversi
{ {
in := in.(*HostPortRange) in := in.(*HostPortRange)
out := out.(*HostPortRange) out := out.(*HostPortRange)
out.Min = in.Min *out = *in
out.Max = in.Max
return nil return nil
} }
} }
@ -570,8 +509,7 @@ func DeepCopy_v1beta1_IDRange(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*IDRange) in := in.(*IDRange)
out := out.(*IDRange) out := out.(*IDRange)
out.Min = in.Min *out = *in
out.Max = in.Max
return nil return nil
} }
} }
@ -580,7 +518,7 @@ func DeepCopy_v1beta1_Ingress(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*Ingress) in := in.(*Ingress)
out := out.(*Ingress) out := out.(*Ingress)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -598,8 +536,7 @@ func DeepCopy_v1beta1_IngressBackend(in interface{}, out interface{}, c *convers
{ {
in := in.(*IngressBackend) in := in.(*IngressBackend)
out := out.(*IngressBackend) out := out.(*IngressBackend)
out.ServiceName = in.ServiceName *out = *in
out.ServicePort = in.ServicePort
return nil return nil
} }
} }
@ -608,8 +545,7 @@ func DeepCopy_v1beta1_IngressList(in interface{}, out interface{}, c *conversion
{ {
in := in.(*IngressList) in := in.(*IngressList)
out := out.(*IngressList) out := out.(*IngressList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Ingress, len(*in)) *out = make([]Ingress, len(*in))
@ -618,8 +554,6 @@ func DeepCopy_v1beta1_IngressList(in interface{}, out interface{}, c *conversion
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -629,7 +563,7 @@ func DeepCopy_v1beta1_IngressRule(in interface{}, out interface{}, c *conversion
{ {
in := in.(*IngressRule) in := in.(*IngressRule)
out := out.(*IngressRule) out := out.(*IngressRule)
out.Host = in.Host *out = *in
if err := DeepCopy_v1beta1_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { if err := DeepCopy_v1beta1_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil {
return err return err
} }
@ -641,14 +575,13 @@ func DeepCopy_v1beta1_IngressRuleValue(in interface{}, out interface{}, c *conve
{ {
in := in.(*IngressRuleValue) in := in.(*IngressRuleValue)
out := out.(*IngressRuleValue) out := out.(*IngressRuleValue)
*out = *in
if in.HTTP != nil { if in.HTTP != nil {
in, out := &in.HTTP, &out.HTTP in, out := &in.HTTP, &out.HTTP
*out = new(HTTPIngressRuleValue) *out = new(HTTPIngressRuleValue)
if err := DeepCopy_v1beta1_HTTPIngressRuleValue(*in, *out, c); err != nil { if err := DeepCopy_v1beta1_HTTPIngressRuleValue(*in, *out, c); err != nil {
return err return err
} }
} else {
out.HTTP = nil
} }
return nil return nil
} }
@ -658,12 +591,11 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion
{ {
in := in.(*IngressSpec) in := in.(*IngressSpec)
out := out.(*IngressSpec) out := out.(*IngressSpec)
*out = *in
if in.Backend != nil { if in.Backend != nil {
in, out := &in.Backend, &out.Backend in, out := &in.Backend, &out.Backend
*out = new(IngressBackend) *out = new(IngressBackend)
**out = **in **out = **in
} else {
out.Backend = nil
} }
if in.TLS != nil { if in.TLS != nil {
in, out := &in.TLS, &out.TLS in, out := &in.TLS, &out.TLS
@ -673,8 +605,6 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion
return err return err
} }
} }
} else {
out.TLS = nil
} }
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
@ -684,8 +614,6 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -695,6 +623,7 @@ func DeepCopy_v1beta1_IngressStatus(in interface{}, out interface{}, c *conversi
{ {
in := in.(*IngressStatus) in := in.(*IngressStatus)
out := out.(*IngressStatus) out := out.(*IngressStatus)
*out = *in
if err := v1.DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { if err := v1.DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil {
return err return err
} }
@ -706,14 +635,12 @@ func DeepCopy_v1beta1_IngressTLS(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*IngressTLS) in := in.(*IngressTLS)
out := out.(*IngressTLS) out := out.(*IngressTLS)
*out = *in
if in.Hosts != nil { if in.Hosts != nil {
in, out := &in.Hosts, &out.Hosts in, out := &in.Hosts, &out.Hosts
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Hosts = nil
} }
out.SecretName = in.SecretName
return nil return nil
} }
} }
@ -722,7 +649,7 @@ func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversi
{ {
in := in.(*NetworkPolicy) in := in.(*NetworkPolicy)
out := out.(*NetworkPolicy) out := out.(*NetworkPolicy)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -737,6 +664,7 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{},
{ {
in := in.(*NetworkPolicyIngressRule) in := in.(*NetworkPolicyIngressRule)
out := out.(*NetworkPolicyIngressRule) out := out.(*NetworkPolicyIngressRule)
*out = *in
if in.Ports != nil { if in.Ports != nil {
in, out := &in.Ports, &out.Ports in, out := &in.Ports, &out.Ports
*out = make([]NetworkPolicyPort, len(*in)) *out = make([]NetworkPolicyPort, len(*in))
@ -745,8 +673,6 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{},
return err return err
} }
} }
} else {
out.Ports = nil
} }
if in.From != nil { if in.From != nil {
in, out := &in.From, &out.From in, out := &in.From, &out.From
@ -756,8 +682,6 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{},
return err return err
} }
} }
} else {
out.From = nil
} }
return nil return nil
} }
@ -767,8 +691,7 @@ func DeepCopy_v1beta1_NetworkPolicyList(in interface{}, out interface{}, c *conv
{ {
in := in.(*NetworkPolicyList) in := in.(*NetworkPolicyList)
out := out.(*NetworkPolicyList) out := out.(*NetworkPolicyList)
out.TypeMeta = in.TypeMeta *out = *in
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([]NetworkPolicy, len(*in)) *out = make([]NetworkPolicy, len(*in))
@ -777,8 +700,6 @@ func DeepCopy_v1beta1_NetworkPolicyList(in interface{}, out interface{}, c *conv
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -788,14 +709,13 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv
{ {
in := in.(*NetworkPolicyPeer) in := in.(*NetworkPolicyPeer)
out := out.(*NetworkPolicyPeer) out := out.(*NetworkPolicyPeer)
*out = *in
if in.PodSelector != nil { if in.PodSelector != nil {
in, out := &in.PodSelector, &out.PodSelector in, out := &in.PodSelector, &out.PodSelector
*out = new(meta_v1.LabelSelector) *out = new(meta_v1.LabelSelector)
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.PodSelector = nil
} }
if in.NamespaceSelector != nil { if in.NamespaceSelector != nil {
in, out := &in.NamespaceSelector, &out.NamespaceSelector in, out := &in.NamespaceSelector, &out.NamespaceSelector
@ -803,8 +723,6 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.NamespaceSelector = nil
} }
return nil return nil
} }
@ -814,19 +732,16 @@ func DeepCopy_v1beta1_NetworkPolicyPort(in interface{}, out interface{}, c *conv
{ {
in := in.(*NetworkPolicyPort) in := in.(*NetworkPolicyPort)
out := out.(*NetworkPolicyPort) out := out.(*NetworkPolicyPort)
*out = *in
if in.Protocol != nil { if in.Protocol != nil {
in, out := &in.Protocol, &out.Protocol in, out := &in.Protocol, &out.Protocol
*out = new(v1.Protocol) *out = new(v1.Protocol)
**out = **in **out = **in
} else {
out.Protocol = nil
} }
if in.Port != nil { if in.Port != nil {
in, out := &in.Port, &out.Port in, out := &in.Port, &out.Port
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} else {
out.Port = nil
} }
return nil return nil
} }
@ -836,6 +751,7 @@ func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conv
{ {
in := in.(*NetworkPolicySpec) in := in.(*NetworkPolicySpec)
out := out.(*NetworkPolicySpec) out := out.(*NetworkPolicySpec)
*out = *in
if err := meta_v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil {
return err return err
} }
@ -847,8 +763,6 @@ func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conv
return err return err
} }
} }
} else {
out.Ingress = nil
} }
return nil return nil
} }
@ -858,7 +772,7 @@ func DeepCopy_v1beta1_PodSecurityPolicy(in interface{}, out interface{}, c *conv
{ {
in := in.(*PodSecurityPolicy) in := in.(*PodSecurityPolicy)
out := out.(*PodSecurityPolicy) out := out.(*PodSecurityPolicy)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -873,8 +787,7 @@ func DeepCopy_v1beta1_PodSecurityPolicyList(in interface{}, out interface{}, c *
{ {
in := in.(*PodSecurityPolicyList) in := in.(*PodSecurityPolicyList)
out := out.(*PodSecurityPolicyList) out := out.(*PodSecurityPolicyList)
out.TypeMeta = in.TypeMeta *out = *in
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([]PodSecurityPolicy, len(*in)) *out = make([]PodSecurityPolicy, len(*in))
@ -883,8 +796,6 @@ func DeepCopy_v1beta1_PodSecurityPolicyList(in interface{}, out interface{}, c *
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -894,15 +805,13 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *
{ {
in := in.(*PodSecurityPolicySpec) in := in.(*PodSecurityPolicySpec)
out := out.(*PodSecurityPolicySpec) out := out.(*PodSecurityPolicySpec)
out.Privileged = in.Privileged *out = *in
if in.DefaultAddCapabilities != nil { if in.DefaultAddCapabilities != nil {
in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities
*out = make([]v1.Capability, len(*in)) *out = make([]v1.Capability, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.DefaultAddCapabilities = nil
} }
if in.RequiredDropCapabilities != nil { if in.RequiredDropCapabilities != nil {
in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities
@ -910,8 +819,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.RequiredDropCapabilities = nil
} }
if in.AllowedCapabilities != nil { if in.AllowedCapabilities != nil {
in, out := &in.AllowedCapabilities, &out.AllowedCapabilities in, out := &in.AllowedCapabilities, &out.AllowedCapabilities
@ -919,8 +826,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.AllowedCapabilities = nil
} }
if in.Volumes != nil { if in.Volumes != nil {
in, out := &in.Volumes, &out.Volumes in, out := &in.Volumes, &out.Volumes
@ -928,21 +833,14 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Volumes = nil
} }
out.HostNetwork = in.HostNetwork
if in.HostPorts != nil { if in.HostPorts != nil {
in, out := &in.HostPorts, &out.HostPorts in, out := &in.HostPorts, &out.HostPorts
*out = make([]HostPortRange, len(*in)) *out = make([]HostPortRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.HostPorts = nil
} }
out.HostPID = in.HostPID
out.HostIPC = in.HostIPC
if err := DeepCopy_v1beta1_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { if err := DeepCopy_v1beta1_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil {
return err return err
} }
@ -955,7 +853,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *
if err := DeepCopy_v1beta1_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { if err := DeepCopy_v1beta1_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil {
return err return err
} }
out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem
return nil return nil
} }
} }
@ -964,7 +861,7 @@ func DeepCopy_v1beta1_ReplicaSet(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*ReplicaSet) in := in.(*ReplicaSet)
out := out.(*ReplicaSet) out := out.(*ReplicaSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -982,11 +879,8 @@ func DeepCopy_v1beta1_ReplicaSetCondition(in interface{}, out interface{}, c *co
{ {
in := in.(*ReplicaSetCondition) in := in.(*ReplicaSetCondition)
out := out.(*ReplicaSetCondition) out := out.(*ReplicaSetCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -995,8 +889,7 @@ func DeepCopy_v1beta1_ReplicaSetList(in interface{}, out interface{}, c *convers
{ {
in := in.(*ReplicaSetList) in := in.(*ReplicaSetList)
out := out.(*ReplicaSetList) out := out.(*ReplicaSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ReplicaSet, len(*in)) *out = make([]ReplicaSet, len(*in))
@ -1005,8 +898,6 @@ func DeepCopy_v1beta1_ReplicaSetList(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -1016,22 +907,18 @@ func DeepCopy_v1beta1_ReplicaSetSpec(in interface{}, out interface{}, c *convers
{ {
in := in.(*ReplicaSetSpec) in := in.(*ReplicaSetSpec)
out := out.(*ReplicaSetSpec) out := out.(*ReplicaSetSpec)
*out = *in
if in.Replicas != nil { if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas in, out := &in.Replicas, &out.Replicas
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.Replicas = nil
} }
out.MinReadySeconds = in.MinReadySeconds
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(meta_v1.LabelSelector) *out = new(meta_v1.LabelSelector)
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -1044,11 +931,7 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve
{ {
in := in.(*ReplicaSetStatus) in := in.(*ReplicaSetStatus)
out := out.(*ReplicaSetStatus) out := out.(*ReplicaSetStatus)
out.Replicas = in.Replicas *out = *in
out.FullyLabeledReplicas = in.FullyLabeledReplicas
out.ReadyReplicas = in.ReadyReplicas
out.AvailableReplicas = in.AvailableReplicas
out.ObservedGeneration = in.ObservedGeneration
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ReplicaSetCondition, len(*in)) *out = make([]ReplicaSetCondition, len(*in))
@ -1057,8 +940,6 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Conditions = nil
} }
return nil return nil
} }
@ -1068,7 +949,7 @@ func DeepCopy_v1beta1_ReplicationControllerDummy(in interface{}, out interface{}
{ {
in := in.(*ReplicationControllerDummy) in := in.(*ReplicationControllerDummy)
out := out.(*ReplicationControllerDummy) out := out.(*ReplicationControllerDummy)
out.TypeMeta = in.TypeMeta *out = *in
return nil return nil
} }
} }
@ -1077,7 +958,7 @@ func DeepCopy_v1beta1_RollbackConfig(in interface{}, out interface{}, c *convers
{ {
in := in.(*RollbackConfig) in := in.(*RollbackConfig)
out := out.(*RollbackConfig) out := out.(*RollbackConfig)
out.Revision = in.Revision *out = *in
return nil return nil
} }
} }
@ -1086,19 +967,16 @@ func DeepCopy_v1beta1_RollingUpdateDeployment(in interface{}, out interface{}, c
{ {
in := in.(*RollingUpdateDeployment) in := in.(*RollingUpdateDeployment)
out := out.(*RollingUpdateDeployment) out := out.(*RollingUpdateDeployment)
*out = *in
if in.MaxUnavailable != nil { if in.MaxUnavailable != nil {
in, out := &in.MaxUnavailable, &out.MaxUnavailable in, out := &in.MaxUnavailable, &out.MaxUnavailable
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} else {
out.MaxUnavailable = nil
} }
if in.MaxSurge != nil { if in.MaxSurge != nil {
in, out := &in.MaxSurge, &out.MaxSurge in, out := &in.MaxSurge, &out.MaxSurge
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} else {
out.MaxSurge = nil
} }
return nil return nil
} }
@ -1108,15 +986,13 @@ func DeepCopy_v1beta1_RunAsUserStrategyOptions(in interface{}, out interface{},
{ {
in := in.(*RunAsUserStrategyOptions) in := in.(*RunAsUserStrategyOptions)
out := out.(*RunAsUserStrategyOptions) out := out.(*RunAsUserStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -1126,13 +1002,11 @@ func DeepCopy_v1beta1_SELinuxStrategyOptions(in interface{}, out interface{}, c
{ {
in := in.(*SELinuxStrategyOptions) in := in.(*SELinuxStrategyOptions)
out := out.(*SELinuxStrategyOptions) out := out.(*SELinuxStrategyOptions)
out.Rule = in.Rule *out = *in
if in.SELinuxOptions != nil { if in.SELinuxOptions != nil {
in, out := &in.SELinuxOptions, &out.SELinuxOptions in, out := &in.SELinuxOptions, &out.SELinuxOptions
*out = new(v1.SELinuxOptions) *out = new(v1.SELinuxOptions)
**out = **in **out = **in
} else {
out.SELinuxOptions = nil
} }
return nil return nil
} }
@ -1142,11 +1016,10 @@ func DeepCopy_v1beta1_Scale(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
if err := DeepCopy_v1beta1_ScaleStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_v1beta1_ScaleStatus(&in.Status, &out.Status, c); err != nil {
return err return err
} }
@ -1158,7 +1031,7 @@ func DeepCopy_v1beta1_ScaleSpec(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*ScaleSpec) in := in.(*ScaleSpec)
out := out.(*ScaleSpec) out := out.(*ScaleSpec)
out.Replicas = in.Replicas *out = *in
return nil return nil
} }
} }
@ -1167,17 +1040,14 @@ func DeepCopy_v1beta1_ScaleStatus(in interface{}, out interface{}, c *conversion
{ {
in := in.(*ScaleStatus) in := in.(*ScaleStatus)
out := out.(*ScaleStatus) out := out.(*ScaleStatus)
out.Replicas = in.Replicas *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.Selector = nil
} }
out.TargetSelector = in.TargetSelector
return nil return nil
} }
} }
@ -1186,10 +1056,7 @@ func DeepCopy_v1beta1_SubresourceReference(in interface{}, out interface{}, c *c
{ {
in := in.(*SubresourceReference) in := in.(*SubresourceReference)
out := out.(*SubresourceReference) out := out.(*SubresourceReference)
out.Kind = in.Kind *out = *in
out.Name = in.Name
out.APIVersion = in.APIVersion
out.Subresource = in.Subresource
return nil return nil
} }
} }
@ -1198,15 +1065,13 @@ func DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(in interface{}, out inte
{ {
in := in.(*SupplementalGroupsStrategyOptions) in := in.(*SupplementalGroupsStrategyOptions)
out := out.(*SupplementalGroupsStrategyOptions) out := out.(*SupplementalGroupsStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -1216,19 +1081,16 @@ func DeepCopy_v1beta1_ThirdPartyResource(in interface{}, out interface{}, c *con
{ {
in := in.(*ThirdPartyResource) in := in.(*ThirdPartyResource)
out := out.(*ThirdPartyResource) out := out.(*ThirdPartyResource)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Description = in.Description
if in.Versions != nil { if in.Versions != nil {
in, out := &in.Versions, &out.Versions in, out := &in.Versions, &out.Versions
*out = make([]APIVersion, len(*in)) *out = make([]APIVersion, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Versions = nil
} }
return nil return nil
} }
@ -1238,7 +1100,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceData(in interface{}, out interface{}, c
{ {
in := in.(*ThirdPartyResourceData) in := in.(*ThirdPartyResourceData)
out := out.(*ThirdPartyResourceData) out := out.(*ThirdPartyResourceData)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -1246,8 +1108,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceData(in interface{}, out interface{}, c
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Data = nil
} }
return nil return nil
} }
@ -1257,8 +1117,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceDataList(in interface{}, out interface{}
{ {
in := in.(*ThirdPartyResourceDataList) in := in.(*ThirdPartyResourceDataList)
out := out.(*ThirdPartyResourceDataList) out := out.(*ThirdPartyResourceDataList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ThirdPartyResourceData, len(*in)) *out = make([]ThirdPartyResourceData, len(*in))
@ -1267,8 +1126,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceDataList(in interface{}, out interface{}
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -1278,8 +1135,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceList(in interface{}, out interface{}, c
{ {
in := in.(*ThirdPartyResourceList) in := in.(*ThirdPartyResourceList)
out := out.(*ThirdPartyResourceList) out := out.(*ThirdPartyResourceList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ThirdPartyResource, len(*in)) *out = make([]ThirdPartyResource, len(*in))
@ -1288,8 +1144,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }

View File

@ -100,7 +100,7 @@ func DeepCopy_extensions_APIVersion(in interface{}, out interface{}, c *conversi
{ {
in := in.(*APIVersion) in := in.(*APIVersion)
out := out.(*APIVersion) out := out.(*APIVersion)
out.Name = in.Name *out = *in
return nil return nil
} }
} }
@ -109,7 +109,7 @@ func DeepCopy_extensions_CustomMetricCurrentStatus(in interface{}, out interface
{ {
in := in.(*CustomMetricCurrentStatus) in := in.(*CustomMetricCurrentStatus)
out := out.(*CustomMetricCurrentStatus) out := out.(*CustomMetricCurrentStatus)
out.Name = in.Name *out = *in
out.CurrentValue = in.CurrentValue.DeepCopy() out.CurrentValue = in.CurrentValue.DeepCopy()
return nil return nil
} }
@ -119,6 +119,7 @@ func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out inter
{ {
in := in.(*CustomMetricCurrentStatusList) in := in.(*CustomMetricCurrentStatusList)
out := out.(*CustomMetricCurrentStatusList) out := out.(*CustomMetricCurrentStatusList)
*out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CustomMetricCurrentStatus, len(*in)) *out = make([]CustomMetricCurrentStatus, len(*in))
@ -127,8 +128,6 @@ func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out inter
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -138,7 +137,7 @@ func DeepCopy_extensions_CustomMetricTarget(in interface{}, out interface{}, c *
{ {
in := in.(*CustomMetricTarget) in := in.(*CustomMetricTarget)
out := out.(*CustomMetricTarget) out := out.(*CustomMetricTarget)
out.Name = in.Name *out = *in
out.TargetValue = in.TargetValue.DeepCopy() out.TargetValue = in.TargetValue.DeepCopy()
return nil return nil
} }
@ -148,6 +147,7 @@ func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{},
{ {
in := in.(*CustomMetricTargetList) in := in.(*CustomMetricTargetList)
out := out.(*CustomMetricTargetList) out := out.(*CustomMetricTargetList)
*out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CustomMetricTarget, len(*in)) *out = make([]CustomMetricTarget, len(*in))
@ -156,8 +156,6 @@ func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{},
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -167,14 +165,13 @@ func DeepCopy_extensions_DaemonSet(in interface{}, out interface{}, c *conversio
{ {
in := in.(*DaemonSet) in := in.(*DaemonSet)
out := out.(*DaemonSet) out := out.(*DaemonSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -183,8 +180,7 @@ func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conve
{ {
in := in.(*DaemonSetList) in := in.(*DaemonSetList)
out := out.(*DaemonSetList) out := out.(*DaemonSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]DaemonSet, len(*in)) *out = make([]DaemonSet, len(*in))
@ -193,8 +189,6 @@ func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -204,14 +198,13 @@ func DeepCopy_extensions_DaemonSetSpec(in interface{}, out interface{}, c *conve
{ {
in := in.(*DaemonSetSpec) in := in.(*DaemonSetSpec)
out := out.(*DaemonSetSpec) out := out.(*DaemonSetSpec)
*out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -224,11 +217,7 @@ func DeepCopy_extensions_DaemonSetStatus(in interface{}, out interface{}, c *con
{ {
in := in.(*DaemonSetStatus) in := in.(*DaemonSetStatus)
out := out.(*DaemonSetStatus) out := out.(*DaemonSetStatus)
out.CurrentNumberScheduled = in.CurrentNumberScheduled *out = *in
out.NumberMisscheduled = in.NumberMisscheduled
out.DesiredNumberScheduled = in.DesiredNumberScheduled
out.NumberReady = in.NumberReady
out.ObservedGeneration = in.ObservedGeneration
return nil return nil
} }
} }
@ -237,7 +226,7 @@ func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversi
{ {
in := in.(*Deployment) in := in.(*Deployment)
out := out.(*Deployment) out := out.(*Deployment)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -255,12 +244,9 @@ func DeepCopy_extensions_DeploymentCondition(in interface{}, out interface{}, c
{ {
in := in.(*DeploymentCondition) in := in.(*DeploymentCondition)
out := out.(*DeploymentCondition) out := out.(*DeploymentCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -269,8 +255,7 @@ func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conv
{ {
in := in.(*DeploymentList) in := in.(*DeploymentList)
out := out.(*DeploymentList) out := out.(*DeploymentList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Deployment, len(*in)) *out = make([]Deployment, len(*in))
@ -279,8 +264,6 @@ func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conv
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -290,18 +273,14 @@ func DeepCopy_extensions_DeploymentRollback(in interface{}, out interface{}, c *
{ {
in := in.(*DeploymentRollback) in := in.(*DeploymentRollback)
out := out.(*DeploymentRollback) out := out.(*DeploymentRollback)
out.TypeMeta = in.TypeMeta *out = *in
out.Name = in.Name
if in.UpdatedAnnotations != nil { if in.UpdatedAnnotations != nil {
in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.UpdatedAnnotations = nil
} }
out.RollbackTo = in.RollbackTo
return nil return nil
} }
} }
@ -310,15 +289,13 @@ func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conv
{ {
in := in.(*DeploymentSpec) in := in.(*DeploymentSpec)
out := out.(*DeploymentSpec) out := out.(*DeploymentSpec)
out.Replicas = in.Replicas *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -326,28 +303,20 @@ func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conv
if err := DeepCopy_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { if err := DeepCopy_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil {
return err return err
} }
out.MinReadySeconds = in.MinReadySeconds
if in.RevisionHistoryLimit != nil { if in.RevisionHistoryLimit != nil {
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.RevisionHistoryLimit = nil
} }
out.Paused = in.Paused
if in.RollbackTo != nil { if in.RollbackTo != nil {
in, out := &in.RollbackTo, &out.RollbackTo in, out := &in.RollbackTo, &out.RollbackTo
*out = new(RollbackConfig) *out = new(RollbackConfig)
**out = **in **out = **in
} else {
out.RollbackTo = nil
} }
if in.ProgressDeadlineSeconds != nil { if in.ProgressDeadlineSeconds != nil {
in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} else {
out.ProgressDeadlineSeconds = nil
} }
return nil return nil
} }
@ -357,12 +326,7 @@ func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *co
{ {
in := in.(*DeploymentStatus) in := in.(*DeploymentStatus)
out := out.(*DeploymentStatus) out := out.(*DeploymentStatus)
out.ObservedGeneration = in.ObservedGeneration *out = *in
out.Replicas = in.Replicas
out.UpdatedReplicas = in.UpdatedReplicas
out.ReadyReplicas = in.ReadyReplicas
out.AvailableReplicas = in.AvailableReplicas
out.UnavailableReplicas = in.UnavailableReplicas
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]DeploymentCondition, len(*in)) *out = make([]DeploymentCondition, len(*in))
@ -371,8 +335,6 @@ func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *co
return err return err
} }
} }
} else {
out.Conditions = nil
} }
return nil return nil
} }
@ -382,13 +344,11 @@ func DeepCopy_extensions_DeploymentStrategy(in interface{}, out interface{}, c *
{ {
in := in.(*DeploymentStrategy) in := in.(*DeploymentStrategy)
out := out.(*DeploymentStrategy) out := out.(*DeploymentStrategy)
out.Type = in.Type *out = *in
if in.RollingUpdate != nil { if in.RollingUpdate != nil {
in, out := &in.RollingUpdate, &out.RollingUpdate in, out := &in.RollingUpdate, &out.RollingUpdate
*out = new(RollingUpdateDeployment) *out = new(RollingUpdateDeployment)
**out = **in **out = **in
} else {
out.RollingUpdate = nil
} }
return nil return nil
} }
@ -398,15 +358,13 @@ func DeepCopy_extensions_FSGroupStrategyOptions(in interface{}, out interface{},
{ {
in := in.(*FSGroupStrategyOptions) in := in.(*FSGroupStrategyOptions)
out := out.(*FSGroupStrategyOptions) out := out.(*FSGroupStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -416,8 +374,7 @@ func DeepCopy_extensions_HTTPIngressPath(in interface{}, out interface{}, c *con
{ {
in := in.(*HTTPIngressPath) in := in.(*HTTPIngressPath)
out := out.(*HTTPIngressPath) out := out.(*HTTPIngressPath)
out.Path = in.Path *out = *in
out.Backend = in.Backend
return nil return nil
} }
} }
@ -426,14 +383,13 @@ func DeepCopy_extensions_HTTPIngressRuleValue(in interface{}, out interface{}, c
{ {
in := in.(*HTTPIngressRuleValue) in := in.(*HTTPIngressRuleValue)
out := out.(*HTTPIngressRuleValue) out := out.(*HTTPIngressRuleValue)
*out = *in
if in.Paths != nil { if in.Paths != nil {
in, out := &in.Paths, &out.Paths in, out := &in.Paths, &out.Paths
*out = make([]HTTPIngressPath, len(*in)) *out = make([]HTTPIngressPath, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Paths = nil
} }
return nil return nil
} }
@ -443,8 +399,7 @@ func DeepCopy_extensions_HostPortRange(in interface{}, out interface{}, c *conve
{ {
in := in.(*HostPortRange) in := in.(*HostPortRange)
out := out.(*HostPortRange) out := out.(*HostPortRange)
out.Min = in.Min *out = *in
out.Max = in.Max
return nil return nil
} }
} }
@ -453,8 +408,7 @@ func DeepCopy_extensions_IDRange(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*IDRange) in := in.(*IDRange)
out := out.(*IDRange) out := out.(*IDRange)
out.Min = in.Min *out = *in
out.Max = in.Max
return nil return nil
} }
} }
@ -463,7 +417,7 @@ func DeepCopy_extensions_Ingress(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*Ingress) in := in.(*Ingress)
out := out.(*Ingress) out := out.(*Ingress)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -481,8 +435,7 @@ func DeepCopy_extensions_IngressBackend(in interface{}, out interface{}, c *conv
{ {
in := in.(*IngressBackend) in := in.(*IngressBackend)
out := out.(*IngressBackend) out := out.(*IngressBackend)
out.ServiceName = in.ServiceName *out = *in
out.ServicePort = in.ServicePort
return nil return nil
} }
} }
@ -491,8 +444,7 @@ func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *convers
{ {
in := in.(*IngressList) in := in.(*IngressList)
out := out.(*IngressList) out := out.(*IngressList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Ingress, len(*in)) *out = make([]Ingress, len(*in))
@ -501,8 +453,6 @@ func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -512,7 +462,7 @@ func DeepCopy_extensions_IngressRule(in interface{}, out interface{}, c *convers
{ {
in := in.(*IngressRule) in := in.(*IngressRule)
out := out.(*IngressRule) out := out.(*IngressRule)
out.Host = in.Host *out = *in
if err := DeepCopy_extensions_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { if err := DeepCopy_extensions_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil {
return err return err
} }
@ -524,14 +474,13 @@ func DeepCopy_extensions_IngressRuleValue(in interface{}, out interface{}, c *co
{ {
in := in.(*IngressRuleValue) in := in.(*IngressRuleValue)
out := out.(*IngressRuleValue) out := out.(*IngressRuleValue)
*out = *in
if in.HTTP != nil { if in.HTTP != nil {
in, out := &in.HTTP, &out.HTTP in, out := &in.HTTP, &out.HTTP
*out = new(HTTPIngressRuleValue) *out = new(HTTPIngressRuleValue)
if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil { if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil {
return err return err
} }
} else {
out.HTTP = nil
} }
return nil return nil
} }
@ -541,12 +490,11 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers
{ {
in := in.(*IngressSpec) in := in.(*IngressSpec)
out := out.(*IngressSpec) out := out.(*IngressSpec)
*out = *in
if in.Backend != nil { if in.Backend != nil {
in, out := &in.Backend, &out.Backend in, out := &in.Backend, &out.Backend
*out = new(IngressBackend) *out = new(IngressBackend)
**out = **in **out = **in
} else {
out.Backend = nil
} }
if in.TLS != nil { if in.TLS != nil {
in, out := &in.TLS, &out.TLS in, out := &in.TLS, &out.TLS
@ -556,8 +504,6 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.TLS = nil
} }
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
@ -567,8 +513,6 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -578,6 +522,7 @@ func DeepCopy_extensions_IngressStatus(in interface{}, out interface{}, c *conve
{ {
in := in.(*IngressStatus) in := in.(*IngressStatus)
out := out.(*IngressStatus) out := out.(*IngressStatus)
*out = *in
if err := api.DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { if err := api.DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil {
return err return err
} }
@ -589,14 +534,12 @@ func DeepCopy_extensions_IngressTLS(in interface{}, out interface{}, c *conversi
{ {
in := in.(*IngressTLS) in := in.(*IngressTLS)
out := out.(*IngressTLS) out := out.(*IngressTLS)
*out = *in
if in.Hosts != nil { if in.Hosts != nil {
in, out := &in.Hosts, &out.Hosts in, out := &in.Hosts, &out.Hosts
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Hosts = nil
} }
out.SecretName = in.SecretName
return nil return nil
} }
} }
@ -605,7 +548,7 @@ func DeepCopy_extensions_NetworkPolicy(in interface{}, out interface{}, c *conve
{ {
in := in.(*NetworkPolicy) in := in.(*NetworkPolicy)
out := out.(*NetworkPolicy) out := out.(*NetworkPolicy)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -620,6 +563,7 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{
{ {
in := in.(*NetworkPolicyIngressRule) in := in.(*NetworkPolicyIngressRule)
out := out.(*NetworkPolicyIngressRule) out := out.(*NetworkPolicyIngressRule)
*out = *in
if in.Ports != nil { if in.Ports != nil {
in, out := &in.Ports, &out.Ports in, out := &in.Ports, &out.Ports
*out = make([]NetworkPolicyPort, len(*in)) *out = make([]NetworkPolicyPort, len(*in))
@ -628,8 +572,6 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{
return err return err
} }
} }
} else {
out.Ports = nil
} }
if in.From != nil { if in.From != nil {
in, out := &in.From, &out.From in, out := &in.From, &out.From
@ -639,8 +581,6 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{
return err return err
} }
} }
} else {
out.From = nil
} }
return nil return nil
} }
@ -650,8 +590,7 @@ func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *c
{ {
in := in.(*NetworkPolicyList) in := in.(*NetworkPolicyList)
out := out.(*NetworkPolicyList) out := out.(*NetworkPolicyList)
out.TypeMeta = in.TypeMeta *out = *in
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([]NetworkPolicy, len(*in)) *out = make([]NetworkPolicy, len(*in))
@ -660,8 +599,6 @@ func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -671,14 +608,13 @@ func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *c
{ {
in := in.(*NetworkPolicyPeer) in := in.(*NetworkPolicyPeer)
out := out.(*NetworkPolicyPeer) out := out.(*NetworkPolicyPeer)
*out = *in
if in.PodSelector != nil { if in.PodSelector != nil {
in, out := &in.PodSelector, &out.PodSelector in, out := &in.PodSelector, &out.PodSelector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.PodSelector = nil
} }
if in.NamespaceSelector != nil { if in.NamespaceSelector != nil {
in, out := &in.NamespaceSelector, &out.NamespaceSelector in, out := &in.NamespaceSelector, &out.NamespaceSelector
@ -686,8 +622,6 @@ func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *c
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.NamespaceSelector = nil
} }
return nil return nil
} }
@ -697,19 +631,16 @@ func DeepCopy_extensions_NetworkPolicyPort(in interface{}, out interface{}, c *c
{ {
in := in.(*NetworkPolicyPort) in := in.(*NetworkPolicyPort)
out := out.(*NetworkPolicyPort) out := out.(*NetworkPolicyPort)
*out = *in
if in.Protocol != nil { if in.Protocol != nil {
in, out := &in.Protocol, &out.Protocol in, out := &in.Protocol, &out.Protocol
*out = new(api.Protocol) *out = new(api.Protocol)
**out = **in **out = **in
} else {
out.Protocol = nil
} }
if in.Port != nil { if in.Port != nil {
in, out := &in.Port, &out.Port in, out := &in.Port, &out.Port
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} else {
out.Port = nil
} }
return nil return nil
} }
@ -719,6 +650,7 @@ func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *c
{ {
in := in.(*NetworkPolicySpec) in := in.(*NetworkPolicySpec)
out := out.(*NetworkPolicySpec) out := out.(*NetworkPolicySpec)
*out = *in
if err := v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil {
return err return err
} }
@ -730,8 +662,6 @@ func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *c
return err return err
} }
} }
} else {
out.Ingress = nil
} }
return nil return nil
} }
@ -741,7 +671,7 @@ func DeepCopy_extensions_PodSecurityPolicy(in interface{}, out interface{}, c *c
{ {
in := in.(*PodSecurityPolicy) in := in.(*PodSecurityPolicy)
out := out.(*PodSecurityPolicy) out := out.(*PodSecurityPolicy)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -756,8 +686,7 @@ func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{},
{ {
in := in.(*PodSecurityPolicyList) in := in.(*PodSecurityPolicyList)
out := out.(*PodSecurityPolicyList) out := out.(*PodSecurityPolicyList)
out.TypeMeta = in.TypeMeta *out = *in
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([]PodSecurityPolicy, len(*in)) *out = make([]PodSecurityPolicy, len(*in))
@ -766,8 +695,6 @@ func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{},
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -777,15 +704,13 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{},
{ {
in := in.(*PodSecurityPolicySpec) in := in.(*PodSecurityPolicySpec)
out := out.(*PodSecurityPolicySpec) out := out.(*PodSecurityPolicySpec)
out.Privileged = in.Privileged *out = *in
if in.DefaultAddCapabilities != nil { if in.DefaultAddCapabilities != nil {
in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities
*out = make([]api.Capability, len(*in)) *out = make([]api.Capability, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.DefaultAddCapabilities = nil
} }
if in.RequiredDropCapabilities != nil { if in.RequiredDropCapabilities != nil {
in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities
@ -793,8 +718,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{},
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.RequiredDropCapabilities = nil
} }
if in.AllowedCapabilities != nil { if in.AllowedCapabilities != nil {
in, out := &in.AllowedCapabilities, &out.AllowedCapabilities in, out := &in.AllowedCapabilities, &out.AllowedCapabilities
@ -802,8 +725,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{},
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.AllowedCapabilities = nil
} }
if in.Volumes != nil { if in.Volumes != nil {
in, out := &in.Volumes, &out.Volumes in, out := &in.Volumes, &out.Volumes
@ -811,21 +732,14 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{},
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Volumes = nil
} }
out.HostNetwork = in.HostNetwork
if in.HostPorts != nil { if in.HostPorts != nil {
in, out := &in.HostPorts, &out.HostPorts in, out := &in.HostPorts, &out.HostPorts
*out = make([]HostPortRange, len(*in)) *out = make([]HostPortRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.HostPorts = nil
} }
out.HostPID = in.HostPID
out.HostIPC = in.HostIPC
if err := DeepCopy_extensions_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { if err := DeepCopy_extensions_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil {
return err return err
} }
@ -838,7 +752,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{},
if err := DeepCopy_extensions_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { if err := DeepCopy_extensions_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil {
return err return err
} }
out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem
return nil return nil
} }
} }
@ -847,7 +760,7 @@ func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversi
{ {
in := in.(*ReplicaSet) in := in.(*ReplicaSet)
out := out.(*ReplicaSet) out := out.(*ReplicaSet)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -865,11 +778,8 @@ func DeepCopy_extensions_ReplicaSetCondition(in interface{}, out interface{}, c
{ {
in := in.(*ReplicaSetCondition) in := in.(*ReplicaSetCondition)
out := out.(*ReplicaSetCondition) out := out.(*ReplicaSetCondition)
out.Type = in.Type *out = *in
out.Status = in.Status
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
out.Reason = in.Reason
out.Message = in.Message
return nil return nil
} }
} }
@ -878,8 +788,7 @@ func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conv
{ {
in := in.(*ReplicaSetList) in := in.(*ReplicaSetList)
out := out.(*ReplicaSetList) out := out.(*ReplicaSetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ReplicaSet, len(*in)) *out = make([]ReplicaSet, len(*in))
@ -888,8 +797,6 @@ func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conv
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -899,16 +806,13 @@ func DeepCopy_extensions_ReplicaSetSpec(in interface{}, out interface{}, c *conv
{ {
in := in.(*ReplicaSetSpec) in := in.(*ReplicaSetSpec)
out := out.(*ReplicaSetSpec) out := out.(*ReplicaSetSpec)
out.Replicas = in.Replicas *out = *in
out.MinReadySeconds = in.MinReadySeconds
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@ -921,11 +825,7 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co
{ {
in := in.(*ReplicaSetStatus) in := in.(*ReplicaSetStatus)
out := out.(*ReplicaSetStatus) out := out.(*ReplicaSetStatus)
out.Replicas = in.Replicas *out = *in
out.FullyLabeledReplicas = in.FullyLabeledReplicas
out.ReadyReplicas = in.ReadyReplicas
out.AvailableReplicas = in.AvailableReplicas
out.ObservedGeneration = in.ObservedGeneration
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ReplicaSetCondition, len(*in)) *out = make([]ReplicaSetCondition, len(*in))
@ -934,8 +834,6 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co
return err return err
} }
} }
} else {
out.Conditions = nil
} }
return nil return nil
} }
@ -945,7 +843,7 @@ func DeepCopy_extensions_ReplicationControllerDummy(in interface{}, out interfac
{ {
in := in.(*ReplicationControllerDummy) in := in.(*ReplicationControllerDummy)
out := out.(*ReplicationControllerDummy) out := out.(*ReplicationControllerDummy)
out.TypeMeta = in.TypeMeta *out = *in
return nil return nil
} }
} }
@ -954,7 +852,7 @@ func DeepCopy_extensions_RollbackConfig(in interface{}, out interface{}, c *conv
{ {
in := in.(*RollbackConfig) in := in.(*RollbackConfig)
out := out.(*RollbackConfig) out := out.(*RollbackConfig)
out.Revision = in.Revision *out = *in
return nil return nil
} }
} }
@ -963,8 +861,7 @@ func DeepCopy_extensions_RollingUpdateDeployment(in interface{}, out interface{}
{ {
in := in.(*RollingUpdateDeployment) in := in.(*RollingUpdateDeployment)
out := out.(*RollingUpdateDeployment) out := out.(*RollingUpdateDeployment)
out.MaxUnavailable = in.MaxUnavailable *out = *in
out.MaxSurge = in.MaxSurge
return nil return nil
} }
} }
@ -973,15 +870,13 @@ func DeepCopy_extensions_RunAsUserStrategyOptions(in interface{}, out interface{
{ {
in := in.(*RunAsUserStrategyOptions) in := in.(*RunAsUserStrategyOptions)
out := out.(*RunAsUserStrategyOptions) out := out.(*RunAsUserStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -991,13 +886,11 @@ func DeepCopy_extensions_SELinuxStrategyOptions(in interface{}, out interface{},
{ {
in := in.(*SELinuxStrategyOptions) in := in.(*SELinuxStrategyOptions)
out := out.(*SELinuxStrategyOptions) out := out.(*SELinuxStrategyOptions)
out.Rule = in.Rule *out = *in
if in.SELinuxOptions != nil { if in.SELinuxOptions != nil {
in, out := &in.SELinuxOptions, &out.SELinuxOptions in, out := &in.SELinuxOptions, &out.SELinuxOptions
*out = new(api.SELinuxOptions) *out = new(api.SELinuxOptions)
**out = **in **out = **in
} else {
out.SELinuxOptions = nil
} }
return nil return nil
} }
@ -1007,11 +900,10 @@ func DeepCopy_extensions_Scale(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Spec = in.Spec
if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil {
return err return err
} }
@ -1023,7 +915,7 @@ func DeepCopy_extensions_ScaleSpec(in interface{}, out interface{}, c *conversio
{ {
in := in.(*ScaleSpec) in := in.(*ScaleSpec)
out := out.(*ScaleSpec) out := out.(*ScaleSpec)
out.Replicas = in.Replicas *out = *in
return nil return nil
} }
} }
@ -1032,15 +924,13 @@ func DeepCopy_extensions_ScaleStatus(in interface{}, out interface{}, c *convers
{ {
in := in.(*ScaleStatus) in := in.(*ScaleStatus)
out := out.(*ScaleStatus) out := out.(*ScaleStatus)
out.Replicas = in.Replicas *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
return nil return nil
} }
@ -1050,15 +940,13 @@ func DeepCopy_extensions_SupplementalGroupsStrategyOptions(in interface{}, out i
{ {
in := in.(*SupplementalGroupsStrategyOptions) in := in.(*SupplementalGroupsStrategyOptions)
out := out.(*SupplementalGroupsStrategyOptions) out := out.(*SupplementalGroupsStrategyOptions)
out.Rule = in.Rule *out = *in
if in.Ranges != nil { if in.Ranges != nil {
in, out := &in.Ranges, &out.Ranges in, out := &in.Ranges, &out.Ranges
*out = make([]IDRange, len(*in)) *out = make([]IDRange, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Ranges = nil
} }
return nil return nil
} }
@ -1068,19 +956,16 @@ func DeepCopy_extensions_ThirdPartyResource(in interface{}, out interface{}, c *
{ {
in := in.(*ThirdPartyResource) in := in.(*ThirdPartyResource)
out := out.(*ThirdPartyResource) out := out.(*ThirdPartyResource)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Description = in.Description
if in.Versions != nil { if in.Versions != nil {
in, out := &in.Versions, &out.Versions in, out := &in.Versions, &out.Versions
*out = make([]APIVersion, len(*in)) *out = make([]APIVersion, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Versions = nil
} }
return nil return nil
} }
@ -1090,7 +975,7 @@ func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{},
{ {
in := in.(*ThirdPartyResourceData) in := in.(*ThirdPartyResourceData)
out := out.(*ThirdPartyResourceData) out := out.(*ThirdPartyResourceData)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -1098,8 +983,6 @@ func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{},
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Data = nil
} }
return nil return nil
} }
@ -1109,8 +992,7 @@ func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interfac
{ {
in := in.(*ThirdPartyResourceDataList) in := in.(*ThirdPartyResourceDataList)
out := out.(*ThirdPartyResourceDataList) out := out.(*ThirdPartyResourceDataList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ThirdPartyResourceData, len(*in)) *out = make([]ThirdPartyResourceData, len(*in))
@ -1119,8 +1001,6 @@ func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interfac
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -1130,8 +1010,7 @@ func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{},
{ {
in := in.(*ThirdPartyResourceList) in := in.(*ThirdPartyResourceList)
out := out.(*ThirdPartyResourceList) out := out.(*ThirdPartyResourceList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ThirdPartyResource, len(*in)) *out = make([]ThirdPartyResource, len(*in))
@ -1140,8 +1019,6 @@ func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{},
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }

View File

@ -18,6 +18,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -46,14 +46,13 @@ func DeepCopy_v1alpha1_ImageReview(in interface{}, out interface{}, c *conversio
{ {
in := in.(*ImageReview) in := in.(*ImageReview)
out := out.(*ImageReview) out := out.(*ImageReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -62,7 +61,7 @@ func DeepCopy_v1alpha1_ImageReviewContainerSpec(in interface{}, out interface{},
{ {
in := in.(*ImageReviewContainerSpec) in := in.(*ImageReviewContainerSpec)
out := out.(*ImageReviewContainerSpec) out := out.(*ImageReviewContainerSpec)
out.Image = in.Image *out = *in
return nil return nil
} }
} }
@ -71,14 +70,13 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve
{ {
in := in.(*ImageReviewSpec) in := in.(*ImageReviewSpec)
out := out.(*ImageReviewSpec) out := out.(*ImageReviewSpec)
*out = *in
if in.Containers != nil { if in.Containers != nil {
in, out := &in.Containers, &out.Containers in, out := &in.Containers, &out.Containers
*out = make([]ImageReviewContainerSpec, len(*in)) *out = make([]ImageReviewContainerSpec, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Containers = nil
} }
if in.Annotations != nil { if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations in, out := &in.Annotations, &out.Annotations
@ -86,10 +84,7 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.Annotations = nil
} }
out.Namespace = in.Namespace
return nil return nil
} }
} }
@ -98,8 +93,7 @@ func DeepCopy_v1alpha1_ImageReviewStatus(in interface{}, out interface{}, c *con
{ {
in := in.(*ImageReviewStatus) in := in.(*ImageReviewStatus)
out := out.(*ImageReviewStatus) out := out.(*ImageReviewStatus)
out.Allowed = in.Allowed *out = *in
out.Reason = in.Reason
return nil return nil
} }
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1alpha1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -46,14 +46,13 @@ func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conver
{ {
in := in.(*ImageReview) in := in.(*ImageReview)
out := out.(*ImageReview) out := out.(*ImageReview)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
} }
out.Status = in.Status
return nil return nil
} }
} }
@ -62,7 +61,7 @@ func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface
{ {
in := in.(*ImageReviewContainerSpec) in := in.(*ImageReviewContainerSpec)
out := out.(*ImageReviewContainerSpec) out := out.(*ImageReviewContainerSpec)
out.Image = in.Image *out = *in
return nil return nil
} }
} }
@ -71,14 +70,13 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co
{ {
in := in.(*ImageReviewSpec) in := in.(*ImageReviewSpec)
out := out.(*ImageReviewSpec) out := out.(*ImageReviewSpec)
*out = *in
if in.Containers != nil { if in.Containers != nil {
in, out := &in.Containers, &out.Containers in, out := &in.Containers, &out.Containers
*out = make([]ImageReviewContainerSpec, len(*in)) *out = make([]ImageReviewContainerSpec, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Containers = nil
} }
if in.Annotations != nil { if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations in, out := &in.Annotations, &out.Annotations
@ -86,10 +84,7 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.Annotations = nil
} }
out.Namespace = in.Namespace
return nil return nil
} }
} }
@ -98,8 +93,7 @@ func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c *
{ {
in := in.(*ImageReviewStatus) in := in.(*ImageReviewStatus)
out := out.(*ImageReviewStatus) out := out.(*ImageReviewStatus)
out.Allowed = in.Allowed *out = *in
out.Reason = in.Reason
return nil return nil
} }
} }

View File

@ -24,12 +24,14 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"well_known_labels.go", "well_known_labels.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//pkg/conversion:go_default_library", "//pkg/conversion:go_default_library",
"//pkg/genericapiserver/openapi/common:go_default_library", "//pkg/genericapiserver/openapi/common:go_default_library",
"//pkg/labels:go_default_library", "//pkg/labels:go_default_library",
"//pkg/runtime:go_default_library",
"//pkg/runtime/schema:go_default_library", "//pkg/runtime/schema:go_default_library",
"//pkg/selection:go_default_library", "//pkg/selection:go_default_library",
"//pkg/types:go_default_library", "//pkg/types:go_default_library",

View File

@ -22,33 +22,60 @@ package v1
import ( import (
conversion "k8s.io/kubernetes/pkg/conversion" conversion "k8s.io/kubernetes/pkg/conversion"
time "time" reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_v1_APIGroup, InType: reflect.TypeOf(&APIGroup{})},
{Fn: DeepCopy_v1_APIGroupList, InType: reflect.TypeOf(&APIGroupList{})},
{Fn: DeepCopy_v1_APIResource, InType: reflect.TypeOf(&APIResource{})},
{Fn: DeepCopy_v1_APIResourceList, InType: reflect.TypeOf(&APIResourceList{})},
{Fn: DeepCopy_v1_APIVersions, InType: reflect.TypeOf(&APIVersions{})},
{Fn: DeepCopy_v1_Duration, InType: reflect.TypeOf(&Duration{})},
{Fn: DeepCopy_v1_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})},
{Fn: DeepCopy_v1_GetOptions, InType: reflect.TypeOf(&GetOptions{})},
{Fn: DeepCopy_v1_GroupKind, InType: reflect.TypeOf(&GroupKind{})},
{Fn: DeepCopy_v1_GroupResource, InType: reflect.TypeOf(&GroupResource{})},
{Fn: DeepCopy_v1_GroupVersion, InType: reflect.TypeOf(&GroupVersion{})},
{Fn: DeepCopy_v1_GroupVersionForDiscovery, InType: reflect.TypeOf(&GroupVersionForDiscovery{})},
{Fn: DeepCopy_v1_GroupVersionKind, InType: reflect.TypeOf(&GroupVersionKind{})},
{Fn: DeepCopy_v1_GroupVersionResource, InType: reflect.TypeOf(&GroupVersionResource{})},
{Fn: DeepCopy_v1_LabelSelector, InType: reflect.TypeOf(&LabelSelector{})},
{Fn: DeepCopy_v1_LabelSelectorRequirement, InType: reflect.TypeOf(&LabelSelectorRequirement{})},
{Fn: DeepCopy_v1_ListMeta, InType: reflect.TypeOf(&ListMeta{})},
{Fn: DeepCopy_v1_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})},
{Fn: DeepCopy_v1_Patch, InType: reflect.TypeOf(&Patch{})},
{Fn: DeepCopy_v1_RootPaths, InType: reflect.TypeOf(&RootPaths{})},
{Fn: DeepCopy_v1_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})},
{Fn: DeepCopy_v1_Status, InType: reflect.TypeOf(&Status{})},
{Fn: DeepCopy_v1_StatusCause, InType: reflect.TypeOf(&StatusCause{})},
{Fn: DeepCopy_v1_StatusDetails, InType: reflect.TypeOf(&StatusDetails{})},
{Fn: DeepCopy_v1_Time, InType: reflect.TypeOf(&Time{})},
{Fn: DeepCopy_v1_Timestamp, InType: reflect.TypeOf(&Timestamp{})},
{Fn: DeepCopy_v1_TypeMeta, InType: reflect.TypeOf(&TypeMeta{})},
}
}
func DeepCopy_v1_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error { func DeepCopy_v1_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error {
{ {
in := in.(*APIGroup) in := in.(*APIGroup)
out := out.(*APIGroup) out := out.(*APIGroup)
out.TypeMeta = in.TypeMeta *out = *in
out.Name = in.Name
if in.Versions != nil { if in.Versions != nil {
in, out := &in.Versions, &out.Versions in, out := &in.Versions, &out.Versions
*out = make([]GroupVersionForDiscovery, len(*in)) *out = make([]GroupVersionForDiscovery, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Versions = nil
} }
out.PreferredVersion = in.PreferredVersion
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
*out = make([]ServerAddressByClientCIDR, len(*in)) *out = make([]ServerAddressByClientCIDR, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.ServerAddressByClientCIDRs = nil
} }
return nil return nil
} }
@ -58,7 +85,7 @@ func DeepCopy_v1_APIGroupList(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*APIGroupList) in := in.(*APIGroupList)
out := out.(*APIGroupList) out := out.(*APIGroupList)
out.TypeMeta = in.TypeMeta *out = *in
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]APIGroup, len(*in)) *out = make([]APIGroup, len(*in))
@ -67,8 +94,6 @@ func DeepCopy_v1_APIGroupList(in interface{}, out interface{}, c *conversion.Clo
return err return err
} }
} }
} else {
out.Groups = nil
} }
return nil return nil
} }
@ -78,15 +103,11 @@ func DeepCopy_v1_APIResource(in interface{}, out interface{}, c *conversion.Clon
{ {
in := in.(*APIResource) in := in.(*APIResource)
out := out.(*APIResource) out := out.(*APIResource)
out.Name = in.Name *out = *in
out.Namespaced = in.Namespaced
out.Kind = in.Kind
if in.Verbs != nil { if in.Verbs != nil {
in, out := &in.Verbs, &out.Verbs in, out := &in.Verbs, &out.Verbs
*out = make(Verbs, len(*in)) *out = make(Verbs, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Verbs = nil
} }
return nil return nil
} }
@ -96,8 +117,7 @@ func DeepCopy_v1_APIResourceList(in interface{}, out interface{}, c *conversion.
{ {
in := in.(*APIResourceList) in := in.(*APIResourceList)
out := out.(*APIResourceList) out := out.(*APIResourceList)
out.TypeMeta = in.TypeMeta *out = *in
out.GroupVersion = in.GroupVersion
if in.APIResources != nil { if in.APIResources != nil {
in, out := &in.APIResources, &out.APIResources in, out := &in.APIResources, &out.APIResources
*out = make([]APIResource, len(*in)) *out = make([]APIResource, len(*in))
@ -106,8 +126,6 @@ func DeepCopy_v1_APIResourceList(in interface{}, out interface{}, c *conversion.
return err return err
} }
} }
} else {
out.APIResources = nil
} }
return nil return nil
} }
@ -117,13 +135,11 @@ func DeepCopy_v1_APIVersions(in interface{}, out interface{}, c *conversion.Clon
{ {
in := in.(*APIVersions) in := in.(*APIVersions)
out := out.(*APIVersions) out := out.(*APIVersions)
out.TypeMeta = in.TypeMeta *out = *in
if in.Versions != nil { if in.Versions != nil {
in, out := &in.Versions, &out.Versions in, out := &in.Versions, &out.Versions
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Versions = nil
} }
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
@ -131,8 +147,6 @@ func DeepCopy_v1_APIVersions(in interface{}, out interface{}, c *conversion.Clon
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.ServerAddressByClientCIDRs = nil
} }
return nil return nil
} }
@ -142,7 +156,7 @@ func DeepCopy_v1_Duration(in interface{}, out interface{}, c *conversion.Cloner)
{ {
in := in.(*Duration) in := in.(*Duration)
out := out.(*Duration) out := out.(*Duration)
out.Duration = in.Duration *out = *in
return nil return nil
} }
} }
@ -151,9 +165,7 @@ func DeepCopy_v1_ExportOptions(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*ExportOptions) in := in.(*ExportOptions)
out := out.(*ExportOptions) out := out.(*ExportOptions)
out.TypeMeta = in.TypeMeta *out = *in
out.Export = in.Export
out.Exact = in.Exact
return nil return nil
} }
} }
@ -162,8 +174,7 @@ func DeepCopy_v1_GetOptions(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*GetOptions) in := in.(*GetOptions)
out := out.(*GetOptions) out := out.(*GetOptions)
out.TypeMeta = in.TypeMeta *out = *in
out.ResourceVersion = in.ResourceVersion
return nil return nil
} }
} }
@ -172,8 +183,7 @@ func DeepCopy_v1_GroupKind(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*GroupKind) in := in.(*GroupKind)
out := out.(*GroupKind) out := out.(*GroupKind)
out.Group = in.Group *out = *in
out.Kind = in.Kind
return nil return nil
} }
} }
@ -182,8 +192,7 @@ func DeepCopy_v1_GroupResource(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*GroupResource) in := in.(*GroupResource)
out := out.(*GroupResource) out := out.(*GroupResource)
out.Group = in.Group *out = *in
out.Resource = in.Resource
return nil return nil
} }
} }
@ -192,8 +201,7 @@ func DeepCopy_v1_GroupVersion(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*GroupVersion) in := in.(*GroupVersion)
out := out.(*GroupVersion) out := out.(*GroupVersion)
out.Group = in.Group *out = *in
out.Version = in.Version
return nil return nil
} }
} }
@ -202,8 +210,7 @@ func DeepCopy_v1_GroupVersionForDiscovery(in interface{}, out interface{}, c *co
{ {
in := in.(*GroupVersionForDiscovery) in := in.(*GroupVersionForDiscovery)
out := out.(*GroupVersionForDiscovery) out := out.(*GroupVersionForDiscovery)
out.GroupVersion = in.GroupVersion *out = *in
out.Version = in.Version
return nil return nil
} }
} }
@ -212,9 +219,7 @@ func DeepCopy_v1_GroupVersionKind(in interface{}, out interface{}, c *conversion
{ {
in := in.(*GroupVersionKind) in := in.(*GroupVersionKind)
out := out.(*GroupVersionKind) out := out.(*GroupVersionKind)
out.Group = in.Group *out = *in
out.Version = in.Version
out.Kind = in.Kind
return nil return nil
} }
} }
@ -223,9 +228,7 @@ func DeepCopy_v1_GroupVersionResource(in interface{}, out interface{}, c *conver
{ {
in := in.(*GroupVersionResource) in := in.(*GroupVersionResource)
out := out.(*GroupVersionResource) out := out.(*GroupVersionResource)
out.Group = in.Group *out = *in
out.Version = in.Version
out.Resource = in.Resource
return nil return nil
} }
} }
@ -234,14 +237,13 @@ func DeepCopy_v1_LabelSelector(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*LabelSelector) in := in.(*LabelSelector)
out := out.(*LabelSelector) out := out.(*LabelSelector)
*out = *in
if in.MatchLabels != nil { if in.MatchLabels != nil {
in, out := &in.MatchLabels, &out.MatchLabels in, out := &in.MatchLabels, &out.MatchLabels
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.MatchLabels = nil
} }
if in.MatchExpressions != nil { if in.MatchExpressions != nil {
in, out := &in.MatchExpressions, &out.MatchExpressions in, out := &in.MatchExpressions, &out.MatchExpressions
@ -251,8 +253,6 @@ func DeepCopy_v1_LabelSelector(in interface{}, out interface{}, c *conversion.Cl
return err return err
} }
} }
} else {
out.MatchExpressions = nil
} }
return nil return nil
} }
@ -262,14 +262,11 @@ func DeepCopy_v1_LabelSelectorRequirement(in interface{}, out interface{}, c *co
{ {
in := in.(*LabelSelectorRequirement) in := in.(*LabelSelectorRequirement)
out := out.(*LabelSelectorRequirement) out := out.(*LabelSelectorRequirement)
out.Key = in.Key *out = *in
out.Operator = in.Operator
if in.Values != nil { if in.Values != nil {
in, out := &in.Values, &out.Values in, out := &in.Values, &out.Values
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Values = nil
} }
return nil return nil
} }
@ -279,8 +276,7 @@ func DeepCopy_v1_ListMeta(in interface{}, out interface{}, c *conversion.Cloner)
{ {
in := in.(*ListMeta) in := in.(*ListMeta)
out := out.(*ListMeta) out := out.(*ListMeta)
out.SelfLink = in.SelfLink *out = *in
out.ResourceVersion = in.ResourceVersion
return nil return nil
} }
} }
@ -289,16 +285,11 @@ func DeepCopy_v1_OwnerReference(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*OwnerReference) in := in.(*OwnerReference)
out := out.(*OwnerReference) out := out.(*OwnerReference)
out.APIVersion = in.APIVersion *out = *in
out.Kind = in.Kind
out.Name = in.Name
out.UID = in.UID
if in.Controller != nil { if in.Controller != nil {
in, out := &in.Controller, &out.Controller in, out := &in.Controller, &out.Controller
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} else {
out.Controller = nil
} }
return nil return nil
} }
@ -308,8 +299,7 @@ func DeepCopy_v1_Patch(in interface{}, out interface{}, c *conversion.Cloner) er
{ {
in := in.(*Patch) in := in.(*Patch)
out := out.(*Patch) out := out.(*Patch)
_ = in *out = *in
_ = out
return nil return nil
} }
} }
@ -318,12 +308,11 @@ func DeepCopy_v1_RootPaths(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*RootPaths) in := in.(*RootPaths)
out := out.(*RootPaths) out := out.(*RootPaths)
*out = *in
if in.Paths != nil { if in.Paths != nil {
in, out := &in.Paths, &out.Paths in, out := &in.Paths, &out.Paths
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Paths = nil
} }
return nil return nil
} }
@ -333,8 +322,7 @@ func DeepCopy_v1_ServerAddressByClientCIDR(in interface{}, out interface{}, c *c
{ {
in := in.(*ServerAddressByClientCIDR) in := in.(*ServerAddressByClientCIDR)
out := out.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR)
out.ClientCIDR = in.ClientCIDR *out = *in
out.ServerAddress = in.ServerAddress
return nil return nil
} }
} }
@ -343,21 +331,14 @@ func DeepCopy_v1_Status(in interface{}, out interface{}, c *conversion.Cloner) e
{ {
in := in.(*Status) in := in.(*Status)
out := out.(*Status) out := out.(*Status)
out.TypeMeta = in.TypeMeta *out = *in
out.ListMeta = in.ListMeta
out.Status = in.Status
out.Message = in.Message
out.Reason = in.Reason
if in.Details != nil { if in.Details != nil {
in, out := &in.Details, &out.Details in, out := &in.Details, &out.Details
*out = new(StatusDetails) *out = new(StatusDetails)
if err := DeepCopy_v1_StatusDetails(*in, *out, c); err != nil { if err := DeepCopy_v1_StatusDetails(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Details = nil
} }
out.Code = in.Code
return nil return nil
} }
} }
@ -366,9 +347,7 @@ func DeepCopy_v1_StatusCause(in interface{}, out interface{}, c *conversion.Clon
{ {
in := in.(*StatusCause) in := in.(*StatusCause)
out := out.(*StatusCause) out := out.(*StatusCause)
out.Type = in.Type *out = *in
out.Message = in.Message
out.Field = in.Field
return nil return nil
} }
} }
@ -377,19 +356,14 @@ func DeepCopy_v1_StatusDetails(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*StatusDetails) in := in.(*StatusDetails)
out := out.(*StatusDetails) out := out.(*StatusDetails)
out.Name = in.Name *out = *in
out.Group = in.Group
out.Kind = in.Kind
if in.Causes != nil { if in.Causes != nil {
in, out := &in.Causes, &out.Causes in, out := &in.Causes, &out.Causes
*out = make([]StatusCause, len(*in)) *out = make([]StatusCause, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Causes = nil
} }
out.RetryAfterSeconds = in.RetryAfterSeconds
return nil return nil
} }
} }
@ -398,11 +372,7 @@ func DeepCopy_v1_Time(in interface{}, out interface{}, c *conversion.Cloner) err
{ {
in := in.(*Time) in := in.(*Time)
out := out.(*Time) out := out.(*Time)
if newVal, err := c.DeepCopy(&in.Time); err != nil { *out = in.DeepCopy()
return err
} else {
out.Time = *newVal.(*time.Time)
}
return nil return nil
} }
} }
@ -411,8 +381,7 @@ func DeepCopy_v1_Timestamp(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*Timestamp) in := in.(*Timestamp)
out := out.(*Timestamp) out := out.(*Timestamp)
out.Seconds = in.Seconds *out = *in
out.Nanos = in.Nanos
return nil return nil
} }
} }
@ -421,8 +390,7 @@ func DeepCopy_v1_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner)
{ {
in := in.(*TypeMeta) in := in.(*TypeMeta)
out := out.(*TypeMeta) out := out.(*TypeMeta)
out.Kind = in.Kind *out = *in
out.APIVersion = in.APIVersion
return nil return nil
} }
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*Eviction) in := in.(*Eviction)
out := out.(*Eviction) out := out.(*Eviction)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -58,8 +58,6 @@ func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cl
if err := v1.DeepCopy_v1_DeleteOptions(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_DeleteOptions(*in, *out, c); err != nil {
return err return err
} }
} else {
out.DeleteOptions = nil
} }
return nil return nil
} }
@ -69,7 +67,7 @@ func DeepCopy_v1beta1_PodDisruptionBudget(in interface{}, out interface{}, c *co
{ {
in := in.(*PodDisruptionBudget) in := in.(*PodDisruptionBudget)
out := out.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -87,8 +85,7 @@ func DeepCopy_v1beta1_PodDisruptionBudgetList(in interface{}, out interface{}, c
{ {
in := in.(*PodDisruptionBudgetList) in := in.(*PodDisruptionBudgetList)
out := out.(*PodDisruptionBudgetList) out := out.(*PodDisruptionBudgetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]PodDisruptionBudget, len(*in)) *out = make([]PodDisruptionBudget, len(*in))
@ -97,8 +94,6 @@ func DeepCopy_v1beta1_PodDisruptionBudgetList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -108,15 +103,13 @@ func DeepCopy_v1beta1_PodDisruptionBudgetSpec(in interface{}, out interface{}, c
{ {
in := in.(*PodDisruptionBudgetSpec) in := in.(*PodDisruptionBudgetSpec)
out := out.(*PodDisruptionBudgetSpec) out := out.(*PodDisruptionBudgetSpec)
out.MinAvailable = in.MinAvailable *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(meta_v1.LabelSelector) *out = new(meta_v1.LabelSelector)
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
return nil return nil
} }
@ -126,20 +119,14 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{},
{ {
in := in.(*PodDisruptionBudgetStatus) in := in.(*PodDisruptionBudgetStatus)
out := out.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus)
out.ObservedGeneration = in.ObservedGeneration *out = *in
if in.DisruptedPods != nil { if in.DisruptedPods != nil {
in, out := &in.DisruptedPods, &out.DisruptedPods in, out := &in.DisruptedPods, &out.DisruptedPods
*out = make(map[string]meta_v1.Time) *out = make(map[string]meta_v1.Time)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val.DeepCopy() (*out)[key] = val.DeepCopy()
} }
} else {
out.DisruptedPods = nil
} }
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
return nil return nil
} }
} }

View File

@ -48,7 +48,7 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*Eviction) in := in.(*Eviction)
out := out.(*Eviction) out := out.(*Eviction)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -58,8 +58,6 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo
if err := api.DeepCopy_api_DeleteOptions(*in, *out, c); err != nil { if err := api.DeepCopy_api_DeleteOptions(*in, *out, c); err != nil {
return err return err
} }
} else {
out.DeleteOptions = nil
} }
return nil return nil
} }
@ -69,7 +67,7 @@ func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *con
{ {
in := in.(*PodDisruptionBudget) in := in.(*PodDisruptionBudget)
out := out.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -87,8 +85,7 @@ func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c
{ {
in := in.(*PodDisruptionBudgetList) in := in.(*PodDisruptionBudgetList)
out := out.(*PodDisruptionBudgetList) out := out.(*PodDisruptionBudgetList)
out.TypeMeta = in.TypeMeta *out = *in
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([]PodDisruptionBudget, len(*in)) *out = make([]PodDisruptionBudget, len(*in))
@ -97,8 +94,6 @@ func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -108,15 +103,13 @@ func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c
{ {
in := in.(*PodDisruptionBudgetSpec) in := in.(*PodDisruptionBudgetSpec)
out := out.(*PodDisruptionBudgetSpec) out := out.(*PodDisruptionBudgetSpec)
out.MinAvailable = in.MinAvailable *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
*out = new(v1.LabelSelector) *out = new(v1.LabelSelector)
if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
return err return err
} }
} else {
out.Selector = nil
} }
return nil return nil
} }
@ -126,20 +119,14 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{},
{ {
in := in.(*PodDisruptionBudgetStatus) in := in.(*PodDisruptionBudgetStatus)
out := out.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus)
out.ObservedGeneration = in.ObservedGeneration *out = *in
if in.DisruptedPods != nil { if in.DisruptedPods != nil {
in, out := &in.DisruptedPods, &out.DisruptedPods in, out := &in.DisruptedPods, &out.DisruptedPods
*out = make(map[string]v1.Time) *out = make(map[string]v1.Time)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val.DeepCopy() (*out)[key] = val.DeepCopy()
} }
} else {
out.DisruptedPods = nil
} }
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
return nil return nil
} }
} }

View File

@ -53,7 +53,7 @@ func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversio
{ {
in := in.(*ClusterRole) in := in.(*ClusterRole)
out := out.(*ClusterRole) out := out.(*ClusterRole)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,8 +65,6 @@ func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -76,7 +74,7 @@ func DeepCopy_v1alpha1_ClusterRoleBinding(in interface{}, out interface{}, c *co
{ {
in := in.(*ClusterRoleBinding) in := in.(*ClusterRoleBinding)
out := out.(*ClusterRoleBinding) out := out.(*ClusterRoleBinding)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -86,10 +84,7 @@ func DeepCopy_v1alpha1_ClusterRoleBinding(in interface{}, out interface{}, c *co
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Subjects = nil
} }
out.RoleRef = in.RoleRef
return nil return nil
} }
} }
@ -98,8 +93,7 @@ func DeepCopy_v1alpha1_ClusterRoleBindingList(in interface{}, out interface{}, c
{ {
in := in.(*ClusterRoleBindingList) in := in.(*ClusterRoleBindingList)
out := out.(*ClusterRoleBindingList) out := out.(*ClusterRoleBindingList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ClusterRoleBinding, len(*in)) *out = make([]ClusterRoleBinding, len(*in))
@ -108,8 +102,6 @@ func DeepCopy_v1alpha1_ClusterRoleBindingList(in interface{}, out interface{}, c
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -119,8 +111,7 @@ func DeepCopy_v1alpha1_ClusterRoleList(in interface{}, out interface{}, c *conve
{ {
in := in.(*ClusterRoleList) in := in.(*ClusterRoleList)
out := out.(*ClusterRoleList) out := out.(*ClusterRoleList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ClusterRole, len(*in)) *out = make([]ClusterRole, len(*in))
@ -129,8 +120,6 @@ func DeepCopy_v1alpha1_ClusterRoleList(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -140,12 +129,11 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion
{ {
in := in.(*PolicyRule) in := in.(*PolicyRule)
out := out.(*PolicyRule) out := out.(*PolicyRule)
*out = *in
if in.Verbs != nil { if in.Verbs != nil {
in, out := &in.Verbs, &out.Verbs in, out := &in.Verbs, &out.Verbs
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Verbs = nil
} }
if err := runtime.DeepCopy_runtime_RawExtension(&in.AttributeRestrictions, &out.AttributeRestrictions, c); err != nil { if err := runtime.DeepCopy_runtime_RawExtension(&in.AttributeRestrictions, &out.AttributeRestrictions, c); err != nil {
return err return err
@ -154,29 +142,21 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion
in, out := &in.APIGroups, &out.APIGroups in, out := &in.APIGroups, &out.APIGroups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.APIGroups = nil
} }
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)
} else {
out.Resources = nil
} }
if in.ResourceNames != nil { if in.ResourceNames != nil {
in, out := &in.ResourceNames, &out.ResourceNames in, out := &in.ResourceNames, &out.ResourceNames
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.ResourceNames = nil
} }
if in.NonResourceURLs != nil { if in.NonResourceURLs != nil {
in, out := &in.NonResourceURLs, &out.NonResourceURLs in, out := &in.NonResourceURLs, &out.NonResourceURLs
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.NonResourceURLs = nil
} }
return nil return nil
} }
@ -186,7 +166,7 @@ func DeepCopy_v1alpha1_Role(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*Role) in := in.(*Role)
out := out.(*Role) out := out.(*Role)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -198,8 +178,6 @@ func DeepCopy_v1alpha1_Role(in interface{}, out interface{}, c *conversion.Clone
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -209,7 +187,7 @@ func DeepCopy_v1alpha1_RoleBinding(in interface{}, out interface{}, c *conversio
{ {
in := in.(*RoleBinding) in := in.(*RoleBinding)
out := out.(*RoleBinding) out := out.(*RoleBinding)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -219,10 +197,7 @@ func DeepCopy_v1alpha1_RoleBinding(in interface{}, out interface{}, c *conversio
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Subjects = nil
} }
out.RoleRef = in.RoleRef
return nil return nil
} }
} }
@ -231,8 +206,7 @@ func DeepCopy_v1alpha1_RoleBindingList(in interface{}, out interface{}, c *conve
{ {
in := in.(*RoleBindingList) in := in.(*RoleBindingList)
out := out.(*RoleBindingList) out := out.(*RoleBindingList)
out.TypeMeta = in.TypeMeta *out = *in
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([]RoleBinding, len(*in)) *out = make([]RoleBinding, len(*in))
@ -241,8 +215,6 @@ func DeepCopy_v1alpha1_RoleBindingList(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -252,8 +224,7 @@ func DeepCopy_v1alpha1_RoleList(in interface{}, out interface{}, c *conversion.C
{ {
in := in.(*RoleList) in := in.(*RoleList)
out := out.(*RoleList) out := out.(*RoleList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Role, len(*in)) *out = make([]Role, len(*in))
@ -262,8 +233,6 @@ func DeepCopy_v1alpha1_RoleList(in interface{}, out interface{}, c *conversion.C
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -273,9 +242,7 @@ func DeepCopy_v1alpha1_RoleRef(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*RoleRef) in := in.(*RoleRef)
out := out.(*RoleRef) out := out.(*RoleRef)
out.APIGroup = in.APIGroup *out = *in
out.Kind = in.Kind
out.Name = in.Name
return nil return nil
} }
} }
@ -284,10 +251,7 @@ func DeepCopy_v1alpha1_Subject(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*Subject) in := in.(*Subject)
out := out.(*Subject) out := out.(*Subject)
out.Kind = in.Kind *out = *in
out.APIVersion = in.APIVersion
out.Name = in.Name
out.Namespace = in.Namespace
return nil return nil
} }
} }

View File

@ -53,7 +53,7 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*ClusterRole) in := in.(*ClusterRole)
out := out.(*ClusterRole) out := out.(*ClusterRole)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -65,8 +65,6 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -76,7 +74,7 @@ func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conver
{ {
in := in.(*ClusterRoleBinding) in := in.(*ClusterRoleBinding)
out := out.(*ClusterRoleBinding) out := out.(*ClusterRoleBinding)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -86,10 +84,7 @@ func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conver
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Subjects = nil
} }
out.RoleRef = in.RoleRef
return nil return nil
} }
} }
@ -98,8 +93,7 @@ func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *co
{ {
in := in.(*ClusterRoleBindingList) in := in.(*ClusterRoleBindingList)
out := out.(*ClusterRoleBindingList) out := out.(*ClusterRoleBindingList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ClusterRoleBinding, len(*in)) *out = make([]ClusterRoleBinding, len(*in))
@ -108,8 +102,6 @@ func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *co
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -119,8 +111,7 @@ func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversio
{ {
in := in.(*ClusterRoleList) in := in.(*ClusterRoleList)
out := out.(*ClusterRoleList) out := out.(*ClusterRoleList)
out.TypeMeta = in.TypeMeta *out = *in
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([]ClusterRole, len(*in)) *out = make([]ClusterRole, len(*in))
@ -129,8 +120,6 @@ func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -140,47 +129,39 @@ func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*PolicyRule) in := in.(*PolicyRule)
out := out.(*PolicyRule) out := out.(*PolicyRule)
*out = *in
if in.Verbs != nil { if in.Verbs != nil {
in, out := &in.Verbs, &out.Verbs in, out := &in.Verbs, &out.Verbs
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Verbs = nil
} }
if in.AttributeRestrictions == nil { // in.AttributeRestrictions is kind 'Interface'
out.AttributeRestrictions = nil if in.AttributeRestrictions != nil {
} else if newVal, err := c.DeepCopy(&in.AttributeRestrictions); err != nil { if newVal, err := c.DeepCopy(&in.AttributeRestrictions); err != nil {
return err return err
} else { } else {
out.AttributeRestrictions = *newVal.(*runtime.Object) out.AttributeRestrictions = *newVal.(*runtime.Object)
}
} }
if in.APIGroups != nil { if in.APIGroups != nil {
in, out := &in.APIGroups, &out.APIGroups in, out := &in.APIGroups, &out.APIGroups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.APIGroups = nil
} }
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)
} else {
out.Resources = nil
} }
if in.ResourceNames != nil { if in.ResourceNames != nil {
in, out := &in.ResourceNames, &out.ResourceNames in, out := &in.ResourceNames, &out.ResourceNames
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.ResourceNames = nil
} }
if in.NonResourceURLs != nil { if in.NonResourceURLs != nil {
in, out := &in.NonResourceURLs, &out.NonResourceURLs in, out := &in.NonResourceURLs, &out.NonResourceURLs
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.NonResourceURLs = nil
} }
return nil return nil
} }
@ -190,7 +171,7 @@ func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) e
{ {
in := in.(*Role) in := in.(*Role)
out := out.(*Role) out := out.(*Role)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -202,8 +183,6 @@ func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) e
return err return err
} }
} }
} else {
out.Rules = nil
} }
return nil return nil
} }
@ -213,7 +192,7 @@ func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*RoleBinding) in := in.(*RoleBinding)
out := out.(*RoleBinding) out := out.(*RoleBinding)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
@ -223,10 +202,7 @@ func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cl
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} else {
out.Subjects = nil
} }
out.RoleRef = in.RoleRef
return nil return nil
} }
} }
@ -235,8 +211,7 @@ func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversio
{ {
in := in.(*RoleBindingList) in := in.(*RoleBindingList)
out := out.(*RoleBindingList) out := out.(*RoleBindingList)
out.TypeMeta = in.TypeMeta *out = *in
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([]RoleBinding, len(*in)) *out = make([]RoleBinding, len(*in))
@ -245,8 +220,6 @@ func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversio
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -256,8 +229,7 @@ func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Clone
{ {
in := in.(*RoleList) in := in.(*RoleList)
out := out.(*RoleList) out := out.(*RoleList)
out.TypeMeta = in.TypeMeta *out = *in
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([]Role, len(*in)) *out = make([]Role, len(*in))
@ -266,8 +238,6 @@ func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Clone
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }
@ -277,9 +247,7 @@ func DeepCopy_rbac_RoleRef(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*RoleRef) in := in.(*RoleRef)
out := out.(*RoleRef) out := out.(*RoleRef)
out.APIGroup = in.APIGroup *out = *in
out.Kind = in.Kind
out.Name = in.Name
return nil return nil
} }
} }
@ -288,10 +256,7 @@ func DeepCopy_rbac_Subject(in interface{}, out interface{}, c *conversion.Cloner
{ {
in := in.(*Subject) in := in.(*Subject)
out := out.(*Subject) out := out.(*Subject)
out.Kind = in.Kind *out = *in
out.APIVersion = in.APIVersion
out.Name = in.Name
out.Namespace = in.Namespace
return nil return nil
} }
} }

View File

@ -18,6 +18,7 @@ go_library(
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.conversion.go", "zz_generated.conversion.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
"zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

View File

@ -44,19 +44,16 @@ func DeepCopy_v1beta1_StorageClass(in interface{}, out interface{}, c *conversio
{ {
in := in.(*StorageClass) in := in.(*StorageClass)
out := out.(*StorageClass) out := out.(*StorageClass)
out.TypeMeta = in.TypeMeta *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Provisioner = in.Provisioner
if in.Parameters != nil { if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters in, out := &in.Parameters, &out.Parameters
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.Parameters = nil
} }
return nil return nil
} }
@ -66,8 +63,7 @@ func DeepCopy_v1beta1_StorageClassList(in interface{}, out interface{}, c *conve
{ {
in := in.(*StorageClassList) in := in.(*StorageClassList)
out := out.(*StorageClassList) out := out.(*StorageClassList)
out.TypeMeta = in.TypeMeta *out = *in
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([]StorageClass, len(*in)) *out = make([]StorageClass, len(*in))
@ -76,8 +72,6 @@ func DeepCopy_v1beta1_StorageClassList(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }

View File

@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1beta1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@ -44,19 +44,16 @@ func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversio
{ {
in := in.(*StorageClass) in := in.(*StorageClass)
out := out.(*StorageClass) out := out.(*StorageClass)
out.TypeMeta = in.TypeMeta *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err return err
} }
out.Provisioner = in.Provisioner
if in.Parameters != nil { if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters in, out := &in.Parameters, &out.Parameters
*out = make(map[string]string) *out = make(map[string]string)
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} else {
out.Parameters = nil
} }
return nil return nil
} }
@ -66,8 +63,7 @@ func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conve
{ {
in := in.(*StorageClassList) in := in.(*StorageClassList)
out := out.(*StorageClassList) out := out.(*StorageClassList)
out.TypeMeta = in.TypeMeta *out = *in
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([]StorageClass, len(*in)) *out = make([]StorageClass, len(*in))
@ -76,8 +72,6 @@ func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conve
return err return err
} }
} }
} else {
out.Items = nil
} }
return nil return nil
} }

View File

@ -22,25 +22,35 @@ package runtime
import ( import (
conversion "k8s.io/kubernetes/pkg/conversion" conversion "k8s.io/kubernetes/pkg/conversion"
reflect "reflect"
) )
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: DeepCopy_runtime_RawExtension, InType: reflect.TypeOf(&RawExtension{})},
{Fn: DeepCopy_runtime_TypeMeta, InType: reflect.TypeOf(&TypeMeta{})},
{Fn: DeepCopy_runtime_Unknown, InType: reflect.TypeOf(&Unknown{})},
}
}
func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error { func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error {
{ {
in := in.(*RawExtension) in := in.(*RawExtension)
out := out.(*RawExtension) out := out.(*RawExtension)
*out = *in
if in.Raw != nil { if in.Raw != nil {
in, out := &in.Raw, &out.Raw in, out := &in.Raw, &out.Raw
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Raw = nil
} }
if in.Object == nil { // in.Object is kind 'Interface'
out.Object = nil if in.Object != nil {
} else if newVal, err := c.DeepCopy(&in.Object); err != nil { if newVal, err := c.DeepCopy(&in.Object); err != nil {
return err return err
} else { } else {
out.Object = *newVal.(*Object) out.Object = *newVal.(*Object)
}
} }
return nil return nil
} }
@ -50,8 +60,7 @@ func DeepCopy_runtime_TypeMeta(in interface{}, out interface{}, c *conversion.Cl
{ {
in := in.(*TypeMeta) in := in.(*TypeMeta)
out := out.(*TypeMeta) out := out.(*TypeMeta)
out.APIVersion = in.APIVersion *out = *in
out.Kind = in.Kind
return nil return nil
} }
} }
@ -60,16 +69,12 @@ func DeepCopy_runtime_Unknown(in interface{}, out interface{}, c *conversion.Clo
{ {
in := in.(*Unknown) in := in.(*Unknown)
out := out.(*Unknown) out := out.(*Unknown)
out.TypeMeta = in.TypeMeta *out = *in
if in.Raw != nil { if in.Raw != nil {
in, out := &in.Raw, &out.Raw in, out := &in.Raw, &out.Raw
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} else {
out.Raw = nil
} }
out.ContentEncoding = in.ContentEncoding
out.ContentType = in.ContentType
return nil return nil
} }
} }

View File

@ -124,14 +124,16 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
inputs := sets.NewString(context.Inputs...) inputs := sets.NewString(context.Inputs...)
packages := generator.Packages{} packages := generator.Packages{}
header := append([]byte(fmt.Sprintf("// +build !%s\n\n", arguments.GeneratedBuildTag)), boilerplate...) header := append([]byte(fmt.Sprintf("// +build !%s\n\n", arguments.GeneratedBuildTag)), boilerplate...)
header = append(header, []byte( header = append(header, []byte(`
` // This file was autogenerated by deepcopy-gen. Do not edit it manually!
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
`)...) `)...)
boundingDirs := []string{} boundingDirs := []string{}
if customArgs, ok := arguments.CustomArgs.(*CustomArgs); ok { if customArgs, ok := arguments.CustomArgs.(*CustomArgs); ok {
if customArgs.BoundingDirs == nil {
customArgs.BoundingDirs = context.Inputs
}
for i := range customArgs.BoundingDirs { for i := range customArgs.BoundingDirs {
// Strip any trailing slashes - they are not exactly "correct" but // Strip any trailing slashes - they are not exactly "correct" but
// this is friendlier. // this is friendlier.
@ -140,7 +142,7 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
} }
for i := range inputs { for i := range inputs {
glog.V(5).Infof("considering pkg %q", i) glog.V(5).Infof("Considering pkg %q", i)
pkg := context.Universe[i] pkg := context.Universe[i]
if pkg == nil { if pkg == nil {
// If the input had no Go files, for example. // If the input had no Go files, for example.
@ -181,16 +183,16 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
} }
if pkgNeedsGeneration { if pkgNeedsGeneration {
glog.V(3).Infof("Package %q needs generation", i)
packages = append(packages, packages = append(packages,
&generator.DefaultPackage{ &generator.DefaultPackage{
PackageName: strings.Split(filepath.Base(pkg.Path), ".")[0], PackageName: strings.Split(filepath.Base(pkg.Path), ".")[0],
PackagePath: pkg.Path, PackagePath: pkg.Path,
HeaderText: header, HeaderText: header,
GeneratorFunc: func(c *generator.Context) (generators []generator.Generator) { GeneratorFunc: func(c *generator.Context) (generators []generator.Generator) {
generators = []generator.Generator{} return []generator.Generator{
generators = append( NewGenDeepCopy(arguments.OutputFileBaseName, pkg.Path, boundingDirs, (ptagValue == tagValuePackage), ptagRegister),
generators, NewGenDeepCopy(arguments.OutputFileBaseName, pkg.Path, boundingDirs, (ptagValue == tagValuePackage), ptagRegister)) }
return generators
}, },
FilterFunc: func(c *generator.Context, t *types.Type) bool { FilterFunc: func(c *generator.Context, t *types.Type) bool {
return t.Name.Package == pkg.Path return t.Name.Package == pkg.Path
@ -202,7 +204,6 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
} }
const ( const (
apiPackagePath = "k8s.io/kubernetes/pkg/api"
conversionPackagePath = "k8s.io/kubernetes/pkg/conversion" conversionPackagePath = "k8s.io/kubernetes/pkg/conversion"
runtimePackagePath = "k8s.io/kubernetes/pkg/runtime" runtimePackagePath = "k8s.io/kubernetes/pkg/runtime"
) )
@ -253,11 +254,16 @@ func (g *genDeepCopy) Filter(c *generator.Context, t *types.Type) bool {
enabled = true enabled = true
} }
} }
copyable := enabled && copyableType(t) if !enabled {
if copyable { return false
g.typesForInit = append(g.typesForInit, t)
} }
return copyable if !copyableType(t) {
glog.V(2).Infof("Type %v is not copyable", t)
return false
}
glog.V(4).Infof("Type %v is copyable", t)
g.typesForInit = append(g.typesForInit, t)
return true
} }
func (g *genDeepCopy) copyableAndInBounds(t *types.Type) bool { func (g *genDeepCopy) copyableAndInBounds(t *types.Type) bool {
@ -368,12 +374,20 @@ func (g *genDeepCopy) Init(c *generator.Context, w io.Writer) error {
cloner := c.Universe.Type(types.Name{Package: conversionPackagePath, Name: "Cloner"}) cloner := c.Universe.Type(types.Name{Package: conversionPackagePath, Name: "Cloner"})
g.imports.AddType(cloner) g.imports.AddType(cloner)
if !g.registerTypes { if !g.registerTypes {
// TODO: We should come up with a solution to register all generated sw := generator.NewSnippetWriter(w, c, "$", "$")
// deep-copy functions. However, for now, to avoid import cycles sw.Do("// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.\n", nil)
// we register only those explicitly requested. sw.Do("func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc{\n", nil)
return nil sw.Do("return []conversion.GeneratedDeepCopyFunc{\n", nil)
for _, t := range g.typesForInit {
args := argsFromType(t).
With("typeof", c.Universe.Package("reflect").Function("TypeOf"))
sw.Do("{Fn: $.type|dcFnName$, InType: $.typeof|raw$(&$.type|raw${})},\n", args)
}
sw.Do("}\n", nil)
sw.Do("}\n\n", nil)
return sw.Error()
} }
glog.V(5).Infof("registering types in pkg %q", g.targetPackage) glog.V(5).Infof("Registering types in pkg %q", g.targetPackage)
sw := generator.NewSnippetWriter(w, c, "$", "$") sw := generator.NewSnippetWriter(w, c, "$", "$")
sw.Do("func init() {\n", nil) sw.Do("func init() {\n", nil)
@ -410,12 +424,12 @@ func (g *genDeepCopy) needsGeneration(t *types.Type) bool {
} }
if g.allTypes && tv == "false" { if g.allTypes && tv == "false" {
// The whole package is being generated, but this type has opted out. // The whole package is being generated, but this type has opted out.
glog.V(5).Infof("not generating for type %v because type opted out", t) glog.V(5).Infof("Not generating for type %v because type opted out", t)
return false return false
} }
if !g.allTypes && tv != "true" { if !g.allTypes && tv != "true" {
// The whole package is NOT being generated, and this type has NOT opted in. // The whole package is NOT being generated, and this type has NOT opted in.
glog.V(5).Infof("not generating for type %v because type did not opt in", t) glog.V(5).Infof("Not generating for type %v because type did not opt in", t)
return false return false
} }
return true return true
@ -425,7 +439,7 @@ func (g *genDeepCopy) GenerateType(c *generator.Context, t *types.Type, w io.Wri
if !g.needsGeneration(t) { if !g.needsGeneration(t) {
return nil return nil
} }
glog.V(5).Infof("generating for type %v", t) glog.V(5).Infof("Generating deepcopy function for type %v", t)
sw := generator.NewSnippetWriter(w, c, "$", "$") sw := generator.NewSnippetWriter(w, c, "$", "$")
args := argsFromType(t). args := argsFromType(t).
@ -535,12 +549,18 @@ func (g *genDeepCopy) doSlice(t *types.Type, sw *generator.SnippetWriter) {
} }
func (g *genDeepCopy) doStruct(t *types.Type, sw *generator.SnippetWriter) { func (g *genDeepCopy) doStruct(t *types.Type, sw *generator.SnippetWriter) {
if len(t.Members) == 0 { if hasDeepCopyMethod(t) {
// at least do something with in/out to avoid "declared and not used" errors sw.Do("*out = in.DeepCopy()\n", nil)
sw.Do("_ = in\n_ = out\n", nil) return
} }
// Simple copy covers a lot of cases.
sw.Do("*out = *in\n", nil)
// Now fix-up fields as needed.
for _, m := range t.Members { for _, m := range t.Members {
t := m.Type t := m.Type
hasMethod := hasDeepCopyMethod(t)
if t.Kind == types.Alias { if t.Kind == types.Alias {
copied := *t.Underlying copied := *t.Underlying
copied.Name = t.Name copied.Name = t.Name
@ -548,28 +568,40 @@ func (g *genDeepCopy) doStruct(t *types.Type, sw *generator.SnippetWriter) {
} }
args := generator.Args{ args := generator.Args{
"type": t, "type": t,
"kind": t.Kind,
"name": m.Name, "name": m.Name,
} }
switch t.Kind { switch t.Kind {
case types.Builtin: case types.Builtin:
sw.Do("out.$.name$ = in.$.name$\n", args) if hasMethod {
sw.Do("out.$.name$ = in.$.name$.DeepCopy()\n", args)
}
case types.Map, types.Slice, types.Pointer: case types.Map, types.Slice, types.Pointer:
sw.Do("if in.$.name$ != nil {\n", args) if hasMethod {
sw.Do("in, out := &in.$.name$, &out.$.name$\n", args) sw.Do("if in.$.name$ != nil {\n", args)
g.generateFor(t, sw) sw.Do("out.$.name$ = in.$.name$.DeepCopy()\n", args)
sw.Do("} else {\n", nil) sw.Do("}\n", nil)
sw.Do("out.$.name$ = nil\n", args) } else {
sw.Do("}\n", nil) // Fixup non-nil reference-sematic types.
sw.Do("if in.$.name$ != nil {\n", args)
sw.Do("in, out := &in.$.name$, &out.$.name$\n", args)
g.generateFor(t, sw)
sw.Do("}\n", nil)
}
case types.Struct: case types.Struct:
if hasDeepCopyMethod(t) { if hasMethod {
sw.Do("out.$.name$ = in.$.name$.DeepCopy()\n", args) sw.Do("out.$.name$ = in.$.name$.DeepCopy()\n", args)
} else if t.IsAssignable() { } else if t.IsAssignable() {
sw.Do("out.$.name$ = in.$.name$\n", args) // Nothing else needed.
} else if g.copyableAndInBounds(t) { } else if g.copyableAndInBounds(t) {
// Not assignable but should have a deepcopy function.
// TODO: do a topological sort of packages and ensure that this works, else inline it.
sw.Do("if err := $.type|dcFnName$(&in.$.name$, &out.$.name$, c); err != nil {\n", args) sw.Do("if err := $.type|dcFnName$(&in.$.name$, &out.$.name$, c); err != nil {\n", args)
sw.Do("return err\n", nil) sw.Do("return err\n", nil)
sw.Do("}\n", nil) sw.Do("}\n", nil)
} else { } else {
// Fall back on the slow-path and hope it works.
// TODO: don't depend on kubernetes code for this
sw.Do("if newVal, err := c.DeepCopy(&in.$.name$); err != nil {\n", args) sw.Do("if newVal, err := c.DeepCopy(&in.$.name$); err != nil {\n", args)
sw.Do("return err\n", nil) sw.Do("return err\n", nil)
sw.Do("} else {\n", nil) sw.Do("} else {\n", nil)
@ -577,13 +609,22 @@ func (g *genDeepCopy) doStruct(t *types.Type, sw *generator.SnippetWriter) {
sw.Do("}\n", nil) sw.Do("}\n", nil)
} }
default: default:
sw.Do("if in.$.name$ == nil {\n", args) // Interfaces, Arrays, and other Kinds we don't understand.
sw.Do("out.$.name$ = nil\n", args) sw.Do("// in.$.name$ is kind '$.kind$'\n", args)
sw.Do("} else if newVal, err := c.DeepCopy(&in.$.name$); err != nil {\n", args) if hasMethod {
sw.Do("return err\n", nil) sw.Do("if in.$.name$ != nil {\n", args)
sw.Do("} else {\n", nil) sw.Do("out.$.name$ = in.$.name$.DeepCopy()\n", args)
sw.Do("out.$.name$ = *newVal.(*$.type|raw$)\n", args) sw.Do("}\n", args)
sw.Do("}\n", nil) } else {
// TODO: don't depend on kubernetes code for this
sw.Do("if in.$.name$ != nil {\n", args)
sw.Do("if newVal, err := c.DeepCopy(&in.$.name$); err != nil {\n", args)
sw.Do("return err\n", nil)
sw.Do("} else {\n", nil)
sw.Do("out.$.name$ = *newVal.(*$.type|raw$)\n", args)
sw.Do("}\n", nil)
sw.Do("}\n", nil)
}
} }
} }
} }

View File

@ -323,7 +323,6 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
if len(newDefaulters) == 0 { if len(newDefaulters) == 0 {
glog.V(5).Infof("no defaulters in package %s", pkg.Name) glog.V(5).Infof("no defaulters in package %s", pkg.Name)
continue
} }
packages = append(packages, packages = append(packages,

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2016 The Kubernetes Authors. Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

374
vendor/k8s.io/gengo/parser/parse.go generated vendored
View File

@ -33,30 +33,38 @@ import (
"k8s.io/gengo/types" "k8s.io/gengo/types"
) )
// This clarifies when a pkg path has been canonicalized.
type importPathString string
// Builder lets you add all the go files in all the packages that you care // Builder lets you add all the go files in all the packages that you care
// about, then constructs the type source data. // about, then constructs the type source data.
type Builder struct { type Builder struct {
context *build.Context context *build.Context
buildInfo map[string]*build.Package
// Map of package names to more canonical information about the package.
// This might hold the same value for multiple names, e.g. if someone
// referenced ./pkg/name or in the case of vendoring, which canonicalizes
// differently that what humans would type.
buildPackages map[string]*build.Package
fset *token.FileSet fset *token.FileSet
// map of package id to list of parsed files // map of package path to list of parsed files
parsed map[string][]parsedFile parsed map[importPathString][]parsedFile
// map of package id to absolute path (to prevent overlap) // map of package path to absolute path (to prevent overlap)
absPaths map[string]string absPaths map[importPathString]string
// Set by makePackage(), used by importer() and friends. // Set by typeCheckPackage(), used by importPackage() and friends.
pkgs map[string]*tc.Package typeCheckedPackages map[importPathString]*tc.Package
// Map of package path to whether the user requested it or it was from // Map of package path to whether the user requested it or it was from
// an import. // an import.
userRequested map[string]bool userRequested map[importPathString]bool
// All comments from everywhere in every parsed file. // All comments from everywhere in every parsed file.
endLineToCommentGroup map[fileLine]*ast.CommentGroup endLineToCommentGroup map[fileLine]*ast.CommentGroup
// map of package to list of packages it imports. // map of package to list of packages it imports.
importGraph map[string]map[string]struct{} importGraph map[importPathString]map[string]struct{}
} }
// parsedFile is for tracking files with name // parsedFile is for tracking files with name
@ -87,13 +95,14 @@ func New() *Builder {
c.CgoEnabled = false c.CgoEnabled = false
return &Builder{ return &Builder{
context: &c, context: &c,
buildInfo: map[string]*build.Package{}, buildPackages: map[string]*build.Package{},
typeCheckedPackages: map[importPathString]*tc.Package{},
fset: token.NewFileSet(), fset: token.NewFileSet(),
parsed: map[string][]parsedFile{}, parsed: map[importPathString][]parsedFile{},
absPaths: map[string]string{}, absPaths: map[importPathString]string{},
userRequested: map[string]bool{}, userRequested: map[importPathString]bool{},
endLineToCommentGroup: map[fileLine]*ast.CommentGroup{}, endLineToCommentGroup: map[fileLine]*ast.CommentGroup{},
importGraph: map[string]map[string]struct{}{}, importGraph: map[importPathString]map[string]struct{}{},
} }
} }
@ -105,71 +114,73 @@ func (b *Builder) AddBuildTags(tags ...string) {
// Get package information from the go/build package. Automatically excludes // Get package information from the go/build package. Automatically excludes
// e.g. test files and files for other platforms-- there is quite a bit of // e.g. test files and files for other platforms-- there is quite a bit of
// logic of that nature in the build package. // logic of that nature in the build package.
func (b *Builder) buildPackage(pkgPath string) (*build.Package, error) { func (b *Builder) importBuildPackage(dir string) (*build.Package, error) {
// This is a bit of a hack. The srcDir argument to Import() should if buildPkg, ok := b.buildPackages[dir]; ok {
// properly be the dir of the file which depends on the package to be return buildPkg, nil
// imported, so that vendoring can work properly. We assume that there is
// only one level of vendoring, and that the CWD is inside the GOPATH, so
// this should be safe.
cwd, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("unable to get current directory: %v", err)
} }
// This validates the `package foo // github.com/bar/foo` comments.
// First, find it, so we know what path to use. buildPkg, err := b.importWithMode(dir, build.ImportComment)
pkg, err := b.context.Import(pkgPath, cwd, build.FindOnly)
if err != nil {
return nil, fmt.Errorf("unable to *find* %q: %v", pkgPath, err)
}
pkgPath = pkg.ImportPath
if pkg, ok := b.buildInfo[pkgPath]; ok {
return pkg, nil
}
pkg, err = b.context.Import(pkgPath, cwd, build.ImportComment)
if err != nil { if err != nil {
if _, ok := err.(*build.NoGoError); !ok { if _, ok := err.(*build.NoGoError); !ok {
return nil, fmt.Errorf("unable to import %q: %v", pkgPath, err) return nil, fmt.Errorf("unable to import %q: %v", dir, err)
}
}
if buildPkg == nil {
// Might be an empty directory. Try to just find the dir.
buildPkg, err = b.importWithMode(dir, build.FindOnly)
if err != nil {
return nil, err
} }
} }
b.buildInfo[pkgPath] = pkg
if b.importGraph[pkgPath] == nil { // Remember it under the user-provided name.
b.importGraph[pkgPath] = map[string]struct{}{} glog.V(5).Infof("saving buildPackage %s", dir)
b.buildPackages[dir] = buildPkg
if dir != buildPkg.ImportPath {
// Since `dir` is not the canonical name, see if we knew it under another name.
if buildPkg, ok := b.buildPackages[buildPkg.ImportPath]; ok {
return buildPkg, nil
}
// Must be new, save it under the canonical name, too.
glog.V(5).Infof("saving buildPackage %s", buildPkg.ImportPath)
b.buildPackages[buildPkg.ImportPath] = buildPkg
} }
for _, p := range pkg.Imports {
b.importGraph[pkgPath][p] = struct{}{} return buildPkg, nil
}
return pkg, nil
} }
// AddFile adds a file to the set. The pkg must be of the form // AddFileForTest adds a file to the set, without verifying that the provided
// "canonical/pkg/path" and the path must be the absolute path to the file. // pkg actually exists on disk. The pkg must be of the form "canonical/pkg/path"
func (b *Builder) AddFile(pkg string, path string, src []byte) error { // and the path must be the absolute path to the file. Because this bypasses
return b.addFile(pkg, path, src, true) // the normal recursive finding of package dependencies (on disk), test should
// sort their test files topologically first, so all deps are resolved by the
// time we need them.
func (b *Builder) AddFileForTest(pkg string, path string, src []byte) error {
if err := b.addFile(importPathString(pkg), path, src, true); err != nil {
return err
}
if _, err := b.typeCheckPackage(importPathString(pkg)); err != nil {
return err
}
return nil
} }
// addFile adds a file to the set. The pkg must be of the form // addFile adds a file to the set. The pkgPath must be of the form
// "canonical/pkg/path" and the path must be the absolute path to the file. A // "canonical/pkg/path" and the path must be the absolute path to the file. A
// flag indicates whether this file was user-requested or just from following // flag indicates whether this file was user-requested or just from following
// the import graph. // the import graph.
func (b *Builder) addFile(pkg string, path string, src []byte, userRequested bool) error { func (b *Builder) addFile(pkgPath importPathString, path string, src []byte, userRequested bool) error {
glog.V(6).Infof("addFile %s %s", pkgPath, path)
p, err := parser.ParseFile(b.fset, path, src, parser.DeclarationErrors|parser.ParseComments) p, err := parser.ParseFile(b.fset, path, src, parser.DeclarationErrors|parser.ParseComments)
if err != nil { if err != nil {
return err return err
} }
dirPath := filepath.Dir(path)
if prev, found := b.absPaths[pkg]; found {
if dirPath != prev {
return fmt.Errorf("package %q (%s) previously resolved to %s", pkg, dirPath, prev)
}
} else {
b.absPaths[pkg] = dirPath
}
b.parsed[pkg] = append(b.parsed[pkg], parsedFile{path, p}) // This is redundant with addDir, but some tests call AddFileForTest, which
b.userRequested[pkg] = userRequested // call into here without calling addDir.
b.userRequested[pkgPath] = userRequested || b.userRequested[pkgPath]
b.parsed[pkgPath] = append(b.parsed[pkgPath], parsedFile{path, p})
for _, c := range p.Comments { for _, c := range p.Comments {
position := b.fset.Position(c.End()) position := b.fset.Position(c.End())
b.endLineToCommentGroup[fileLine{position.Filename, position.Line}] = c b.endLineToCommentGroup[fileLine{position.Filename, position.Line}] = c
@ -177,12 +188,12 @@ func (b *Builder) addFile(pkg string, path string, src []byte, userRequested boo
// We have to get the packages from this specific file, in case the // We have to get the packages from this specific file, in case the
// user added individual files instead of entire directories. // user added individual files instead of entire directories.
if b.importGraph[pkg] == nil { if b.importGraph[pkgPath] == nil {
b.importGraph[pkg] = map[string]struct{}{} b.importGraph[pkgPath] = map[string]struct{}{}
} }
for _, im := range p.Imports { for _, im := range p.Imports {
importedPath := strings.Trim(im.Path.Value, `"`) importedPath := strings.Trim(im.Path.Value, `"`)
b.importGraph[pkg][importedPath] = struct{}{} b.importGraph[pkgPath][importedPath] = struct{}{}
} }
return nil return nil
} }
@ -191,45 +202,40 @@ func (b *Builder) addFile(pkg string, path string, src []byte, userRequested boo
// a single go package in it. GOPATH, GOROOT, and the location of your go // a single go package in it. GOPATH, GOROOT, and the location of your go
// binary (`which go`) will all be searched if dir doesn't literally resolve. // binary (`which go`) will all be searched if dir doesn't literally resolve.
func (b *Builder) AddDir(dir string) error { func (b *Builder) AddDir(dir string) error {
return b.addDir(dir, true) _, err := b.importPackage(dir, true)
return err
} }
// AddDirRecursive is just like AddDir, but it also recursively adds // AddDirRecursive is just like AddDir, but it also recursively adds
// subdirectories; it returns an error only if the path couldn't be resolved; // subdirectories; it returns an error only if the path couldn't be resolved;
// any directories recursed into without go source are ignored. // any directories recursed into without go source are ignored.
func (b *Builder) AddDirRecursive(dir string) error { func (b *Builder) AddDirRecursive(dir string) error {
// This is a bit of a hack. The srcDir argument to Import() should // Add the root.
// properly be the dir of the file which depends on the package to be if _, err := b.importPackage(dir, true); err != nil {
// imported, so that vendoring can work properly. We assume that there is
// only one level of vendoring, and that the CWD is inside the GOPATH, so
// this should be safe.
cwd, err := os.Getwd()
if err != nil {
return fmt.Errorf("unable to get current directory: %v", err)
}
// First, find it, so we know what path to use.
pkg, err := b.context.Import(dir, cwd, build.FindOnly)
if err != nil {
return fmt.Errorf("unable to *find* %q: %v", dir, err)
}
if err := b.addDir(dir, true); err != nil {
glog.Warningf("Ignoring directory %v: %v", dir, err) glog.Warningf("Ignoring directory %v: %v", dir, err)
} }
prefix := strings.TrimSuffix(pkg.Dir, strings.TrimSuffix(dir, "/")) // filepath.Walk includes the root dir, but we already did that, so we'll
filepath.Walk(pkg.Dir, func(path string, info os.FileInfo, err error) error { // remove that prefix and rebuild a package import path.
prefix := b.buildPackages[dir].Dir
fn := func(path string, info os.FileInfo, err error) error {
if info != nil && info.IsDir() { if info != nil && info.IsDir() {
trimmed := strings.TrimPrefix(path, prefix) rel := strings.TrimPrefix(path, prefix)
if trimmed != "" { if rel != "" {
if err := b.addDir(trimmed, true); err != nil { // Make a pkg path.
glog.Warningf("Ignoring child directory %v: %v", trimmed, err) pkg := filepath.Join(b.buildPackages[dir].ImportPath, rel)
// Add it.
if _, err := b.importPackage(pkg, true); err != nil {
glog.Warningf("Ignoring child directory %v: %v", pkg, err)
} }
} }
} }
return nil return nil
}) }
if err := filepath.Walk(b.buildPackages[dir].Dir, fn); err != nil {
return err
}
return nil return nil
} }
@ -239,44 +245,46 @@ func (b *Builder) AddDirRecursive(dir string) error {
// GOPATH, GOROOT, and the location of your go binary (`which go`) will all be // GOPATH, GOROOT, and the location of your go binary (`which go`) will all be
// searched if dir doesn't literally resolve. // searched if dir doesn't literally resolve.
func (b *Builder) AddDirTo(dir string, u *types.Universe) error { func (b *Builder) AddDirTo(dir string, u *types.Universe) error {
if _, found := b.parsed[dir]; !found { // We want all types from this package, as if they were directly added
// We want all types from this package, as if they were directly added // by the user. They WERE added by the user, in effect.
// by the user. They WERE added by the user, in effect. if _, err := b.importPackage(dir, true); err != nil {
if err := b.addDir(dir, true); err != nil { return err
return err
}
} else {
// We already had this package, but we want it to be considered as if
// the user addid it directly.
b.userRequested[dir] = true
} }
return b.findTypesIn(dir, u) return b.findTypesIn(importPathString(b.buildPackages[dir].ImportPath), u)
} }
// The implementation of AddDir. A flag indicates whether this directory was // The implementation of AddDir. A flag indicates whether this directory was
// user-requested or just from following the import graph. // user-requested or just from following the import graph.
func (b *Builder) addDir(dir string, userRequested bool) error { func (b *Builder) addDir(dir string, userRequested bool) error {
pkg, err := b.buildPackage(dir) glog.V(5).Infof("addDir %s", dir)
buildPkg, err := b.importBuildPackage(dir)
if err != nil { if err != nil {
return err return err
} }
// Check in case this package was added (maybe dir was not canonical) pkgPath := importPathString(buildPkg.ImportPath)
if wasRequested, wasAdded := b.userRequested[dir]; wasAdded { if dir != buildPkg.ImportPath {
if !userRequested || userRequested == wasRequested { glog.V(5).Infof("addDir %s, canonical path is %s", dir, pkgPath)
return nil
}
} }
for _, n := range pkg.GoFiles { // Sanity check the pkg dir has not changed.
if prev, found := b.absPaths[pkgPath]; found {
if buildPkg.Dir != prev {
return fmt.Errorf("package %q (%s) previously resolved to %s", pkgPath, buildPkg.Dir, prev)
}
} else {
b.absPaths[pkgPath] = buildPkg.Dir
}
for _, n := range buildPkg.GoFiles {
if !strings.HasSuffix(n, ".go") { if !strings.HasSuffix(n, ".go") {
continue continue
} }
absPath := filepath.Join(pkg.Dir, n) absPath := filepath.Join(buildPkg.Dir, n)
data, err := ioutil.ReadFile(absPath) data, err := ioutil.ReadFile(absPath)
if err != nil { if err != nil {
return fmt.Errorf("while loading %q: %v", absPath, err) return fmt.Errorf("while loading %q: %v", absPath, err)
} }
err = b.addFile(dir, absPath, data, userRequested) err = b.addFile(pkgPath, absPath, data, userRequested)
if err != nil { if err != nil {
return fmt.Errorf("while parsing %q: %v", absPath, err) return fmt.Errorf("while parsing %q: %v", absPath, err)
} }
@ -284,32 +292,53 @@ func (b *Builder) addDir(dir string, userRequested bool) error {
return nil return nil
} }
// importer is a function that will be called by the type check package when it // importPackage is a function that will be called by the type check package when it
// needs to import a go package. 'path' is the import path. go1.5 changes the // needs to import a go package. 'path' is the import path.
// interface, and importAdapter below implements the new interface in terms of func (b *Builder) importPackage(dir string, userRequested bool) (*tc.Package, error) {
// the old one. glog.V(5).Infof("importPackage %s", dir)
func (b *Builder) importer(imports map[string]*tc.Package, path string) (*tc.Package, error) { var pkgPath = importPathString(dir)
if pkg, ok := imports[path]; ok {
return pkg, nil // Get the canonical path if we can.
if buildPkg := b.buildPackages[dir]; buildPkg != nil {
glog.V(5).Infof("importPackage %s, canonical path is %s", dir, buildPkg.ImportPath)
pkgPath = importPathString(buildPkg.ImportPath)
} }
// If we have not seen this before, process it now.
ignoreError := false ignoreError := false
if _, ours := b.parsed[path]; !ours { if _, found := b.parsed[pkgPath]; !found {
// Ignore errors in paths that we're importing solely because // Ignore errors in paths that we're importing solely because
// they're referenced by other packages. // they're referenced by other packages.
ignoreError = true ignoreError = true
if err := b.addDir(path, false); err != nil {
// Add it.
if err := b.addDir(dir, userRequested); err != nil {
return nil, err return nil, err
} }
// Get the canonical path now that it has been added.
if buildPkg := b.buildPackages[dir]; buildPkg != nil {
glog.V(5).Infof("importPackage %s, canonical path is %s", dir, buildPkg.ImportPath)
pkgPath = importPathString(buildPkg.ImportPath)
}
} }
pkg, err := b.typeCheckPackage(path)
// If it was previously known, just check that the user-requestedness hasn't
// changed.
b.userRequested[pkgPath] = userRequested || b.userRequested[pkgPath]
// Run the type checker. We may end up doing this to pkgs that are already
// done, or are in the queue to be done later, but it will short-circuit,
// and we can't miss pkgs that are only depended on.
pkg, err := b.typeCheckPackage(pkgPath)
if err != nil { if err != nil {
if ignoreError && pkg != nil { if ignoreError && pkg != nil {
glog.V(2).Infof("type checking encountered some errors in %q, but ignoring.\n", path) glog.V(2).Infof("type checking encountered some errors in %q, but ignoring.\n", pkgPath)
} else { } else {
return nil, err return nil, err
} }
} }
imports[path] = pkg
return pkg, nil return pkg, nil
} }
@ -318,85 +347,58 @@ type importAdapter struct {
} }
func (a importAdapter) Import(path string) (*tc.Package, error) { func (a importAdapter) Import(path string) (*tc.Package, error) {
return a.b.importer(a.b.pkgs, path) return a.b.importPackage(path, false)
} }
// typeCheckPackage will attempt to return the package even if there are some // typeCheckPackage will attempt to return the package even if there are some
// errors, so you may check whether the package is nil or not even if you get // errors, so you may check whether the package is nil or not even if you get
// an error. // an error.
func (b *Builder) typeCheckPackage(id string) (*tc.Package, error) { func (b *Builder) typeCheckPackage(pkgPath importPathString) (*tc.Package, error) {
if pkg, ok := b.pkgs[id]; ok { glog.V(5).Infof("typeCheckPackage %s", pkgPath)
if pkg, ok := b.typeCheckedPackages[pkgPath]; ok {
if pkg != nil { if pkg != nil {
glog.V(6).Infof("typeCheckPackage %s already done", pkgPath)
return pkg, nil return pkg, nil
} }
// We store a nil right before starting work on a package. So // We store a nil right before starting work on a package. So
// if we get here and it's present and nil, that means there's // if we get here and it's present and nil, that means there's
// another invocation of this function on the call stack // another invocation of this function on the call stack
// already processing this package. // already processing this package.
return nil, fmt.Errorf("circular dependency for %q", id) return nil, fmt.Errorf("circular dependency for %q", pkgPath)
} }
parsedFiles, ok := b.parsed[id] parsedFiles, ok := b.parsed[pkgPath]
if !ok { if !ok {
return nil, fmt.Errorf("No files for pkg %q: %#v", id, b.parsed) return nil, fmt.Errorf("No files for pkg %q: %#v", pkgPath, b.parsed)
} }
files := make([]*ast.File, len(parsedFiles)) files := make([]*ast.File, len(parsedFiles))
for i := range parsedFiles { for i := range parsedFiles {
files[i] = parsedFiles[i].file files[i] = parsedFiles[i].file
} }
b.pkgs[id] = nil b.typeCheckedPackages[pkgPath] = nil
c := tc.Config{ c := tc.Config{
IgnoreFuncBodies: true, IgnoreFuncBodies: true,
// Note that importAdater can call b.import which calls this // Note that importAdapter can call b.importPackage which calls this
// method. So there can't be cycles in the import graph. // method. So there can't be cycles in the import graph.
Importer: importAdapter{b}, Importer: importAdapter{b},
Error: func(err error) { Error: func(err error) {
glog.V(2).Infof("type checker error: %v\n", err) glog.V(2).Infof("type checker error: %v\n", err)
}, },
} }
pkg, err := c.Check(id, b.fset, files, nil) pkg, err := c.Check(string(pkgPath), b.fset, files, nil)
b.pkgs[id] = pkg // record the result whether or not there was an error b.typeCheckedPackages[pkgPath] = pkg // record the result whether or not there was an error
return pkg, err return pkg, err
} }
func (b *Builder) makeAllPackages() error {
// Take a snapshot to iterate, since this will recursively mutate b.parsed.
keys := []string{}
for id := range b.parsed {
keys = append(keys, id)
}
for _, id := range keys {
if _, err := b.makePackage(id); err != nil {
return err
}
}
return nil
}
func (b *Builder) makePackage(id string) (*tc.Package, error) {
if b.pkgs == nil {
b.pkgs = map[string]*tc.Package{}
}
// We have to check here even though we made a new one above,
// because typeCheckPackage follows the import graph, which may
// cause a package to be filled before we get to it in this
// loop.
if pkg, done := b.pkgs[id]; done {
return pkg, nil
}
return b.typeCheckPackage(id)
}
// FindPackages fetches a list of the user-imported packages. // FindPackages fetches a list of the user-imported packages.
// Note that you need to call b.FindTypes() first. // Note that you need to call b.FindTypes() first.
func (b *Builder) FindPackages() []string { func (b *Builder) FindPackages() []string {
result := []string{} result := []string{}
for pkgPath := range b.pkgs { for pkgPath := range b.typeCheckedPackages {
if b.userRequested[pkgPath] { if b.userRequested[pkgPath] {
// Since walkType is recursive, all types that are in packages that // Since walkType is recursive, all types that are in packages that
// were directly mentioned will be included. We don't need to // were directly mentioned will be included. We don't need to
// include all types in all transitive packages, though. // include all types in all transitive packages, though.
result = append(result, pkgPath) result = append(result, string(pkgPath))
} }
} }
return result return result
@ -405,13 +407,15 @@ func (b *Builder) FindPackages() []string {
// FindTypes finalizes the package imports, and searches through all the // FindTypes finalizes the package imports, and searches through all the
// packages for types. // packages for types.
func (b *Builder) FindTypes() (types.Universe, error) { func (b *Builder) FindTypes() (types.Universe, error) {
if err := b.makeAllPackages(); err != nil {
return nil, err
}
u := types.Universe{} u := types.Universe{}
// Take a snapshot of pkgs to iterate, since this will recursively mutate
// b.parsed.
keys := []importPathString{}
for pkgPath := range b.parsed { for pkgPath := range b.parsed {
keys = append(keys, pkgPath)
}
for _, pkgPath := range keys {
if err := b.findTypesIn(pkgPath, &u); err != nil { if err := b.findTypesIn(pkgPath, &u); err != nil {
return nil, err return nil, err
} }
@ -421,22 +425,28 @@ func (b *Builder) FindTypes() (types.Universe, error) {
// findTypesIn finalizes the package import and searches through the package // findTypesIn finalizes the package import and searches through the package
// for types. // for types.
func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error { func (b *Builder) findTypesIn(pkgPath importPathString, u *types.Universe) error {
pkg, err := b.makePackage(pkgPath) glog.V(5).Infof("findTypesIn %s", pkgPath)
if err != nil { pkg := b.typeCheckedPackages[pkgPath]
return err if pkg == nil {
return fmt.Errorf("findTypesIn(%s): package is not known", pkgPath)
} }
if !b.userRequested[pkgPath] { if !b.userRequested[pkgPath] {
// Since walkType is recursive, all types that the // Since walkType is recursive, all types that the
// packages they asked for depend on will be included. // packages they asked for depend on will be included.
// But we don't need to include all types in all // But we don't need to include all types in all
// *packages* they depend on. // *packages* they depend on.
glog.V(5).Infof("findTypesIn %s: package is not user requested", pkgPath)
return nil return nil
} }
// We're keeping this package. This call will create the record.
u.Package(string(pkgPath)).Name = pkg.Name()
u.Package(string(pkgPath)).Path = pkg.Path()
for _, f := range b.parsed[pkgPath] { for _, f := range b.parsed[pkgPath] {
if strings.HasSuffix(f.name, "/doc.go") { if strings.HasSuffix(f.name, "/doc.go") {
tp := u.Package(pkgPath) tp := u.Package(string(pkgPath))
for i := range f.file.Comments { for i := range f.file.Comments {
tp.Comments = append(tp.Comments, splitLines(f.file.Comments[i].Text())...) tp.Comments = append(tp.Comments, splitLines(f.file.Comments[i].Text())...)
} }
@ -480,12 +490,30 @@ func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error {
} }
} }
for p := range b.importGraph[pkgPath] { for p := range b.importGraph[pkgPath] {
u.AddImports(pkgPath, p) u.AddImports(string(pkgPath), p)
} }
u.Package(pkgPath).Name = pkg.Name()
return nil return nil
} }
func (b *Builder) importWithMode(dir string, mode build.ImportMode) (*build.Package, error) {
// This is a bit of a hack. The srcDir argument to Import() should
// properly be the dir of the file which depends on the package to be
// imported, so that vendoring can work properly and local paths can
// resolve. We assume that there is only one level of vendoring, and that
// the CWD is inside the GOPATH, so this should be safe. Nobody should be
// using local (relative) paths except on the CLI, so CWD is also
// sufficient.
cwd, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("unable to get current directory: %v", err)
}
buildPkg, err := b.context.Import(dir, cwd, mode)
if err != nil {
return nil, err
}
return buildPkg, nil
}
// if there's a comment on the line `lines` before pos, return its text, otherwise "". // if there's a comment on the line `lines` before pos, return its text, otherwise "".
func (b *Builder) priorCommentLines(pos token.Pos, lines int) *ast.CommentGroup { func (b *Builder) priorCommentLines(pos token.Pos, lines int) *ast.CommentGroup {
position := b.fset.Position(pos) position := b.fset.Position(pos)