Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7104be87
Unverified
Commit
7104be87
authored
Apr 28, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate conversions without reflection defaulting
parent
123f6984
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
561 deletions
+11
-561
conversion_generated.go
federation/apis/federation/v1alpha1/conversion_generated.go
+0
-37
conversion_generated.go
pkg/api/v1/conversion_generated.go
+0
-0
conversion_generated.go
pkg/apis/apps/v1alpha1/conversion_generated.go
+1
-19
conversion_generated.go
pkg/apis/authorization/v1beta1/conversion_generated.go
+0
-49
conversion_generated.go
pkg/apis/autoscaling/v1/conversion_generated.go
+1
-37
conversion_generated.go
pkg/apis/batch/v1/conversion_generated.go
+1
-43
conversion_generated.go
pkg/apis/componentconfig/v1alpha1/conversion_generated.go
+3
-19
conversion_generated.go
pkg/apis/extensions/v1beta1/conversion_generated.go
+5
-325
conversion_generated.go
pkg/apis/metrics/v1alpha1/conversion_generated.go
+0
-13
conversion_generated.go
pkg/apis/policy/v1alpha1/conversion_generated.go
+0
-19
No files found.
federation/apis/federation/v1alpha1/conversion_generated.go
View file @
7104be87
...
...
@@ -27,7 +27,6 @@ import (
unversioned
"k8s.io/kubernetes/pkg/api/unversioned"
v1
"k8s.io/kubernetes/pkg/api/v1"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -51,9 +50,6 @@ func init() {
}
func
autoConvert_v1alpha1_Cluster_To_federation_Cluster
(
in
*
Cluster
,
out
*
federation
.
Cluster
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Cluster
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -75,9 +71,6 @@ func Convert_v1alpha1_Cluster_To_federation_Cluster(in *Cluster, out *federation
}
func
autoConvert_federation_Cluster_To_v1alpha1_Cluster
(
in
*
federation
.
Cluster
,
out
*
Cluster
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
Cluster
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -99,9 +92,6 @@ func Convert_federation_Cluster_To_v1alpha1_Cluster(in *federation.Cluster, out
}
func
autoConvert_v1alpha1_ClusterCondition_To_federation_ClusterCondition
(
in
*
ClusterCondition
,
out
*
federation
.
ClusterCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ClusterCondition
))(
in
)
}
out
.
Type
=
federation
.
ClusterConditionType
(
in
.
Type
)
out
.
Status
=
api
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -120,9 +110,6 @@ func Convert_v1alpha1_ClusterCondition_To_federation_ClusterCondition(in *Cluste
}
func
autoConvert_federation_ClusterCondition_To_v1alpha1_ClusterCondition
(
in
*
federation
.
ClusterCondition
,
out
*
ClusterCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
ClusterCondition
))(
in
)
}
out
.
Type
=
ClusterConditionType
(
in
.
Type
)
out
.
Status
=
v1
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -141,9 +128,6 @@ func Convert_federation_ClusterCondition_To_v1alpha1_ClusterCondition(in *federa
}
func
autoConvert_v1alpha1_ClusterList_To_federation_ClusterList
(
in
*
ClusterList
,
out
*
federation
.
ClusterList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ClusterList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -169,9 +153,6 @@ func Convert_v1alpha1_ClusterList_To_federation_ClusterList(in *ClusterList, out
}
func
autoConvert_federation_ClusterList_To_v1alpha1_ClusterList
(
in
*
federation
.
ClusterList
,
out
*
ClusterList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
ClusterList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -197,9 +178,6 @@ func Convert_federation_ClusterList_To_v1alpha1_ClusterList(in *federation.Clust
}
func
autoConvert_v1alpha1_ClusterMeta_To_federation_ClusterMeta
(
in
*
ClusterMeta
,
out
*
federation
.
ClusterMeta
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ClusterMeta
))(
in
)
}
out
.
Version
=
in
.
Version
return
nil
}
...
...
@@ -209,9 +187,6 @@ func Convert_v1alpha1_ClusterMeta_To_federation_ClusterMeta(in *ClusterMeta, out
}
func
autoConvert_federation_ClusterMeta_To_v1alpha1_ClusterMeta
(
in
*
federation
.
ClusterMeta
,
out
*
ClusterMeta
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
ClusterMeta
))(
in
)
}
out
.
Version
=
in
.
Version
return
nil
}
...
...
@@ -221,9 +196,6 @@ func Convert_federation_ClusterMeta_To_v1alpha1_ClusterMeta(in *federation.Clust
}
func
autoConvert_v1alpha1_ClusterSpec_To_federation_ClusterSpec
(
in
*
ClusterSpec
,
out
*
federation
.
ClusterSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ClusterSpec
))(
in
)
}
if
in
.
ServerAddressByClientCIDRs
!=
nil
{
in
,
out
:=
&
in
.
ServerAddressByClientCIDRs
,
&
out
.
ServerAddressByClientCIDRs
*
out
=
make
([]
unversioned
.
ServerAddressByClientCIDR
,
len
(
*
in
))
...
...
@@ -245,9 +217,6 @@ func Convert_v1alpha1_ClusterSpec_To_federation_ClusterSpec(in *ClusterSpec, out
}
func
autoConvert_federation_ClusterSpec_To_v1alpha1_ClusterSpec
(
in
*
federation
.
ClusterSpec
,
out
*
ClusterSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
ClusterSpec
))(
in
)
}
if
in
.
ServerAddressByClientCIDRs
!=
nil
{
in
,
out
:=
&
in
.
ServerAddressByClientCIDRs
,
&
out
.
ServerAddressByClientCIDRs
*
out
=
make
([]
unversioned
.
ServerAddressByClientCIDR
,
len
(
*
in
))
...
...
@@ -269,9 +238,6 @@ func Convert_federation_ClusterSpec_To_v1alpha1_ClusterSpec(in *federation.Clust
}
func
autoConvert_v1alpha1_ClusterStatus_To_federation_ClusterStatus
(
in
*
ClusterStatus
,
out
*
federation
.
ClusterStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ClusterStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
federation
.
ClusterCondition
,
len
(
*
in
))
...
...
@@ -300,9 +266,6 @@ func Convert_v1alpha1_ClusterStatus_To_federation_ClusterStatus(in *ClusterStatu
}
func
autoConvert_federation_ClusterStatus_To_v1alpha1_ClusterStatus
(
in
*
federation
.
ClusterStatus
,
out
*
ClusterStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
federation
.
ClusterStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
ClusterCondition
,
len
(
*
in
))
...
...
pkg/api/v1/conversion_generated.go
View file @
7104be87
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pkg/apis/apps/v1alpha1/conversion_generated.go
View file @
7104be87
...
...
@@ -24,7 +24,6 @@ import (
api
"k8s.io/kubernetes/pkg/api"
apps
"k8s.io/kubernetes/pkg/apis/apps"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -44,9 +43,7 @@ func init() {
}
func
autoConvert_v1alpha1_PetSet_To_apps_PetSet
(
in
*
PetSet
,
out
*
apps
.
PetSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PetSet
))(
in
)
}
SetDefaults_PetSet
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -68,9 +65,6 @@ func Convert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conv
}
func
autoConvert_apps_PetSet_To_v1alpha1_PetSet
(
in
*
apps
.
PetSet
,
out
*
PetSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
apps
.
PetSet
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -92,9 +86,6 @@ func Convert_apps_PetSet_To_v1alpha1_PetSet(in *apps.PetSet, out *PetSet, s conv
}
func
autoConvert_v1alpha1_PetSetList_To_apps_PetSetList
(
in
*
PetSetList
,
out
*
apps
.
PetSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PetSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -120,9 +111,6 @@ func Convert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *apps.Pe
}
func
autoConvert_apps_PetSetList_To_v1alpha1_PetSetList
(
in
*
apps
.
PetSetList
,
out
*
PetSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
apps
.
PetSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -148,9 +136,6 @@ func Convert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out *Pe
}
func
autoConvert_v1alpha1_PetSetStatus_To_apps_PetSetStatus
(
in
*
PetSetStatus
,
out
*
apps
.
PetSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PetSetStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
@@ -167,9 +152,6 @@ func Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in *PetSetStatus, out *a
}
func
autoConvert_apps_PetSetStatus_To_v1alpha1_PetSetStatus
(
in
*
apps
.
PetSetStatus
,
out
*
PetSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
apps
.
PetSetStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
pkg/apis/authorization/v1beta1/conversion_generated.go
View file @
7104be87
...
...
@@ -24,7 +24,6 @@ import (
api
"k8s.io/kubernetes/pkg/api"
authorization
"k8s.io/kubernetes/pkg/apis/authorization"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -52,9 +51,6 @@ func init() {
}
func
autoConvert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAccessReview
(
in
*
LocalSubjectAccessReview
,
out
*
authorization
.
LocalSubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LocalSubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -72,9 +68,6 @@ func Convert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAcces
}
func
autoConvert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAccessReview
(
in
*
authorization
.
LocalSubjectAccessReview
,
out
*
LocalSubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
LocalSubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -92,9 +85,6 @@ func Convert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAcces
}
func
autoConvert_v1beta1_NonResourceAttributes_To_authorization_NonResourceAttributes
(
in
*
NonResourceAttributes
,
out
*
authorization
.
NonResourceAttributes
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
NonResourceAttributes
))(
in
)
}
out
.
Path
=
in
.
Path
out
.
Verb
=
in
.
Verb
return
nil
...
...
@@ -105,9 +95,6 @@ func Convert_v1beta1_NonResourceAttributes_To_authorization_NonResourceAttribute
}
func
autoConvert_authorization_NonResourceAttributes_To_v1beta1_NonResourceAttributes
(
in
*
authorization
.
NonResourceAttributes
,
out
*
NonResourceAttributes
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
NonResourceAttributes
))(
in
)
}
out
.
Path
=
in
.
Path
out
.
Verb
=
in
.
Verb
return
nil
...
...
@@ -118,9 +105,6 @@ func Convert_authorization_NonResourceAttributes_To_v1beta1_NonResourceAttribute
}
func
autoConvert_v1beta1_ResourceAttributes_To_authorization_ResourceAttributes
(
in
*
ResourceAttributes
,
out
*
authorization
.
ResourceAttributes
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ResourceAttributes
))(
in
)
}
out
.
Namespace
=
in
.
Namespace
out
.
Verb
=
in
.
Verb
out
.
Group
=
in
.
Group
...
...
@@ -136,9 +120,6 @@ func Convert_v1beta1_ResourceAttributes_To_authorization_ResourceAttributes(in *
}
func
autoConvert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes
(
in
*
authorization
.
ResourceAttributes
,
out
*
ResourceAttributes
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
ResourceAttributes
))(
in
)
}
out
.
Namespace
=
in
.
Namespace
out
.
Verb
=
in
.
Verb
out
.
Group
=
in
.
Group
...
...
@@ -154,9 +135,6 @@ func Convert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes(in *
}
func
autoConvert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessReview
(
in
*
SelfSubjectAccessReview
,
out
*
authorization
.
SelfSubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SelfSubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -174,9 +152,6 @@ func Convert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessR
}
func
autoConvert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessReview
(
in
*
authorization
.
SelfSubjectAccessReview
,
out
*
SelfSubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
SelfSubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -194,9 +169,6 @@ func Convert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessR
}
func
autoConvert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAccessReviewSpec
(
in
*
SelfSubjectAccessReviewSpec
,
out
*
authorization
.
SelfSubjectAccessReviewSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SelfSubjectAccessReviewSpec
))(
in
)
}
if
in
.
ResourceAttributes
!=
nil
{
in
,
out
:=
&
in
.
ResourceAttributes
,
&
out
.
ResourceAttributes
*
out
=
new
(
authorization
.
ResourceAttributes
)
...
...
@@ -223,9 +195,6 @@ func Convert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAcc
}
func
autoConvert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAccessReviewSpec
(
in
*
authorization
.
SelfSubjectAccessReviewSpec
,
out
*
SelfSubjectAccessReviewSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
SelfSubjectAccessReviewSpec
))(
in
)
}
if
in
.
ResourceAttributes
!=
nil
{
in
,
out
:=
&
in
.
ResourceAttributes
,
&
out
.
ResourceAttributes
*
out
=
new
(
ResourceAttributes
)
...
...
@@ -252,9 +221,6 @@ func Convert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAcc
}
func
autoConvert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview
(
in
*
SubjectAccessReview
,
out
*
authorization
.
SubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -272,9 +238,6 @@ func Convert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in
}
func
autoConvert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview
(
in
*
authorization
.
SubjectAccessReview
,
out
*
SubjectAccessReview
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
SubjectAccessReview
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -292,9 +255,6 @@ func Convert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview(in
}
func
autoConvert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec
(
in
*
SubjectAccessReviewSpec
,
out
*
authorization
.
SubjectAccessReviewSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SubjectAccessReviewSpec
))(
in
)
}
if
in
.
ResourceAttributes
!=
nil
{
in
,
out
:=
&
in
.
ResourceAttributes
,
&
out
.
ResourceAttributes
*
out
=
new
(
authorization
.
ResourceAttributes
)
...
...
@@ -343,9 +303,6 @@ func Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessRevie
}
func
autoConvert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec
(
in
*
authorization
.
SubjectAccessReviewSpec
,
out
*
SubjectAccessReviewSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
SubjectAccessReviewSpec
))(
in
)
}
if
in
.
ResourceAttributes
!=
nil
{
in
,
out
:=
&
in
.
ResourceAttributes
,
&
out
.
ResourceAttributes
*
out
=
new
(
ResourceAttributes
)
...
...
@@ -394,9 +351,6 @@ func Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessRevie
}
func
autoConvert_v1beta1_SubjectAccessReviewStatus_To_authorization_SubjectAccessReviewStatus
(
in
*
SubjectAccessReviewStatus
,
out
*
authorization
.
SubjectAccessReviewStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SubjectAccessReviewStatus
))(
in
)
}
out
.
Allowed
=
in
.
Allowed
out
.
Reason
=
in
.
Reason
return
nil
...
...
@@ -407,9 +361,6 @@ func Convert_v1beta1_SubjectAccessReviewStatus_To_authorization_SubjectAccessRev
}
func
autoConvert_authorization_SubjectAccessReviewStatus_To_v1beta1_SubjectAccessReviewStatus
(
in
*
authorization
.
SubjectAccessReviewStatus
,
out
*
SubjectAccessReviewStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
authorization
.
SubjectAccessReviewStatus
))(
in
)
}
out
.
Allowed
=
in
.
Allowed
out
.
Reason
=
in
.
Reason
return
nil
...
...
pkg/apis/autoscaling/v1/conversion_generated.go
View file @
7104be87
...
...
@@ -26,7 +26,6 @@ import (
autoscaling
"k8s.io/kubernetes/pkg/apis/autoscaling"
extensions
"k8s.io/kubernetes/pkg/apis/extensions"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -52,9 +51,7 @@ func init() {
}
func
autoConvert_v1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscaler
(
in
*
HorizontalPodAutoscaler
,
out
*
extensions
.
HorizontalPodAutoscaler
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscaler
))(
in
)
}
SetDefaults_HorizontalPodAutoscaler
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -76,9 +73,6 @@ func Convert_v1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscaler(in
}
func
autoConvert_extensions_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler
(
in
*
extensions
.
HorizontalPodAutoscaler
,
out
*
HorizontalPodAutoscaler
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscaler
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -100,9 +94,6 @@ func Convert_extensions_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in
}
func
autoConvert_v1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAutoscalerList
(
in
*
HorizontalPodAutoscalerList
,
out
*
extensions
.
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscalerList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -128,9 +119,6 @@ func Convert_v1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAutoscale
}
func
autoConvert_extensions_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList
(
in
*
extensions
.
HorizontalPodAutoscalerList
,
out
*
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscalerList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -156,9 +144,6 @@ func Convert_extensions_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscale
}
func
autoConvert_v1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAutoscalerStatus
(
in
*
HorizontalPodAutoscalerStatus
,
out
*
extensions
.
HorizontalPodAutoscalerStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscalerStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
@@ -192,9 +177,6 @@ func Convert_v1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAutosca
}
func
autoConvert_extensions_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus
(
in
*
extensions
.
HorizontalPodAutoscalerStatus
,
out
*
HorizontalPodAutoscalerStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscalerStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
@@ -228,9 +210,6 @@ func Convert_extensions_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutosca
}
func
autoConvert_v1_Scale_To_autoscaling_Scale
(
in
*
Scale
,
out
*
autoscaling
.
Scale
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Scale
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -252,9 +231,6 @@ func Convert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s
}
func
autoConvert_autoscaling_Scale_To_v1_Scale
(
in
*
autoscaling
.
Scale
,
out
*
Scale
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
autoscaling
.
Scale
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -276,9 +252,6 @@ func Convert_autoscaling_Scale_To_v1_Scale(in *autoscaling.Scale, out *Scale, s
}
func
autoConvert_v1_ScaleSpec_To_autoscaling_ScaleSpec
(
in
*
ScaleSpec
,
out
*
autoscaling
.
ScaleSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ScaleSpec
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
return
nil
}
...
...
@@ -288,9 +261,6 @@ func Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec(in *ScaleSpec, out *autoscali
}
func
autoConvert_autoscaling_ScaleSpec_To_v1_ScaleSpec
(
in
*
autoscaling
.
ScaleSpec
,
out
*
ScaleSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
autoscaling
.
ScaleSpec
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
return
nil
}
...
...
@@ -300,9 +270,6 @@ func Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec(in *autoscaling.ScaleSpec, ou
}
func
autoConvert_v1_ScaleStatus_To_autoscaling_ScaleStatus
(
in
*
ScaleStatus
,
out
*
autoscaling
.
ScaleStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ScaleStatus
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
out
.
Selector
=
in
.
Selector
return
nil
...
...
@@ -313,9 +280,6 @@ func Convert_v1_ScaleStatus_To_autoscaling_ScaleStatus(in *ScaleStatus, out *aut
}
func
autoConvert_autoscaling_ScaleStatus_To_v1_ScaleStatus
(
in
*
autoscaling
.
ScaleStatus
,
out
*
ScaleStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
autoscaling
.
ScaleStatus
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
out
.
Selector
=
in
.
Selector
return
nil
...
...
pkg/apis/batch/v1/conversion_generated.go
View file @
7104be87
...
...
@@ -26,7 +26,6 @@ import (
api_v1
"k8s.io/kubernetes/pkg/api/v1"
batch
"k8s.io/kubernetes/pkg/apis/batch"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -52,9 +51,7 @@ func init() {
}
func
autoConvert_v1_Job_To_batch_Job
(
in
*
Job
,
out
*
batch
.
Job
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Job
))(
in
)
}
SetDefaults_Job
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -76,9 +73,6 @@ func Convert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) er
}
func
autoConvert_batch_Job_To_v1_Job
(
in
*
batch
.
Job
,
out
*
Job
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
Job
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -100,9 +94,6 @@ func Convert_batch_Job_To_v1_Job(in *batch.Job, out *Job, s conversion.Scope) er
}
func
autoConvert_v1_JobCondition_To_batch_JobCondition
(
in
*
JobCondition
,
out
*
batch
.
JobCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobCondition
))(
in
)
}
out
.
Type
=
batch
.
JobConditionType
(
in
.
Type
)
out
.
Status
=
api
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -121,9 +112,6 @@ func Convert_v1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.
}
func
autoConvert_batch_JobCondition_To_v1_JobCondition
(
in
*
batch
.
JobCondition
,
out
*
JobCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobCondition
))(
in
)
}
out
.
Type
=
JobConditionType
(
in
.
Type
)
out
.
Status
=
api_v1
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -142,9 +130,6 @@ func Convert_batch_JobCondition_To_v1_JobCondition(in *batch.JobCondition, out *
}
func
autoConvert_v1_JobList_To_batch_JobList
(
in
*
JobList
,
out
*
batch
.
JobList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -170,9 +155,6 @@ func Convert_v1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conv
}
func
autoConvert_batch_JobList_To_v1_JobList
(
in
*
batch
.
JobList
,
out
*
JobList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -198,9 +180,6 @@ func Convert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s conv
}
func
autoConvert_v1_JobSpec_To_batch_JobSpec
(
in
*
JobSpec
,
out
*
batch
.
JobSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobSpec
))(
in
)
}
if
in
.
Parallelism
!=
nil
{
in
,
out
:=
&
in
.
Parallelism
,
&
out
.
Parallelism
*
out
=
new
(
int32
)
...
...
@@ -246,9 +225,6 @@ func autoConvert_v1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s
}
func
autoConvert_batch_JobSpec_To_v1_JobSpec
(
in
*
batch
.
JobSpec
,
out
*
JobSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobSpec
))(
in
)
}
if
in
.
Parallelism
!=
nil
{
in
,
out
:=
&
in
.
Parallelism
,
&
out
.
Parallelism
*
out
=
new
(
int32
)
...
...
@@ -294,9 +270,6 @@ func autoConvert_batch_JobSpec_To_v1_JobSpec(in *batch.JobSpec, out *JobSpec, s
}
func
autoConvert_v1_JobStatus_To_batch_JobStatus
(
in
*
JobStatus
,
out
*
batch
.
JobStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
batch
.
JobCondition
,
len
(
*
in
))
...
...
@@ -337,9 +310,6 @@ func Convert_v1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus
}
func
autoConvert_batch_JobStatus_To_v1_JobStatus
(
in
*
batch
.
JobStatus
,
out
*
JobStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
JobCondition
,
len
(
*
in
))
...
...
@@ -380,9 +350,6 @@ func Convert_batch_JobStatus_To_v1_JobStatus(in *batch.JobStatus, out *JobStatus
}
func
autoConvert_v1_LabelSelector_To_unversioned_LabelSelector
(
in
*
LabelSelector
,
out
*
unversioned
.
LabelSelector
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LabelSelector
))(
in
)
}
if
in
.
MatchLabels
!=
nil
{
in
,
out
:=
&
in
.
MatchLabels
,
&
out
.
MatchLabels
*
out
=
make
(
map
[
string
]
string
,
len
(
*
in
))
...
...
@@ -411,9 +378,6 @@ func Convert_v1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, ou
}
func
autoConvert_unversioned_LabelSelector_To_v1_LabelSelector
(
in
*
unversioned
.
LabelSelector
,
out
*
LabelSelector
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
unversioned
.
LabelSelector
))(
in
)
}
if
in
.
MatchLabels
!=
nil
{
in
,
out
:=
&
in
.
MatchLabels
,
&
out
.
MatchLabels
*
out
=
make
(
map
[
string
]
string
,
len
(
*
in
))
...
...
@@ -442,9 +406,6 @@ func Convert_unversioned_LabelSelector_To_v1_LabelSelector(in *unversioned.Label
}
func
autoConvert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement
(
in
*
LabelSelectorRequirement
,
out
*
unversioned
.
LabelSelectorRequirement
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LabelSelectorRequirement
))(
in
)
}
out
.
Key
=
in
.
Key
out
.
Operator
=
unversioned
.
LabelSelectorOperator
(
in
.
Operator
)
if
in
.
Values
!=
nil
{
...
...
@@ -462,9 +423,6 @@ func Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement
}
func
autoConvert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement
(
in
*
unversioned
.
LabelSelectorRequirement
,
out
*
LabelSelectorRequirement
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
unversioned
.
LabelSelectorRequirement
))(
in
)
}
out
.
Key
=
in
.
Key
out
.
Operator
=
LabelSelectorOperator
(
in
.
Operator
)
if
in
.
Values
!=
nil
{
...
...
pkg/apis/componentconfig/v1alpha1/conversion_generated.go
View file @
7104be87
...
...
@@ -24,7 +24,6 @@ import (
api
"k8s.io/kubernetes/pkg/api"
componentconfig
"k8s.io/kubernetes/pkg/apis/componentconfig"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -42,9 +41,7 @@ func init() {
}
func
autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration
(
in
*
KubeProxyConfiguration
,
out
*
componentconfig
.
KubeProxyConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
KubeProxyConfiguration
))(
in
)
}
SetDefaults_KubeProxyConfiguration
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -94,9 +91,6 @@ func Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfigu
}
func
autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration
(
in
*
componentconfig
.
KubeProxyConfiguration
,
out
*
KubeProxyConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
componentconfig
.
KubeProxyConfiguration
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -146,9 +140,7 @@ func Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfigu
}
func
autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration
(
in
*
KubeSchedulerConfiguration
,
out
*
componentconfig
.
KubeSchedulerConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
KubeSchedulerConfiguration
))(
in
)
}
SetDefaults_KubeSchedulerConfiguration
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -176,9 +168,6 @@ func Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedule
}
func
autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration
(
in
*
componentconfig
.
KubeSchedulerConfiguration
,
out
*
KubeSchedulerConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
componentconfig
.
KubeSchedulerConfiguration
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -206,9 +195,7 @@ func Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedule
}
func
autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration
(
in
*
LeaderElectionConfiguration
,
out
*
componentconfig
.
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LeaderElectionConfiguration
))(
in
)
}
SetDefaults_LeaderElectionConfiguration
(
in
)
if
err
:=
api
.
Convert_Pointer_bool_To_bool
(
&
in
.
LeaderElect
,
&
out
.
LeaderElect
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -232,9 +219,6 @@ func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElect
}
func
autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration
(
in
*
componentconfig
.
LeaderElectionConfiguration
,
out
*
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
componentconfig
.
LeaderElectionConfiguration
))(
in
)
}
if
err
:=
api
.
Convert_bool_To_Pointer_bool
(
&
in
.
LeaderElect
,
&
out
.
LeaderElect
,
s
);
err
!=
nil
{
return
err
}
...
...
pkg/apis/extensions/v1beta1/conversion_generated.go
View file @
7104be87
...
...
@@ -27,7 +27,6 @@ import (
batch
"k8s.io/kubernetes/pkg/apis/batch"
extensions
"k8s.io/kubernetes/pkg/apis/extensions"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -157,9 +156,6 @@ func init() {
}
func
autoConvert_v1beta1_APIVersion_To_extensions_APIVersion
(
in
*
APIVersion
,
out
*
extensions
.
APIVersion
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
APIVersion
))(
in
)
}
out
.
Name
=
in
.
Name
return
nil
}
...
...
@@ -169,9 +165,6 @@ func Convert_v1beta1_APIVersion_To_extensions_APIVersion(in *APIVersion, out *ex
}
func
autoConvert_extensions_APIVersion_To_v1beta1_APIVersion
(
in
*
extensions
.
APIVersion
,
out
*
APIVersion
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
APIVersion
))(
in
)
}
out
.
Name
=
in
.
Name
return
nil
}
...
...
@@ -181,9 +174,6 @@ func Convert_extensions_APIVersion_To_v1beta1_APIVersion(in *extensions.APIVersi
}
func
autoConvert_v1beta1_CPUTargetUtilization_To_extensions_CPUTargetUtilization
(
in
*
CPUTargetUtilization
,
out
*
extensions
.
CPUTargetUtilization
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
CPUTargetUtilization
))(
in
)
}
out
.
TargetPercentage
=
in
.
TargetPercentage
return
nil
}
...
...
@@ -193,9 +183,6 @@ func Convert_v1beta1_CPUTargetUtilization_To_extensions_CPUTargetUtilization(in
}
func
autoConvert_extensions_CPUTargetUtilization_To_v1beta1_CPUTargetUtilization
(
in
*
extensions
.
CPUTargetUtilization
,
out
*
CPUTargetUtilization
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
CPUTargetUtilization
))(
in
)
}
out
.
TargetPercentage
=
in
.
TargetPercentage
return
nil
}
...
...
@@ -205,9 +192,6 @@ func Convert_extensions_CPUTargetUtilization_To_v1beta1_CPUTargetUtilization(in
}
func
autoConvert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrentStatus
(
in
*
CustomMetricCurrentStatus
,
out
*
extensions
.
CustomMetricCurrentStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
CustomMetricCurrentStatus
))(
in
)
}
out
.
Name
=
in
.
Name
if
err
:=
api
.
Convert_resource_Quantity_To_resource_Quantity
(
&
in
.
CurrentValue
,
&
out
.
CurrentValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -220,9 +204,6 @@ func Convert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrent
}
func
autoConvert_extensions_CustomMetricCurrentStatus_To_v1beta1_CustomMetricCurrentStatus
(
in
*
extensions
.
CustomMetricCurrentStatus
,
out
*
CustomMetricCurrentStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
CustomMetricCurrentStatus
))(
in
)
}
out
.
Name
=
in
.
Name
if
err
:=
api
.
Convert_resource_Quantity_To_resource_Quantity
(
&
in
.
CurrentValue
,
&
out
.
CurrentValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -235,9 +216,6 @@ func Convert_extensions_CustomMetricCurrentStatus_To_v1beta1_CustomMetricCurrent
}
func
autoConvert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCurrentStatusList
(
in
*
CustomMetricCurrentStatusList
,
out
*
extensions
.
CustomMetricCurrentStatusList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
CustomMetricCurrentStatusList
))(
in
)
}
if
in
.
Items
!=
nil
{
in
,
out
:=
&
in
.
Items
,
&
out
.
Items
*
out
=
make
([]
extensions
.
CustomMetricCurrentStatus
,
len
(
*
in
))
...
...
@@ -257,9 +235,6 @@ func Convert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCur
}
func
autoConvert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCurrentStatusList
(
in
*
extensions
.
CustomMetricCurrentStatusList
,
out
*
CustomMetricCurrentStatusList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
CustomMetricCurrentStatusList
))(
in
)
}
if
in
.
Items
!=
nil
{
in
,
out
:=
&
in
.
Items
,
&
out
.
Items
*
out
=
make
([]
CustomMetricCurrentStatus
,
len
(
*
in
))
...
...
@@ -279,9 +254,6 @@ func Convert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCur
}
func
autoConvert_v1beta1_CustomMetricTarget_To_extensions_CustomMetricTarget
(
in
*
CustomMetricTarget
,
out
*
extensions
.
CustomMetricTarget
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
CustomMetricTarget
))(
in
)
}
out
.
Name
=
in
.
Name
if
err
:=
api
.
Convert_resource_Quantity_To_resource_Quantity
(
&
in
.
TargetValue
,
&
out
.
TargetValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -294,9 +266,6 @@ func Convert_v1beta1_CustomMetricTarget_To_extensions_CustomMetricTarget(in *Cus
}
func
autoConvert_extensions_CustomMetricTarget_To_v1beta1_CustomMetricTarget
(
in
*
extensions
.
CustomMetricTarget
,
out
*
CustomMetricTarget
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
CustomMetricTarget
))(
in
)
}
out
.
Name
=
in
.
Name
if
err
:=
api
.
Convert_resource_Quantity_To_resource_Quantity
(
&
in
.
TargetValue
,
&
out
.
TargetValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -309,9 +278,6 @@ func Convert_extensions_CustomMetricTarget_To_v1beta1_CustomMetricTarget(in *ext
}
func
autoConvert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList
(
in
*
CustomMetricTargetList
,
out
*
extensions
.
CustomMetricTargetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
CustomMetricTargetList
))(
in
)
}
if
in
.
Items
!=
nil
{
in
,
out
:=
&
in
.
Items
,
&
out
.
Items
*
out
=
make
([]
extensions
.
CustomMetricTarget
,
len
(
*
in
))
...
...
@@ -331,9 +297,6 @@ func Convert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList
}
func
autoConvert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList
(
in
*
extensions
.
CustomMetricTargetList
,
out
*
CustomMetricTargetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
CustomMetricTargetList
))(
in
)
}
if
in
.
Items
!=
nil
{
in
,
out
:=
&
in
.
Items
,
&
out
.
Items
*
out
=
make
([]
CustomMetricTarget
,
len
(
*
in
))
...
...
@@ -353,9 +316,7 @@ func Convert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList
}
func
autoConvert_v1beta1_DaemonSet_To_extensions_DaemonSet
(
in
*
DaemonSet
,
out
*
extensions
.
DaemonSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DaemonSet
))(
in
)
}
SetDefaults_DaemonSet
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -377,9 +338,6 @@ func Convert_v1beta1_DaemonSet_To_extensions_DaemonSet(in *DaemonSet, out *exten
}
func
autoConvert_extensions_DaemonSet_To_v1beta1_DaemonSet
(
in
*
extensions
.
DaemonSet
,
out
*
DaemonSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DaemonSet
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -401,9 +359,6 @@ func Convert_extensions_DaemonSet_To_v1beta1_DaemonSet(in *extensions.DaemonSet,
}
func
autoConvert_v1beta1_DaemonSetList_To_extensions_DaemonSetList
(
in
*
DaemonSetList
,
out
*
extensions
.
DaemonSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DaemonSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -429,9 +384,6 @@ func Convert_v1beta1_DaemonSetList_To_extensions_DaemonSetList(in *DaemonSetList
}
func
autoConvert_extensions_DaemonSetList_To_v1beta1_DaemonSetList
(
in
*
extensions
.
DaemonSetList
,
out
*
DaemonSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DaemonSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -457,9 +409,6 @@ func Convert_extensions_DaemonSetList_To_v1beta1_DaemonSetList(in *extensions.Da
}
func
autoConvert_v1beta1_DaemonSetSpec_To_extensions_DaemonSetSpec
(
in
*
DaemonSetSpec
,
out
*
extensions
.
DaemonSetSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DaemonSetSpec
))(
in
)
}
if
in
.
Selector
!=
nil
{
in
,
out
:=
&
in
.
Selector
,
&
out
.
Selector
*
out
=
new
(
unversioned
.
LabelSelector
)
...
...
@@ -481,9 +430,6 @@ func Convert_v1beta1_DaemonSetSpec_To_extensions_DaemonSetSpec(in *DaemonSetSpec
}
func
autoConvert_extensions_DaemonSetSpec_To_v1beta1_DaemonSetSpec
(
in
*
extensions
.
DaemonSetSpec
,
out
*
DaemonSetSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DaemonSetSpec
))(
in
)
}
if
in
.
Selector
!=
nil
{
in
,
out
:=
&
in
.
Selector
,
&
out
.
Selector
*
out
=
new
(
LabelSelector
)
...
...
@@ -505,9 +451,6 @@ func Convert_extensions_DaemonSetSpec_To_v1beta1_DaemonSetSpec(in *extensions.Da
}
func
autoConvert_v1beta1_DaemonSetStatus_To_extensions_DaemonSetStatus
(
in
*
DaemonSetStatus
,
out
*
extensions
.
DaemonSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DaemonSetStatus
))(
in
)
}
out
.
CurrentNumberScheduled
=
in
.
CurrentNumberScheduled
out
.
NumberMisscheduled
=
in
.
NumberMisscheduled
out
.
DesiredNumberScheduled
=
in
.
DesiredNumberScheduled
...
...
@@ -519,9 +462,6 @@ func Convert_v1beta1_DaemonSetStatus_To_extensions_DaemonSetStatus(in *DaemonSet
}
func
autoConvert_extensions_DaemonSetStatus_To_v1beta1_DaemonSetStatus
(
in
*
extensions
.
DaemonSetStatus
,
out
*
DaemonSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DaemonSetStatus
))(
in
)
}
out
.
CurrentNumberScheduled
=
in
.
CurrentNumberScheduled
out
.
NumberMisscheduled
=
in
.
NumberMisscheduled
out
.
DesiredNumberScheduled
=
in
.
DesiredNumberScheduled
...
...
@@ -533,9 +473,7 @@ func Convert_extensions_DaemonSetStatus_To_v1beta1_DaemonSetStatus(in *extension
}
func
autoConvert_v1beta1_Deployment_To_extensions_Deployment
(
in
*
Deployment
,
out
*
extensions
.
Deployment
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Deployment
))(
in
)
}
SetDefaults_Deployment
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -557,9 +495,6 @@ func Convert_v1beta1_Deployment_To_extensions_Deployment(in *Deployment, out *ex
}
func
autoConvert_extensions_Deployment_To_v1beta1_Deployment
(
in
*
extensions
.
Deployment
,
out
*
Deployment
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
Deployment
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -581,9 +516,6 @@ func Convert_extensions_Deployment_To_v1beta1_Deployment(in *extensions.Deployme
}
func
autoConvert_v1beta1_DeploymentList_To_extensions_DeploymentList
(
in
*
DeploymentList
,
out
*
extensions
.
DeploymentList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DeploymentList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -609,9 +541,6 @@ func Convert_v1beta1_DeploymentList_To_extensions_DeploymentList(in *DeploymentL
}
func
autoConvert_extensions_DeploymentList_To_v1beta1_DeploymentList
(
in
*
extensions
.
DeploymentList
,
out
*
DeploymentList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DeploymentList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -637,9 +566,6 @@ func Convert_extensions_DeploymentList_To_v1beta1_DeploymentList(in *extensions.
}
func
autoConvert_v1beta1_DeploymentRollback_To_extensions_DeploymentRollback
(
in
*
DeploymentRollback
,
out
*
extensions
.
DeploymentRollback
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DeploymentRollback
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -664,9 +590,6 @@ func Convert_v1beta1_DeploymentRollback_To_extensions_DeploymentRollback(in *Dep
}
func
autoConvert_extensions_DeploymentRollback_To_v1beta1_DeploymentRollback
(
in
*
extensions
.
DeploymentRollback
,
out
*
DeploymentRollback
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DeploymentRollback
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -691,9 +614,6 @@ func Convert_extensions_DeploymentRollback_To_v1beta1_DeploymentRollback(in *ext
}
func
autoConvert_v1beta1_DeploymentStatus_To_extensions_DeploymentStatus
(
in
*
DeploymentStatus
,
out
*
extensions
.
DeploymentStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DeploymentStatus
))(
in
)
}
out
.
ObservedGeneration
=
in
.
ObservedGeneration
out
.
Replicas
=
in
.
Replicas
out
.
UpdatedReplicas
=
in
.
UpdatedReplicas
...
...
@@ -707,9 +627,6 @@ func Convert_v1beta1_DeploymentStatus_To_extensions_DeploymentStatus(in *Deploym
}
func
autoConvert_extensions_DeploymentStatus_To_v1beta1_DeploymentStatus
(
in
*
extensions
.
DeploymentStatus
,
out
*
DeploymentStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DeploymentStatus
))(
in
)
}
out
.
ObservedGeneration
=
in
.
ObservedGeneration
out
.
Replicas
=
in
.
Replicas
out
.
UpdatedReplicas
=
in
.
UpdatedReplicas
...
...
@@ -723,9 +640,6 @@ func Convert_extensions_DeploymentStatus_To_v1beta1_DeploymentStatus(in *extensi
}
func
autoConvert_v1beta1_DeploymentStrategy_To_extensions_DeploymentStrategy
(
in
*
DeploymentStrategy
,
out
*
extensions
.
DeploymentStrategy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
DeploymentStrategy
))(
in
)
}
out
.
Type
=
extensions
.
DeploymentStrategyType
(
in
.
Type
)
if
in
.
RollingUpdate
!=
nil
{
in
,
out
:=
&
in
.
RollingUpdate
,
&
out
.
RollingUpdate
...
...
@@ -740,9 +654,6 @@ func autoConvert_v1beta1_DeploymentStrategy_To_extensions_DeploymentStrategy(in
}
func
autoConvert_extensions_DeploymentStrategy_To_v1beta1_DeploymentStrategy
(
in
*
extensions
.
DeploymentStrategy
,
out
*
DeploymentStrategy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
DeploymentStrategy
))(
in
)
}
out
.
Type
=
DeploymentStrategyType
(
in
.
Type
)
if
in
.
RollingUpdate
!=
nil
{
in
,
out
:=
&
in
.
RollingUpdate
,
&
out
.
RollingUpdate
...
...
@@ -757,9 +668,6 @@ func autoConvert_extensions_DeploymentStrategy_To_v1beta1_DeploymentStrategy(in
}
func
autoConvert_v1beta1_HTTPIngressPath_To_extensions_HTTPIngressPath
(
in
*
HTTPIngressPath
,
out
*
extensions
.
HTTPIngressPath
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HTTPIngressPath
))(
in
)
}
out
.
Path
=
in
.
Path
if
err
:=
Convert_v1beta1_IngressBackend_To_extensions_IngressBackend
(
&
in
.
Backend
,
&
out
.
Backend
,
s
);
err
!=
nil
{
return
err
...
...
@@ -772,9 +680,6 @@ func Convert_v1beta1_HTTPIngressPath_To_extensions_HTTPIngressPath(in *HTTPIngre
}
func
autoConvert_extensions_HTTPIngressPath_To_v1beta1_HTTPIngressPath
(
in
*
extensions
.
HTTPIngressPath
,
out
*
HTTPIngressPath
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HTTPIngressPath
))(
in
)
}
out
.
Path
=
in
.
Path
if
err
:=
Convert_extensions_IngressBackend_To_v1beta1_IngressBackend
(
&
in
.
Backend
,
&
out
.
Backend
,
s
);
err
!=
nil
{
return
err
...
...
@@ -787,9 +692,6 @@ func Convert_extensions_HTTPIngressPath_To_v1beta1_HTTPIngressPath(in *extension
}
func
autoConvert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue
(
in
*
HTTPIngressRuleValue
,
out
*
extensions
.
HTTPIngressRuleValue
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HTTPIngressRuleValue
))(
in
)
}
if
in
.
Paths
!=
nil
{
in
,
out
:=
&
in
.
Paths
,
&
out
.
Paths
*
out
=
make
([]
extensions
.
HTTPIngressPath
,
len
(
*
in
))
...
...
@@ -809,9 +711,6 @@ func Convert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(in
}
func
autoConvert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue
(
in
*
extensions
.
HTTPIngressRuleValue
,
out
*
HTTPIngressRuleValue
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HTTPIngressRuleValue
))(
in
)
}
if
in
.
Paths
!=
nil
{
in
,
out
:=
&
in
.
Paths
,
&
out
.
Paths
*
out
=
make
([]
HTTPIngressPath
,
len
(
*
in
))
...
...
@@ -831,9 +730,7 @@ func Convert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue(in
}
func
autoConvert_v1beta1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscaler
(
in
*
HorizontalPodAutoscaler
,
out
*
extensions
.
HorizontalPodAutoscaler
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscaler
))(
in
)
}
SetDefaults_HorizontalPodAutoscaler
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -855,9 +752,6 @@ func Convert_v1beta1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscal
}
func
autoConvert_extensions_HorizontalPodAutoscaler_To_v1beta1_HorizontalPodAutoscaler
(
in
*
extensions
.
HorizontalPodAutoscaler
,
out
*
HorizontalPodAutoscaler
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscaler
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -879,9 +773,6 @@ func Convert_extensions_HorizontalPodAutoscaler_To_v1beta1_HorizontalPodAutoscal
}
func
autoConvert_v1beta1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAutoscalerList
(
in
*
HorizontalPodAutoscalerList
,
out
*
extensions
.
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscalerList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -907,9 +798,6 @@ func Convert_v1beta1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAuto
}
func
autoConvert_extensions_HorizontalPodAutoscalerList_To_v1beta1_HorizontalPodAutoscalerList
(
in
*
extensions
.
HorizontalPodAutoscalerList
,
out
*
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscalerList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -935,9 +823,6 @@ func Convert_extensions_HorizontalPodAutoscalerList_To_v1beta1_HorizontalPodAuto
}
func
autoConvert_v1beta1_HorizontalPodAutoscalerSpec_To_extensions_HorizontalPodAutoscalerSpec
(
in
*
HorizontalPodAutoscalerSpec
,
out
*
extensions
.
HorizontalPodAutoscalerSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscalerSpec
))(
in
)
}
if
err
:=
Convert_v1beta1_SubresourceReference_To_extensions_SubresourceReference
(
&
in
.
ScaleRef
,
&
out
.
ScaleRef
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -966,9 +851,6 @@ func Convert_v1beta1_HorizontalPodAutoscalerSpec_To_extensions_HorizontalPodAuto
}
func
autoConvert_extensions_HorizontalPodAutoscalerSpec_To_v1beta1_HorizontalPodAutoscalerSpec
(
in
*
extensions
.
HorizontalPodAutoscalerSpec
,
out
*
HorizontalPodAutoscalerSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscalerSpec
))(
in
)
}
if
err
:=
Convert_extensions_SubresourceReference_To_v1beta1_SubresourceReference
(
&
in
.
ScaleRef
,
&
out
.
ScaleRef
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -997,9 +879,6 @@ func Convert_extensions_HorizontalPodAutoscalerSpec_To_v1beta1_HorizontalPodAuto
}
func
autoConvert_v1beta1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAutoscalerStatus
(
in
*
HorizontalPodAutoscalerStatus
,
out
*
extensions
.
HorizontalPodAutoscalerStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HorizontalPodAutoscalerStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
@@ -1033,9 +912,6 @@ func Convert_v1beta1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAu
}
func
autoConvert_extensions_HorizontalPodAutoscalerStatus_To_v1beta1_HorizontalPodAutoscalerStatus
(
in
*
extensions
.
HorizontalPodAutoscalerStatus
,
out
*
HorizontalPodAutoscalerStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HorizontalPodAutoscalerStatus
))(
in
)
}
if
in
.
ObservedGeneration
!=
nil
{
in
,
out
:=
&
in
.
ObservedGeneration
,
&
out
.
ObservedGeneration
*
out
=
new
(
int64
)
...
...
@@ -1069,9 +945,6 @@ func Convert_extensions_HorizontalPodAutoscalerStatus_To_v1beta1_HorizontalPodAu
}
func
autoConvert_v1beta1_HostPortRange_To_extensions_HostPortRange
(
in
*
HostPortRange
,
out
*
extensions
.
HostPortRange
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
HostPortRange
))(
in
)
}
out
.
Min
=
int
(
in
.
Min
)
out
.
Max
=
int
(
in
.
Max
)
return
nil
...
...
@@ -1082,9 +955,6 @@ func Convert_v1beta1_HostPortRange_To_extensions_HostPortRange(in *HostPortRange
}
func
autoConvert_extensions_HostPortRange_To_v1beta1_HostPortRange
(
in
*
extensions
.
HostPortRange
,
out
*
HostPortRange
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
HostPortRange
))(
in
)
}
out
.
Min
=
int32
(
in
.
Min
)
out
.
Max
=
int32
(
in
.
Max
)
return
nil
...
...
@@ -1095,9 +965,6 @@ func Convert_extensions_HostPortRange_To_v1beta1_HostPortRange(in *extensions.Ho
}
func
autoConvert_v1beta1_IDRange_To_extensions_IDRange
(
in
*
IDRange
,
out
*
extensions
.
IDRange
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IDRange
))(
in
)
}
out
.
Min
=
in
.
Min
out
.
Max
=
in
.
Max
return
nil
...
...
@@ -1108,9 +975,6 @@ func Convert_v1beta1_IDRange_To_extensions_IDRange(in *IDRange, out *extensions.
}
func
autoConvert_extensions_IDRange_To_v1beta1_IDRange
(
in
*
extensions
.
IDRange
,
out
*
IDRange
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IDRange
))(
in
)
}
out
.
Min
=
in
.
Min
out
.
Max
=
in
.
Max
return
nil
...
...
@@ -1121,9 +985,6 @@ func Convert_extensions_IDRange_To_v1beta1_IDRange(in *extensions.IDRange, out *
}
func
autoConvert_v1beta1_Ingress_To_extensions_Ingress
(
in
*
Ingress
,
out
*
extensions
.
Ingress
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Ingress
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1145,9 +1006,6 @@ func Convert_v1beta1_Ingress_To_extensions_Ingress(in *Ingress, out *extensions.
}
func
autoConvert_extensions_Ingress_To_v1beta1_Ingress
(
in
*
extensions
.
Ingress
,
out
*
Ingress
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
Ingress
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1169,9 +1027,6 @@ func Convert_extensions_Ingress_To_v1beta1_Ingress(in *extensions.Ingress, out *
}
func
autoConvert_v1beta1_IngressBackend_To_extensions_IngressBackend
(
in
*
IngressBackend
,
out
*
extensions
.
IngressBackend
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressBackend
))(
in
)
}
out
.
ServiceName
=
in
.
ServiceName
if
err
:=
api
.
Convert_intstr_IntOrString_To_intstr_IntOrString
(
&
in
.
ServicePort
,
&
out
.
ServicePort
,
s
);
err
!=
nil
{
return
err
...
...
@@ -1184,9 +1039,6 @@ func Convert_v1beta1_IngressBackend_To_extensions_IngressBackend(in *IngressBack
}
func
autoConvert_extensions_IngressBackend_To_v1beta1_IngressBackend
(
in
*
extensions
.
IngressBackend
,
out
*
IngressBackend
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressBackend
))(
in
)
}
out
.
ServiceName
=
in
.
ServiceName
if
err
:=
api
.
Convert_intstr_IntOrString_To_intstr_IntOrString
(
&
in
.
ServicePort
,
&
out
.
ServicePort
,
s
);
err
!=
nil
{
return
err
...
...
@@ -1199,9 +1051,6 @@ func Convert_extensions_IngressBackend_To_v1beta1_IngressBackend(in *extensions.
}
func
autoConvert_v1beta1_IngressList_To_extensions_IngressList
(
in
*
IngressList
,
out
*
extensions
.
IngressList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1227,9 +1076,6 @@ func Convert_v1beta1_IngressList_To_extensions_IngressList(in *IngressList, out
}
func
autoConvert_extensions_IngressList_To_v1beta1_IngressList
(
in
*
extensions
.
IngressList
,
out
*
IngressList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1255,9 +1101,6 @@ func Convert_extensions_IngressList_To_v1beta1_IngressList(in *extensions.Ingres
}
func
autoConvert_v1beta1_IngressRule_To_extensions_IngressRule
(
in
*
IngressRule
,
out
*
extensions
.
IngressRule
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressRule
))(
in
)
}
out
.
Host
=
in
.
Host
if
err
:=
Convert_v1beta1_IngressRuleValue_To_extensions_IngressRuleValue
(
&
in
.
IngressRuleValue
,
&
out
.
IngressRuleValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -1270,9 +1113,6 @@ func Convert_v1beta1_IngressRule_To_extensions_IngressRule(in *IngressRule, out
}
func
autoConvert_extensions_IngressRule_To_v1beta1_IngressRule
(
in
*
extensions
.
IngressRule
,
out
*
IngressRule
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressRule
))(
in
)
}
out
.
Host
=
in
.
Host
if
err
:=
Convert_extensions_IngressRuleValue_To_v1beta1_IngressRuleValue
(
&
in
.
IngressRuleValue
,
&
out
.
IngressRuleValue
,
s
);
err
!=
nil
{
return
err
...
...
@@ -1285,9 +1125,6 @@ func Convert_extensions_IngressRule_To_v1beta1_IngressRule(in *extensions.Ingres
}
func
autoConvert_v1beta1_IngressRuleValue_To_extensions_IngressRuleValue
(
in
*
IngressRuleValue
,
out
*
extensions
.
IngressRuleValue
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressRuleValue
))(
in
)
}
if
in
.
HTTP
!=
nil
{
in
,
out
:=
&
in
.
HTTP
,
&
out
.
HTTP
*
out
=
new
(
extensions
.
HTTPIngressRuleValue
)
...
...
@@ -1305,9 +1142,6 @@ func Convert_v1beta1_IngressRuleValue_To_extensions_IngressRuleValue(in *Ingress
}
func
autoConvert_extensions_IngressRuleValue_To_v1beta1_IngressRuleValue
(
in
*
extensions
.
IngressRuleValue
,
out
*
IngressRuleValue
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressRuleValue
))(
in
)
}
if
in
.
HTTP
!=
nil
{
in
,
out
:=
&
in
.
HTTP
,
&
out
.
HTTP
*
out
=
new
(
HTTPIngressRuleValue
)
...
...
@@ -1325,9 +1159,6 @@ func Convert_extensions_IngressRuleValue_To_v1beta1_IngressRuleValue(in *extensi
}
func
autoConvert_v1beta1_IngressSpec_To_extensions_IngressSpec
(
in
*
IngressSpec
,
out
*
extensions
.
IngressSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressSpec
))(
in
)
}
if
in
.
Backend
!=
nil
{
in
,
out
:=
&
in
.
Backend
,
&
out
.
Backend
*
out
=
new
(
extensions
.
IngressBackend
)
...
...
@@ -1367,9 +1198,6 @@ func Convert_v1beta1_IngressSpec_To_extensions_IngressSpec(in *IngressSpec, out
}
func
autoConvert_extensions_IngressSpec_To_v1beta1_IngressSpec
(
in
*
extensions
.
IngressSpec
,
out
*
IngressSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressSpec
))(
in
)
}
if
in
.
Backend
!=
nil
{
in
,
out
:=
&
in
.
Backend
,
&
out
.
Backend
*
out
=
new
(
IngressBackend
)
...
...
@@ -1409,9 +1237,6 @@ func Convert_extensions_IngressSpec_To_v1beta1_IngressSpec(in *extensions.Ingres
}
func
autoConvert_v1beta1_IngressStatus_To_extensions_IngressStatus
(
in
*
IngressStatus
,
out
*
extensions
.
IngressStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressStatus
))(
in
)
}
// TODO: Inefficient conversion - can we improve it?
if
err
:=
s
.
Convert
(
&
in
.
LoadBalancer
,
&
out
.
LoadBalancer
,
0
);
err
!=
nil
{
return
err
...
...
@@ -1424,9 +1249,6 @@ func Convert_v1beta1_IngressStatus_To_extensions_IngressStatus(in *IngressStatus
}
func
autoConvert_extensions_IngressStatus_To_v1beta1_IngressStatus
(
in
*
extensions
.
IngressStatus
,
out
*
IngressStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressStatus
))(
in
)
}
// TODO: Inefficient conversion - can we improve it?
if
err
:=
s
.
Convert
(
&
in
.
LoadBalancer
,
&
out
.
LoadBalancer
,
0
);
err
!=
nil
{
return
err
...
...
@@ -1439,9 +1261,6 @@ func Convert_extensions_IngressStatus_To_v1beta1_IngressStatus(in *extensions.In
}
func
autoConvert_v1beta1_IngressTLS_To_extensions_IngressTLS
(
in
*
IngressTLS
,
out
*
extensions
.
IngressTLS
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
IngressTLS
))(
in
)
}
if
in
.
Hosts
!=
nil
{
in
,
out
:=
&
in
.
Hosts
,
&
out
.
Hosts
*
out
=
make
([]
string
,
len
(
*
in
))
...
...
@@ -1458,9 +1277,6 @@ func Convert_v1beta1_IngressTLS_To_extensions_IngressTLS(in *IngressTLS, out *ex
}
func
autoConvert_extensions_IngressTLS_To_v1beta1_IngressTLS
(
in
*
extensions
.
IngressTLS
,
out
*
IngressTLS
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
IngressTLS
))(
in
)
}
if
in
.
Hosts
!=
nil
{
in
,
out
:=
&
in
.
Hosts
,
&
out
.
Hosts
*
out
=
make
([]
string
,
len
(
*
in
))
...
...
@@ -1477,9 +1293,7 @@ func Convert_extensions_IngressTLS_To_v1beta1_IngressTLS(in *extensions.IngressT
}
func
autoConvert_v1beta1_Job_To_batch_Job
(
in
*
Job
,
out
*
batch
.
Job
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Job
))(
in
)
}
SetDefaults_Job
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1501,9 +1315,6 @@ func Convert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scop
}
func
autoConvert_batch_Job_To_v1beta1_Job
(
in
*
batch
.
Job
,
out
*
Job
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
Job
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1525,9 +1336,6 @@ func Convert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scop
}
func
autoConvert_v1beta1_JobCondition_To_batch_JobCondition
(
in
*
JobCondition
,
out
*
batch
.
JobCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobCondition
))(
in
)
}
out
.
Type
=
batch
.
JobConditionType
(
in
.
Type
)
out
.
Status
=
api
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -1546,9 +1354,6 @@ func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *b
}
func
autoConvert_batch_JobCondition_To_v1beta1_JobCondition
(
in
*
batch
.
JobCondition
,
out
*
JobCondition
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobCondition
))(
in
)
}
out
.
Type
=
JobConditionType
(
in
.
Type
)
out
.
Status
=
v1
.
ConditionStatus
(
in
.
Status
)
if
err
:=
api
.
Convert_unversioned_Time_To_unversioned_Time
(
&
in
.
LastProbeTime
,
&
out
.
LastProbeTime
,
s
);
err
!=
nil
{
...
...
@@ -1567,9 +1372,6 @@ func Convert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition,
}
func
autoConvert_v1beta1_JobList_To_batch_JobList
(
in
*
JobList
,
out
*
batch
.
JobList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1595,9 +1397,6 @@ func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s
}
func
autoConvert_batch_JobList_To_v1beta1_JobList
(
in
*
batch
.
JobList
,
out
*
JobList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1623,9 +1422,6 @@ func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s
}
func
autoConvert_v1beta1_JobStatus_To_batch_JobStatus
(
in
*
JobStatus
,
out
*
batch
.
JobStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
JobStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
batch
.
JobCondition
,
len
(
*
in
))
...
...
@@ -1666,9 +1462,6 @@ func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobS
}
func
autoConvert_batch_JobStatus_To_v1beta1_JobStatus
(
in
*
batch
.
JobStatus
,
out
*
JobStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
batch
.
JobStatus
))(
in
)
}
if
in
.
Conditions
!=
nil
{
in
,
out
:=
&
in
.
Conditions
,
&
out
.
Conditions
*
out
=
make
([]
JobCondition
,
len
(
*
in
))
...
...
@@ -1709,9 +1502,6 @@ func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobS
}
func
autoConvert_v1beta1_LabelSelector_To_unversioned_LabelSelector
(
in
*
LabelSelector
,
out
*
unversioned
.
LabelSelector
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LabelSelector
))(
in
)
}
if
in
.
MatchLabels
!=
nil
{
in
,
out
:=
&
in
.
MatchLabels
,
&
out
.
MatchLabels
*
out
=
make
(
map
[
string
]
string
,
len
(
*
in
))
...
...
@@ -1740,9 +1530,6 @@ func Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelecto
}
func
autoConvert_unversioned_LabelSelector_To_v1beta1_LabelSelector
(
in
*
unversioned
.
LabelSelector
,
out
*
LabelSelector
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
unversioned
.
LabelSelector
))(
in
)
}
if
in
.
MatchLabels
!=
nil
{
in
,
out
:=
&
in
.
MatchLabels
,
&
out
.
MatchLabels
*
out
=
make
(
map
[
string
]
string
,
len
(
*
in
))
...
...
@@ -1771,9 +1558,6 @@ func Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in *unversioned.
}
func
autoConvert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement
(
in
*
LabelSelectorRequirement
,
out
*
unversioned
.
LabelSelectorRequirement
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
LabelSelectorRequirement
))(
in
)
}
out
.
Key
=
in
.
Key
out
.
Operator
=
unversioned
.
LabelSelectorOperator
(
in
.
Operator
)
if
in
.
Values
!=
nil
{
...
...
@@ -1791,9 +1575,6 @@ func Convert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequir
}
func
autoConvert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement
(
in
*
unversioned
.
LabelSelectorRequirement
,
out
*
LabelSelectorRequirement
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
unversioned
.
LabelSelectorRequirement
))(
in
)
}
out
.
Key
=
in
.
Key
out
.
Operator
=
LabelSelectorOperator
(
in
.
Operator
)
if
in
.
Values
!=
nil
{
...
...
@@ -1811,9 +1592,6 @@ func Convert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequir
}
func
autoConvert_v1beta1_PodSecurityPolicy_To_extensions_PodSecurityPolicy
(
in
*
PodSecurityPolicy
,
out
*
extensions
.
PodSecurityPolicy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodSecurityPolicy
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1832,9 +1610,6 @@ func Convert_v1beta1_PodSecurityPolicy_To_extensions_PodSecurityPolicy(in *PodSe
}
func
autoConvert_extensions_PodSecurityPolicy_To_v1beta1_PodSecurityPolicy
(
in
*
extensions
.
PodSecurityPolicy
,
out
*
PodSecurityPolicy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
PodSecurityPolicy
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1853,9 +1628,6 @@ func Convert_extensions_PodSecurityPolicy_To_v1beta1_PodSecurityPolicy(in *exten
}
func
autoConvert_v1beta1_PodSecurityPolicyList_To_extensions_PodSecurityPolicyList
(
in
*
PodSecurityPolicyList
,
out
*
extensions
.
PodSecurityPolicyList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodSecurityPolicyList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1881,9 +1653,6 @@ func Convert_v1beta1_PodSecurityPolicyList_To_extensions_PodSecurityPolicyList(i
}
func
autoConvert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyList
(
in
*
extensions
.
PodSecurityPolicyList
,
out
*
PodSecurityPolicyList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
PodSecurityPolicyList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -1909,9 +1678,6 @@ func Convert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyList(i
}
func
autoConvert_v1beta1_PodSecurityPolicySpec_To_extensions_PodSecurityPolicySpec
(
in
*
PodSecurityPolicySpec
,
out
*
extensions
.
PodSecurityPolicySpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodSecurityPolicySpec
))(
in
)
}
out
.
Privileged
=
in
.
Privileged
if
in
.
Capabilities
!=
nil
{
in
,
out
:=
&
in
.
Capabilities
,
&
out
.
Capabilities
...
...
@@ -1959,9 +1725,6 @@ func Convert_v1beta1_PodSecurityPolicySpec_To_extensions_PodSecurityPolicySpec(i
}
func
autoConvert_extensions_PodSecurityPolicySpec_To_v1beta1_PodSecurityPolicySpec
(
in
*
extensions
.
PodSecurityPolicySpec
,
out
*
PodSecurityPolicySpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
PodSecurityPolicySpec
))(
in
)
}
out
.
Privileged
=
in
.
Privileged
if
in
.
Capabilities
!=
nil
{
in
,
out
:=
&
in
.
Capabilities
,
&
out
.
Capabilities
...
...
@@ -2009,9 +1772,7 @@ func Convert_extensions_PodSecurityPolicySpec_To_v1beta1_PodSecurityPolicySpec(i
}
func
autoConvert_v1beta1_ReplicaSet_To_extensions_ReplicaSet
(
in
*
ReplicaSet
,
out
*
extensions
.
ReplicaSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ReplicaSet
))(
in
)
}
SetDefaults_ReplicaSet
(
in
)
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2033,9 +1794,6 @@ func Convert_v1beta1_ReplicaSet_To_extensions_ReplicaSet(in *ReplicaSet, out *ex
}
func
autoConvert_extensions_ReplicaSet_To_v1beta1_ReplicaSet
(
in
*
extensions
.
ReplicaSet
,
out
*
ReplicaSet
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ReplicaSet
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2057,9 +1815,6 @@ func Convert_extensions_ReplicaSet_To_v1beta1_ReplicaSet(in *extensions.ReplicaS
}
func
autoConvert_v1beta1_ReplicaSetList_To_extensions_ReplicaSetList
(
in
*
ReplicaSetList
,
out
*
extensions
.
ReplicaSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ReplicaSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2085,9 +1840,6 @@ func Convert_v1beta1_ReplicaSetList_To_extensions_ReplicaSetList(in *ReplicaSetL
}
func
autoConvert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList
(
in
*
extensions
.
ReplicaSetList
,
out
*
ReplicaSetList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ReplicaSetList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2113,9 +1865,6 @@ func Convert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in *extensions.
}
func
autoConvert_v1beta1_ReplicaSetStatus_To_extensions_ReplicaSetStatus
(
in
*
ReplicaSetStatus
,
out
*
extensions
.
ReplicaSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ReplicaSetStatus
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
out
.
FullyLabeledReplicas
=
in
.
FullyLabeledReplicas
out
.
ObservedGeneration
=
in
.
ObservedGeneration
...
...
@@ -2127,9 +1876,6 @@ func Convert_v1beta1_ReplicaSetStatus_To_extensions_ReplicaSetStatus(in *Replica
}
func
autoConvert_extensions_ReplicaSetStatus_To_v1beta1_ReplicaSetStatus
(
in
*
extensions
.
ReplicaSetStatus
,
out
*
ReplicaSetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ReplicaSetStatus
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
out
.
FullyLabeledReplicas
=
in
.
FullyLabeledReplicas
out
.
ObservedGeneration
=
in
.
ObservedGeneration
...
...
@@ -2141,9 +1887,6 @@ func Convert_extensions_ReplicaSetStatus_To_v1beta1_ReplicaSetStatus(in *extensi
}
func
autoConvert_v1beta1_ReplicationControllerDummy_To_extensions_ReplicationControllerDummy
(
in
*
ReplicationControllerDummy
,
out
*
extensions
.
ReplicationControllerDummy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ReplicationControllerDummy
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2155,9 +1898,6 @@ func Convert_v1beta1_ReplicationControllerDummy_To_extensions_ReplicationControl
}
func
autoConvert_extensions_ReplicationControllerDummy_To_v1beta1_ReplicationControllerDummy
(
in
*
extensions
.
ReplicationControllerDummy
,
out
*
ReplicationControllerDummy
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ReplicationControllerDummy
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2169,9 +1909,6 @@ func Convert_extensions_ReplicationControllerDummy_To_v1beta1_ReplicationControl
}
func
autoConvert_v1beta1_RollbackConfig_To_extensions_RollbackConfig
(
in
*
RollbackConfig
,
out
*
extensions
.
RollbackConfig
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
RollbackConfig
))(
in
)
}
out
.
Revision
=
in
.
Revision
return
nil
}
...
...
@@ -2181,9 +1918,6 @@ func Convert_v1beta1_RollbackConfig_To_extensions_RollbackConfig(in *RollbackCon
}
func
autoConvert_extensions_RollbackConfig_To_v1beta1_RollbackConfig
(
in
*
extensions
.
RollbackConfig
,
out
*
RollbackConfig
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
RollbackConfig
))(
in
)
}
out
.
Revision
=
in
.
Revision
return
nil
}
...
...
@@ -2193,9 +1927,6 @@ func Convert_extensions_RollbackConfig_To_v1beta1_RollbackConfig(in *extensions.
}
func
autoConvert_v1beta1_RunAsUserStrategyOptions_To_extensions_RunAsUserStrategyOptions
(
in
*
RunAsUserStrategyOptions
,
out
*
extensions
.
RunAsUserStrategyOptions
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
RunAsUserStrategyOptions
))(
in
)
}
out
.
Rule
=
extensions
.
RunAsUserStrategy
(
in
.
Rule
)
if
in
.
Ranges
!=
nil
{
in
,
out
:=
&
in
.
Ranges
,
&
out
.
Ranges
...
...
@@ -2216,9 +1947,6 @@ func Convert_v1beta1_RunAsUserStrategyOptions_To_extensions_RunAsUserStrategyOpt
}
func
autoConvert_extensions_RunAsUserStrategyOptions_To_v1beta1_RunAsUserStrategyOptions
(
in
*
extensions
.
RunAsUserStrategyOptions
,
out
*
RunAsUserStrategyOptions
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
RunAsUserStrategyOptions
))(
in
)
}
out
.
Rule
=
RunAsUserStrategy
(
in
.
Rule
)
if
in
.
Ranges
!=
nil
{
in
,
out
:=
&
in
.
Ranges
,
&
out
.
Ranges
...
...
@@ -2239,9 +1967,6 @@ func Convert_extensions_RunAsUserStrategyOptions_To_v1beta1_RunAsUserStrategyOpt
}
func
autoConvert_v1beta1_SELinuxStrategyOptions_To_extensions_SELinuxStrategyOptions
(
in
*
SELinuxStrategyOptions
,
out
*
extensions
.
SELinuxStrategyOptions
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SELinuxStrategyOptions
))(
in
)
}
out
.
Rule
=
extensions
.
SELinuxStrategy
(
in
.
Rule
)
if
in
.
SELinuxOptions
!=
nil
{
in
,
out
:=
&
in
.
SELinuxOptions
,
&
out
.
SELinuxOptions
...
...
@@ -2261,9 +1986,6 @@ func Convert_v1beta1_SELinuxStrategyOptions_To_extensions_SELinuxStrategyOptions
}
func
autoConvert_extensions_SELinuxStrategyOptions_To_v1beta1_SELinuxStrategyOptions
(
in
*
extensions
.
SELinuxStrategyOptions
,
out
*
SELinuxStrategyOptions
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
SELinuxStrategyOptions
))(
in
)
}
out
.
Rule
=
SELinuxStrategy
(
in
.
Rule
)
if
in
.
SELinuxOptions
!=
nil
{
in
,
out
:=
&
in
.
SELinuxOptions
,
&
out
.
SELinuxOptions
...
...
@@ -2283,9 +2005,6 @@ func Convert_extensions_SELinuxStrategyOptions_To_v1beta1_SELinuxStrategyOptions
}
func
autoConvert_v1beta1_Scale_To_extensions_Scale
(
in
*
Scale
,
out
*
extensions
.
Scale
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
Scale
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2307,9 +2026,6 @@ func Convert_v1beta1_Scale_To_extensions_Scale(in *Scale, out *extensions.Scale,
}
func
autoConvert_extensions_Scale_To_v1beta1_Scale
(
in
*
extensions
.
Scale
,
out
*
Scale
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
Scale
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2331,9 +2047,6 @@ func Convert_extensions_Scale_To_v1beta1_Scale(in *extensions.Scale, out *Scale,
}
func
autoConvert_v1beta1_ScaleSpec_To_extensions_ScaleSpec
(
in
*
ScaleSpec
,
out
*
extensions
.
ScaleSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ScaleSpec
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
return
nil
}
...
...
@@ -2343,9 +2056,6 @@ func Convert_v1beta1_ScaleSpec_To_extensions_ScaleSpec(in *ScaleSpec, out *exten
}
func
autoConvert_extensions_ScaleSpec_To_v1beta1_ScaleSpec
(
in
*
extensions
.
ScaleSpec
,
out
*
ScaleSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ScaleSpec
))(
in
)
}
out
.
Replicas
=
in
.
Replicas
return
nil
}
...
...
@@ -2355,9 +2065,6 @@ func Convert_extensions_ScaleSpec_To_v1beta1_ScaleSpec(in *extensions.ScaleSpec,
}
func
autoConvert_v1beta1_SubresourceReference_To_extensions_SubresourceReference
(
in
*
SubresourceReference
,
out
*
extensions
.
SubresourceReference
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
SubresourceReference
))(
in
)
}
out
.
Kind
=
in
.
Kind
out
.
Name
=
in
.
Name
out
.
APIVersion
=
in
.
APIVersion
...
...
@@ -2370,9 +2077,6 @@ func Convert_v1beta1_SubresourceReference_To_extensions_SubresourceReference(in
}
func
autoConvert_extensions_SubresourceReference_To_v1beta1_SubresourceReference
(
in
*
extensions
.
SubresourceReference
,
out
*
SubresourceReference
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
SubresourceReference
))(
in
)
}
out
.
Kind
=
in
.
Kind
out
.
Name
=
in
.
Name
out
.
APIVersion
=
in
.
APIVersion
...
...
@@ -2385,9 +2089,6 @@ func Convert_extensions_SubresourceReference_To_v1beta1_SubresourceReference(in
}
func
autoConvert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource
(
in
*
ThirdPartyResource
,
out
*
extensions
.
ThirdPartyResource
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ThirdPartyResource
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2415,9 +2116,6 @@ func Convert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource(in *Thi
}
func
autoConvert_extensions_ThirdPartyResource_To_v1beta1_ThirdPartyResource
(
in
*
extensions
.
ThirdPartyResource
,
out
*
ThirdPartyResource
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ThirdPartyResource
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2445,9 +2143,6 @@ func Convert_extensions_ThirdPartyResource_To_v1beta1_ThirdPartyResource(in *ext
}
func
autoConvert_v1beta1_ThirdPartyResourceData_To_extensions_ThirdPartyResourceData
(
in
*
ThirdPartyResourceData
,
out
*
extensions
.
ThirdPartyResourceData
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ThirdPartyResourceData
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2466,9 +2161,6 @@ func Convert_v1beta1_ThirdPartyResourceData_To_extensions_ThirdPartyResourceData
}
func
autoConvert_extensions_ThirdPartyResourceData_To_v1beta1_ThirdPartyResourceData
(
in
*
extensions
.
ThirdPartyResourceData
,
out
*
ThirdPartyResourceData
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ThirdPartyResourceData
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2487,9 +2179,6 @@ func Convert_extensions_ThirdPartyResourceData_To_v1beta1_ThirdPartyResourceData
}
func
autoConvert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResourceDataList
(
in
*
ThirdPartyResourceDataList
,
out
*
extensions
.
ThirdPartyResourceDataList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ThirdPartyResourceDataList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2515,9 +2204,6 @@ func Convert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResource
}
func
autoConvert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResourceDataList
(
in
*
extensions
.
ThirdPartyResourceDataList
,
out
*
ThirdPartyResourceDataList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ThirdPartyResourceDataList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2543,9 +2229,6 @@ func Convert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResource
}
func
autoConvert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList
(
in
*
ThirdPartyResourceList
,
out
*
extensions
.
ThirdPartyResourceList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
ThirdPartyResourceList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -2571,9 +2254,6 @@ func Convert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList
}
func
autoConvert_extensions_ThirdPartyResourceList_To_v1beta1_ThirdPartyResourceList
(
in
*
extensions
.
ThirdPartyResourceList
,
out
*
ThirdPartyResourceList
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
extensions
.
ThirdPartyResourceList
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
pkg/apis/metrics/v1alpha1/conversion_generated.go
View file @
7104be87
...
...
@@ -24,7 +24,6 @@ import (
api
"k8s.io/kubernetes/pkg/api"
metrics
"k8s.io/kubernetes/pkg/apis/metrics"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -40,9 +39,6 @@ func init() {
}
func
autoConvert_v1alpha1_RawNode_To_metrics_RawNode
(
in
*
RawNode
,
out
*
metrics
.
RawNode
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
RawNode
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -54,9 +50,6 @@ func Convert_v1alpha1_RawNode_To_metrics_RawNode(in *RawNode, out *metrics.RawNo
}
func
autoConvert_metrics_RawNode_To_v1alpha1_RawNode
(
in
*
metrics
.
RawNode
,
out
*
RawNode
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
metrics
.
RawNode
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -68,9 +61,6 @@ func Convert_metrics_RawNode_To_v1alpha1_RawNode(in *metrics.RawNode, out *RawNo
}
func
autoConvert_v1alpha1_RawPod_To_metrics_RawPod
(
in
*
RawPod
,
out
*
metrics
.
RawPod
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
RawPod
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -82,9 +72,6 @@ func Convert_v1alpha1_RawPod_To_metrics_RawPod(in *RawPod, out *metrics.RawPod,
}
func
autoConvert_metrics_RawPod_To_v1alpha1_RawPod
(
in
*
metrics
.
RawPod
,
out
*
RawPod
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
metrics
.
RawPod
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
pkg/apis/policy/v1alpha1/conversion_generated.go
View file @
7104be87
...
...
@@ -25,7 +25,6 @@ import (
unversioned
"k8s.io/kubernetes/pkg/api/unversioned"
policy
"k8s.io/kubernetes/pkg/apis/policy"
conversion
"k8s.io/kubernetes/pkg/conversion"
reflect
"reflect"
)
func
init
()
{
...
...
@@ -43,9 +42,6 @@ func init() {
}
func
autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget
(
in
*
PodDisruptionBudget
,
out
*
policy
.
PodDisruptionBudget
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodDisruptionBudget
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -67,9 +63,6 @@ func Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodD
}
func
autoConvert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget
(
in
*
policy
.
PodDisruptionBudget
,
out
*
PodDisruptionBudget
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
policy
.
PodDisruptionBudget
))(
in
)
}
if
err
:=
api
.
Convert_unversioned_TypeMeta_To_unversioned_TypeMeta
(
&
in
.
TypeMeta
,
&
out
.
TypeMeta
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -91,9 +84,6 @@ func Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in *poli
}
func
autoConvert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec
(
in
*
PodDisruptionBudgetSpec
,
out
*
policy
.
PodDisruptionBudgetSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodDisruptionBudgetSpec
))(
in
)
}
if
err
:=
api
.
Convert_intstr_IntOrString_To_intstr_IntOrString
(
&
in
.
MinAvailable
,
&
out
.
MinAvailable
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -115,9 +105,6 @@ func Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(
}
func
autoConvert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec
(
in
*
policy
.
PodDisruptionBudgetSpec
,
out
*
PodDisruptionBudgetSpec
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
policy
.
PodDisruptionBudgetSpec
))(
in
)
}
if
err
:=
api
.
Convert_intstr_IntOrString_To_intstr_IntOrString
(
&
in
.
MinAvailable
,
&
out
.
MinAvailable
,
s
);
err
!=
nil
{
return
err
}
...
...
@@ -139,9 +126,6 @@ func Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(
}
func
autoConvert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus
(
in
*
PodDisruptionBudgetStatus
,
out
*
policy
.
PodDisruptionBudgetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
PodDisruptionBudgetStatus
))(
in
)
}
out
.
PodDisruptionAllowed
=
in
.
PodDisruptionAllowed
out
.
CurrentHealthy
=
in
.
CurrentHealthy
out
.
DesiredHealthy
=
in
.
DesiredHealthy
...
...
@@ -154,9 +138,6 @@ func Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetSta
}
func
autoConvert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus
(
in
*
policy
.
PodDisruptionBudgetStatus
,
out
*
PodDisruptionBudgetStatus
,
s
conversion
.
Scope
)
error
{
if
defaulting
,
found
:=
s
.
DefaultingInterface
(
reflect
.
TypeOf
(
*
in
));
found
{
defaulting
.
(
func
(
*
policy
.
PodDisruptionBudgetStatus
))(
in
)
}
out
.
PodDisruptionAllowed
=
in
.
PodDisruptionAllowed
out
.
CurrentHealthy
=
in
.
CurrentHealthy
out
.
DesiredHealthy
=
in
.
DesiredHealthy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment