Commit f86447c9 authored by deads2k's avatar deads2k

files regenerated after update

parent ae2d4b3c
...@@ -47,14 +47,13 @@ func DeepCopy_v1alpha1_APIService(in interface{}, out interface{}, c *conversion ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -47,14 +47,13 @@ func DeepCopy_apiregistration_APIService(in interface{}, out interface{}, c *con ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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{}, ...@@ -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
} }
} }
...@@ -33,7 +33,7 @@ import ( ...@@ -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)
} }
} }
......
...@@ -20,6 +20,7 @@ go_library( ...@@ -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 = [
......
...@@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Clo ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
} }
} }
// +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
}
...@@ -50,7 +50,7 @@ func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -17,6 +17,7 @@ go_library( ...@@ -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 = [
......
...@@ -43,8 +43,7 @@ func DeepCopy_v1beta1_Policy(in interface{}, out interface{}, c *conversion.Clon ...@@ -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. ...@@ -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
} }
} }
// +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
}
...@@ -47,7 +47,7 @@ func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -47,7 +47,7 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -20,6 +20,7 @@ go_library( ...@@ -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 = [
......
...@@ -46,11 +46,10 @@ func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
// +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
}
...@@ -46,11 +46,10 @@ func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *con ...@@ -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 ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -20,6 +20,7 @@ go_library( ...@@ -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 = [
......
...@@ -50,14 +50,13 @@ func DeepCopy_v1beta1_LocalSubjectAccessReview(in interface{}, out interface{}, ...@@ -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 * ...@@ -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 ...@@ -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 ...@@ -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{ ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
} }
} }
// +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
}
...@@ -50,14 +50,13 @@ func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interfa ...@@ -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{ ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -51,9 +51,7 @@ func DeepCopy_v1_CrossVersionObjectReference(in interface{}, out interface{}, c ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -51,9 +51,7 @@ func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interf ...@@ -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{ ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -48,7 +48,7 @@ func DeepCopy_v1_Job(in interface{}, out interface{}, c *conversion.Cloner) erro ...@@ -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 ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -54,7 +54,7 @@ func DeepCopy_v2alpha1_CronJob(in interface{}, out interface{}, c *conversion.Cl ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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. ...@@ -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. ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -54,7 +54,7 @@ func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Clone ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -19,6 +19,7 @@ go_library( ...@@ -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 = [
......
...@@ -47,7 +47,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequest(in interface{}, out interface{} ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
// +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
}
...@@ -47,7 +47,7 @@ func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interfa ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -18,6 +18,7 @@ go_library( ...@@ -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 = [
......
...@@ -46,14 +46,13 @@ func DeepCopy_v1alpha1_ImageReview(in interface{}, out interface{}, c *conversio ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
// +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
}
...@@ -46,14 +46,13 @@ func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conver ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 * ...@@ -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
} }
} }
...@@ -24,12 +24,14 @@ go_library( ...@@ -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",
......
// +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
}
...@@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cl ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
} }
} }
...@@ -48,7 +48,7 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
} }
} }
...@@ -53,7 +53,7 @@ func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversio ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -53,7 +53,7 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
...@@ -18,6 +18,7 @@ go_library( ...@@ -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 = [
......
...@@ -44,19 +44,16 @@ func DeepCopy_v1beta1_StorageClass(in interface{}, out interface{}, c *conversio ...@@ -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 ...@@ -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 ...@@ -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
} }
......
// +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
}
...@@ -44,19 +44,16 @@ func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversio ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -22,25 +22,35 @@ package runtime ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment