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
7ceeee86
Unverified
Commit
7ceeee86
authored
Mar 20, 2017
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update client-go
parent
939ca532
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
270 additions
and
70 deletions
+270
-70
zz_generated.conversion.go
...rc/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go
+117
-29
zz_generated.conversion.go
...lient-go/pkg/apis/apps/v1beta1/zz_generated.conversion.go
+1
-1
zz_generated.conversion.go
...ent-go/pkg/apis/autoscaling/v1/zz_generated.conversion.go
+1
-1
zz_generated.conversion.go
.../pkg/apis/autoscaling/v2alpha1/zz_generated.conversion.go
+10
-2
zz_generated.conversion.go
...io/client-go/pkg/apis/batch/v1/zz_generated.conversion.go
+1
-1
zz_generated.conversion.go
...ent-go/pkg/apis/batch/v2alpha1/zz_generated.conversion.go
+1
-1
zz_generated.conversion.go
.../pkg/apis/certificates/v1beta1/zz_generated.conversion.go
+10
-2
zz_generated.conversion.go
...go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go
+39
-11
zz_generated.conversion.go
...ent-go/pkg/apis/policy/v1beta1/zz_generated.conversion.go
+5
-1
zz_generated.conversion.go
...ient-go/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go
+29
-9
zz_generated.conversion.go
...lient-go/pkg/apis/rbac/v1beta1/zz_generated.conversion.go
+45
-9
zz_generated.conversion.go
...-go/pkg/apis/settings/v1alpha1/zz_generated.conversion.go
+1
-1
zz_generated.conversion.go
.../client-go/pkg/apis/storage/v1/zz_generated.conversion.go
+5
-1
zz_generated.conversion.go
...nt-go/pkg/apis/storage/v1beta1/zz_generated.conversion.go
+5
-1
No files found.
staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go
View file @
7ceeee86
This diff is collapsed.
Click to expand it.
staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -110,7 +110,7 @@ func autoConvert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in *apps.Statef
...
@@ -110,7 +110,7 @@ func autoConvert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in *apps.Statef
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
StatefulSet
,
0
)
}
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -149,7 +149,7 @@ func autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAuto
...
@@ -149,7 +149,7 @@ func autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAuto
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
HorizontalPodAutoscaler
,
0
)
}
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/autoscaling/v2alpha1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -132,7 +132,11 @@ func Convert_v2alpha1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAu
...
@@ -132,7 +132,11 @@ func Convert_v2alpha1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAu
func
autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v2alpha1_HorizontalPodAutoscalerList
(
in
*
autoscaling
.
HorizontalPodAutoscalerList
,
out
*
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v2alpha1_HorizontalPodAutoscalerList
(
in
*
autoscaling
.
HorizontalPodAutoscalerList
,
out
*
HorizontalPodAutoscalerList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
HorizontalPodAutoscaler
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
HorizontalPodAutoscaler
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
HorizontalPodAutoscaler
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -186,7 +190,11 @@ func autoConvert_autoscaling_HorizontalPodAutoscalerStatus_To_v2alpha1_Horizonta
...
@@ -186,7 +190,11 @@ func autoConvert_autoscaling_HorizontalPodAutoscalerStatus_To_v2alpha1_Horizonta
out
.
LastScaleTime
=
(
*
v1
.
Time
)(
unsafe
.
Pointer
(
in
.
LastScaleTime
))
out
.
LastScaleTime
=
(
*
v1
.
Time
)(
unsafe
.
Pointer
(
in
.
LastScaleTime
))
out
.
CurrentReplicas
=
in
.
CurrentReplicas
out
.
CurrentReplicas
=
in
.
CurrentReplicas
out
.
DesiredReplicas
=
in
.
DesiredReplicas
out
.
DesiredReplicas
=
in
.
DesiredReplicas
out
.
CurrentMetrics
=
*
(
*
[]
MetricStatus
)(
unsafe
.
Pointer
(
&
in
.
CurrentMetrics
))
if
in
.
CurrentMetrics
==
nil
{
out
.
CurrentMetrics
=
make
([]
MetricStatus
,
0
)
}
else
{
out
.
CurrentMetrics
=
*
(
*
[]
MetricStatus
)(
unsafe
.
Pointer
(
&
in
.
CurrentMetrics
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -140,7 +140,7 @@ func autoConvert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s
...
@@ -140,7 +140,7 @@ func autoConvert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
Job
,
0
)
}
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -115,7 +115,7 @@ func autoConvert_batch_CronJobList_To_v2alpha1_CronJobList(in *batch.CronJobList
...
@@ -115,7 +115,7 @@ func autoConvert_batch_CronJobList_To_v2alpha1_CronJobList(in *batch.CronJobList
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
CronJob
,
0
)
}
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/certificates/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -114,7 +114,11 @@ func Convert_v1beta1_CertificateSigningRequestList_To_certificates_CertificateSi
...
@@ -114,7 +114,11 @@ func Convert_v1beta1_CertificateSigningRequestList_To_certificates_CertificateSi
func
autoConvert_certificates_CertificateSigningRequestList_To_v1beta1_CertificateSigningRequestList
(
in
*
certificates
.
CertificateSigningRequestList
,
out
*
CertificateSigningRequestList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_certificates_CertificateSigningRequestList_To_v1beta1_CertificateSigningRequestList
(
in
*
certificates
.
CertificateSigningRequestList
,
out
*
CertificateSigningRequestList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
CertificateSigningRequest
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
CertificateSigningRequest
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
CertificateSigningRequest
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -137,7 +141,11 @@ func Convert_v1beta1_CertificateSigningRequestSpec_To_certificates_CertificateSi
...
@@ -137,7 +141,11 @@ func Convert_v1beta1_CertificateSigningRequestSpec_To_certificates_CertificateSi
}
}
func
autoConvert_certificates_CertificateSigningRequestSpec_To_v1beta1_CertificateSigningRequestSpec
(
in
*
certificates
.
CertificateSigningRequestSpec
,
out
*
CertificateSigningRequestSpec
,
s
conversion
.
Scope
)
error
{
func
autoConvert_certificates_CertificateSigningRequestSpec_To_v1beta1_CertificateSigningRequestSpec
(
in
*
certificates
.
CertificateSigningRequestSpec
,
out
*
CertificateSigningRequestSpec
,
s
conversion
.
Scope
)
error
{
out
.
Request
=
*
(
*
[]
byte
)(
unsafe
.
Pointer
(
&
in
.
Request
))
if
in
.
Request
==
nil
{
out
.
Request
=
make
([]
byte
,
0
)
}
else
{
out
.
Request
=
*
(
*
[]
byte
)(
unsafe
.
Pointer
(
&
in
.
Request
))
}
out
.
Usages
=
*
(
*
[]
KeyUsage
)(
unsafe
.
Pointer
(
&
in
.
Usages
))
out
.
Usages
=
*
(
*
[]
KeyUsage
)(
unsafe
.
Pointer
(
&
in
.
Usages
))
out
.
Username
=
in
.
Username
out
.
Username
=
in
.
Username
out
.
UID
=
in
.
UID
out
.
UID
=
in
.
UID
...
...
staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -206,7 +206,11 @@ func Convert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCur
...
@@ -206,7 +206,11 @@ func Convert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCur
}
}
func
autoConvert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCurrentStatusList
(
in
*
extensions
.
CustomMetricCurrentStatusList
,
out
*
CustomMetricCurrentStatusList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCurrentStatusList
(
in
*
extensions
.
CustomMetricCurrentStatusList
,
out
*
CustomMetricCurrentStatusList
,
s
conversion
.
Scope
)
error
{
out
.
Items
=
*
(
*
[]
CustomMetricCurrentStatus
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
CustomMetricCurrentStatus
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
CustomMetricCurrentStatus
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -244,7 +248,11 @@ func Convert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList
...
@@ -244,7 +248,11 @@ func Convert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList
}
}
func
autoConvert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList
(
in
*
extensions
.
CustomMetricTargetList
,
out
*
CustomMetricTargetList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList
(
in
*
extensions
.
CustomMetricTargetList
,
out
*
CustomMetricTargetList
,
s
conversion
.
Scope
)
error
{
out
.
Items
=
*
(
*
[]
CustomMetricTarget
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
CustomMetricTarget
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
CustomMetricTarget
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -313,7 +321,7 @@ func autoConvert_extensions_DaemonSetList_To_v1beta1_DaemonSetList(in *extension
...
@@ -313,7 +321,7 @@ func autoConvert_extensions_DaemonSetList_To_v1beta1_DaemonSetList(in *extension
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
DaemonSet
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -513,7 +521,7 @@ func autoConvert_extensions_DeploymentList_To_v1beta1_DeploymentList(in *extensi
...
@@ -513,7 +521,7 @@ func autoConvert_extensions_DeploymentList_To_v1beta1_DeploymentList(in *extensi
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
Deployment
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -698,7 +706,11 @@ func Convert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(in
...
@@ -698,7 +706,11 @@ func Convert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(in
}
}
func
autoConvert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue
(
in
*
extensions
.
HTTPIngressRuleValue
,
out
*
HTTPIngressRuleValue
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue
(
in
*
extensions
.
HTTPIngressRuleValue
,
out
*
HTTPIngressRuleValue
,
s
conversion
.
Scope
)
error
{
out
.
Paths
=
*
(
*
[]
HTTPIngressPath
)(
unsafe
.
Pointer
(
&
in
.
Paths
))
if
in
.
Paths
==
nil
{
out
.
Paths
=
make
([]
HTTPIngressPath
,
0
)
}
else
{
out
.
Paths
=
*
(
*
[]
HTTPIngressPath
)(
unsafe
.
Pointer
(
&
in
.
Paths
))
}
return
nil
return
nil
}
}
...
@@ -808,7 +820,11 @@ func Convert_v1beta1_IngressList_To_extensions_IngressList(in *IngressList, out
...
@@ -808,7 +820,11 @@ 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
{
func
autoConvert_extensions_IngressList_To_v1beta1_IngressList
(
in
*
extensions
.
IngressList
,
out
*
IngressList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
Ingress
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
Ingress
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
Ingress
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -980,7 +996,11 @@ func Convert_v1beta1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *Netwo
...
@@ -980,7 +996,11 @@ func Convert_v1beta1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *Netwo
func
autoConvert_extensions_NetworkPolicyList_To_v1beta1_NetworkPolicyList
(
in
*
extensions
.
NetworkPolicyList
,
out
*
NetworkPolicyList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_NetworkPolicyList_To_v1beta1_NetworkPolicyList
(
in
*
extensions
.
NetworkPolicyList
,
out
*
NetworkPolicyList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
NetworkPolicy
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
NetworkPolicy
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
NetworkPolicy
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -1103,7 +1123,7 @@ func autoConvert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyLi
...
@@ -1103,7 +1123,7 @@ func autoConvert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyLi
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
PodSecurityPolicy
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -1279,7 +1299,7 @@ func autoConvert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in *extensi
...
@@ -1279,7 +1299,7 @@ func autoConvert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in *extensi
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
ReplicaSet
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -1571,7 +1591,11 @@ func Convert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResource
...
@@ -1571,7 +1591,11 @@ func Convert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResource
func
autoConvert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResourceDataList
(
in
*
extensions
.
ThirdPartyResourceDataList
,
out
*
ThirdPartyResourceDataList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResourceDataList
(
in
*
extensions
.
ThirdPartyResourceDataList
,
out
*
ThirdPartyResourceDataList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
ThirdPartyResourceData
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
ThirdPartyResourceData
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
ThirdPartyResourceData
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -1591,7 +1615,11 @@ func Convert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList
...
@@ -1591,7 +1615,11 @@ func Convert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList
func
autoConvert_extensions_ThirdPartyResourceList_To_v1beta1_ThirdPartyResourceList
(
in
*
extensions
.
ThirdPartyResourceList
,
out
*
ThirdPartyResourceList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_extensions_ThirdPartyResourceList_To_v1beta1_ThirdPartyResourceList
(
in
*
extensions
.
ThirdPartyResourceList
,
out
*
ThirdPartyResourceList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
ThirdPartyResource
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
ThirdPartyResource
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
ThirdPartyResource
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -111,7 +111,11 @@ func Convert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(i
...
@@ -111,7 +111,11 @@ func Convert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(i
func
autoConvert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList
(
in
*
policy
.
PodDisruptionBudgetList
,
out
*
PodDisruptionBudgetList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList
(
in
*
policy
.
PodDisruptionBudgetList
,
out
*
PodDisruptionBudgetList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
PodDisruptionBudget
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
PodDisruptionBudget
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
PodDisruptionBudget
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -76,7 +76,11 @@ func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac
...
@@ -76,7 +76,11 @@ func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac
func
autoConvert_rbac_ClusterRole_To_v1alpha1_ClusterRole
(
in
*
rbac
.
ClusterRole
,
out
*
ClusterRole
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRole_To_v1alpha1_ClusterRole
(
in
*
rbac
.
ClusterRole
,
out
*
ClusterRole
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
if
in
.
Rules
==
nil
{
out
.
Rules
=
make
([]
PolicyRule
,
0
)
}
else
{
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
}
return
nil
return
nil
}
}
...
@@ -118,7 +122,7 @@ func autoConvert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac
...
@@ -118,7 +122,7 @@ func autoConvert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac
}
}
}
}
}
else
{
}
else
{
out
.
Subjects
=
nil
out
.
Subjects
=
make
([]
Subject
,
0
)
}
}
if
err
:=
Convert_rbac_RoleRef_To_v1alpha1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
if
err
:=
Convert_rbac_RoleRef_To_v1alpha1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
return
err
return
err
...
@@ -183,7 +187,7 @@ func autoConvert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(
...
@@ -183,7 +187,7 @@ func autoConvert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
ClusterRoleBinding
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -204,7 +208,11 @@ func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleLis
...
@@ -204,7 +208,11 @@ func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleLis
func
autoConvert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList
(
in
*
rbac
.
ClusterRoleList
,
out
*
ClusterRoleList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList
(
in
*
rbac
.
ClusterRoleList
,
out
*
ClusterRoleList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
ClusterRole
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
ClusterRole
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
ClusterRole
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -226,7 +234,11 @@ func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.Po
...
@@ -226,7 +234,11 @@ func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.Po
}
}
func
autoConvert_rbac_PolicyRule_To_v1alpha1_PolicyRule
(
in
*
rbac
.
PolicyRule
,
out
*
PolicyRule
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_PolicyRule_To_v1alpha1_PolicyRule
(
in
*
rbac
.
PolicyRule
,
out
*
PolicyRule
,
s
conversion
.
Scope
)
error
{
out
.
Verbs
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Verbs
))
if
in
.
Verbs
==
nil
{
out
.
Verbs
=
make
([]
string
,
0
)
}
else
{
out
.
Verbs
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Verbs
))
}
out
.
APIGroups
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
APIGroups
))
out
.
APIGroups
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
APIGroups
))
out
.
Resources
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Resources
))
out
.
Resources
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Resources
))
out
.
ResourceNames
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
ResourceNames
))
out
.
ResourceNames
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
ResourceNames
))
...
@@ -272,7 +284,11 @@ func Convert_v1alpha1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.S
...
@@ -272,7 +284,11 @@ func Convert_v1alpha1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.S
func
autoConvert_rbac_Role_To_v1alpha1_Role
(
in
*
rbac
.
Role
,
out
*
Role
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_Role_To_v1alpha1_Role
(
in
*
rbac
.
Role
,
out
*
Role
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
if
in
.
Rules
==
nil
{
out
.
Rules
=
make
([]
PolicyRule
,
0
)
}
else
{
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
}
return
nil
return
nil
}
}
...
@@ -314,7 +330,7 @@ func autoConvert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding,
...
@@ -314,7 +330,7 @@ func autoConvert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding,
}
}
}
}
}
else
{
}
else
{
out
.
Subjects
=
nil
out
.
Subjects
=
make
([]
Subject
,
0
)
}
}
if
err
:=
Convert_rbac_RoleRef_To_v1alpha1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
if
err
:=
Convert_rbac_RoleRef_To_v1alpha1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
return
err
return
err
...
@@ -357,7 +373,7 @@ func autoConvert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleB
...
@@ -357,7 +373,7 @@ func autoConvert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleB
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
RoleBinding
,
0
)
}
}
return
nil
return
nil
}
}
...
@@ -378,7 +394,11 @@ func Convert_v1alpha1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList
...
@@ -378,7 +394,11 @@ func Convert_v1alpha1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList
func
autoConvert_rbac_RoleList_To_v1alpha1_RoleList
(
in
*
rbac
.
RoleList
,
out
*
RoleList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_RoleList_To_v1alpha1_RoleList
(
in
*
rbac
.
RoleList
,
out
*
RoleList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
Role
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
Role
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
Role
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/rbac/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -76,7 +76,11 @@ func Convert_v1beta1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.
...
@@ -76,7 +76,11 @@ func Convert_v1beta1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.
func
autoConvert_rbac_ClusterRole_To_v1beta1_ClusterRole
(
in
*
rbac
.
ClusterRole
,
out
*
ClusterRole
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRole_To_v1beta1_ClusterRole
(
in
*
rbac
.
ClusterRole
,
out
*
ClusterRole
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
if
in
.
Rules
==
nil
{
out
.
Rules
=
make
([]
PolicyRule
,
0
)
}
else
{
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
}
return
nil
return
nil
}
}
...
@@ -99,7 +103,11 @@ func Convert_v1beta1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRo
...
@@ -99,7 +103,11 @@ func Convert_v1beta1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRo
func
autoConvert_rbac_ClusterRoleBinding_To_v1beta1_ClusterRoleBinding
(
in
*
rbac
.
ClusterRoleBinding
,
out
*
ClusterRoleBinding
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRoleBinding_To_v1beta1_ClusterRoleBinding
(
in
*
rbac
.
ClusterRoleBinding
,
out
*
ClusterRoleBinding
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Subjects
=
*
(
*
[]
Subject
)(
unsafe
.
Pointer
(
&
in
.
Subjects
))
if
in
.
Subjects
==
nil
{
out
.
Subjects
=
make
([]
Subject
,
0
)
}
else
{
out
.
Subjects
=
*
(
*
[]
Subject
)(
unsafe
.
Pointer
(
&
in
.
Subjects
))
}
if
err
:=
Convert_rbac_RoleRef_To_v1beta1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
if
err
:=
Convert_rbac_RoleRef_To_v1beta1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
return
err
return
err
}
}
...
@@ -144,7 +152,11 @@ func Convert_v1beta1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *C
...
@@ -144,7 +152,11 @@ func Convert_v1beta1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *C
func
autoConvert_rbac_ClusterRoleBindingList_To_v1beta1_ClusterRoleBindingList
(
in
*
rbac
.
ClusterRoleBindingList
,
out
*
ClusterRoleBindingList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRoleBindingList_To_v1beta1_ClusterRoleBindingList
(
in
*
rbac
.
ClusterRoleBindingList
,
out
*
ClusterRoleBindingList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
ClusterRoleBinding
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
ClusterRoleBinding
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
ClusterRoleBinding
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -164,7 +176,11 @@ func Convert_v1beta1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleList
...
@@ -164,7 +176,11 @@ func Convert_v1beta1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleList
func
autoConvert_rbac_ClusterRoleList_To_v1beta1_ClusterRoleList
(
in
*
rbac
.
ClusterRoleList
,
out
*
ClusterRoleList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_ClusterRoleList_To_v1beta1_ClusterRoleList
(
in
*
rbac
.
ClusterRoleList
,
out
*
ClusterRoleList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
ClusterRole
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
ClusterRole
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
ClusterRole
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -186,7 +202,11 @@ func Convert_v1beta1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.Pol
...
@@ -186,7 +202,11 @@ func Convert_v1beta1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.Pol
}
}
func
autoConvert_rbac_PolicyRule_To_v1beta1_PolicyRule
(
in
*
rbac
.
PolicyRule
,
out
*
PolicyRule
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_PolicyRule_To_v1beta1_PolicyRule
(
in
*
rbac
.
PolicyRule
,
out
*
PolicyRule
,
s
conversion
.
Scope
)
error
{
out
.
Verbs
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Verbs
))
if
in
.
Verbs
==
nil
{
out
.
Verbs
=
make
([]
string
,
0
)
}
else
{
out
.
Verbs
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Verbs
))
}
out
.
APIGroups
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
APIGroups
))
out
.
APIGroups
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
APIGroups
))
out
.
Resources
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Resources
))
out
.
Resources
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
Resources
))
out
.
ResourceNames
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
ResourceNames
))
out
.
ResourceNames
=
*
(
*
[]
string
)(
unsafe
.
Pointer
(
&
in
.
ResourceNames
))
...
@@ -232,7 +252,11 @@ func Convert_v1beta1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.Sc
...
@@ -232,7 +252,11 @@ func Convert_v1beta1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.Sc
func
autoConvert_rbac_Role_To_v1beta1_Role
(
in
*
rbac
.
Role
,
out
*
Role
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_Role_To_v1beta1_Role
(
in
*
rbac
.
Role
,
out
*
Role
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
if
in
.
Rules
==
nil
{
out
.
Rules
=
make
([]
PolicyRule
,
0
)
}
else
{
out
.
Rules
=
*
(
*
[]
PolicyRule
)(
unsafe
.
Pointer
(
&
in
.
Rules
))
}
return
nil
return
nil
}
}
...
@@ -255,7 +279,11 @@ func Convert_v1beta1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.
...
@@ -255,7 +279,11 @@ func Convert_v1beta1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.
func
autoConvert_rbac_RoleBinding_To_v1beta1_RoleBinding
(
in
*
rbac
.
RoleBinding
,
out
*
RoleBinding
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_RoleBinding_To_v1beta1_RoleBinding
(
in
*
rbac
.
RoleBinding
,
out
*
RoleBinding
,
s
conversion
.
Scope
)
error
{
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
ObjectMeta
=
in
.
ObjectMeta
out
.
Subjects
=
*
(
*
[]
Subject
)(
unsafe
.
Pointer
(
&
in
.
Subjects
))
if
in
.
Subjects
==
nil
{
out
.
Subjects
=
make
([]
Subject
,
0
)
}
else
{
out
.
Subjects
=
*
(
*
[]
Subject
)(
unsafe
.
Pointer
(
&
in
.
Subjects
))
}
if
err
:=
Convert_rbac_RoleRef_To_v1beta1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
if
err
:=
Convert_rbac_RoleRef_To_v1beta1_RoleRef
(
&
in
.
RoleRef
,
&
out
.
RoleRef
,
s
);
err
!=
nil
{
return
err
return
err
}
}
...
@@ -278,7 +306,11 @@ func Convert_v1beta1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingList
...
@@ -278,7 +306,11 @@ func Convert_v1beta1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingList
func
autoConvert_rbac_RoleBindingList_To_v1beta1_RoleBindingList
(
in
*
rbac
.
RoleBindingList
,
out
*
RoleBindingList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_RoleBindingList_To_v1beta1_RoleBindingList
(
in
*
rbac
.
RoleBindingList
,
out
*
RoleBindingList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
RoleBinding
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
RoleBinding
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
RoleBinding
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
@@ -298,7 +330,11 @@ func Convert_v1beta1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList,
...
@@ -298,7 +330,11 @@ func Convert_v1beta1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList,
func
autoConvert_rbac_RoleList_To_v1beta1_RoleList
(
in
*
rbac
.
RoleList
,
out
*
RoleList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_rbac_RoleList_To_v1beta1_RoleList
(
in
*
rbac
.
RoleList
,
out
*
RoleList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
Role
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
Role
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
Role
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/settings/v1alpha1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -101,7 +101,7 @@ func autoConvert_settings_PodPresetList_To_v1alpha1_PodPresetList(in *settings.P
...
@@ -101,7 +101,7 @@ func autoConvert_settings_PodPresetList_To_v1alpha1_PodPresetList(in *settings.P
}
}
}
}
}
else
{
}
else
{
out
.
Items
=
nil
out
.
Items
=
make
([]
PodPreset
,
0
)
}
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/storage/v1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -76,7 +76,11 @@ func Convert_v1_StorageClassList_To_storage_StorageClassList(in *StorageClassLis
...
@@ -76,7 +76,11 @@ func Convert_v1_StorageClassList_To_storage_StorageClassList(in *StorageClassLis
func
autoConvert_storage_StorageClassList_To_v1_StorageClassList
(
in
*
storage
.
StorageClassList
,
out
*
StorageClassList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_storage_StorageClassList_To_v1_StorageClassList
(
in
*
storage
.
StorageClassList
,
out
*
StorageClassList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
StorageClass
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
StorageClass
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
StorageClass
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.conversion.go
View file @
7ceeee86
...
@@ -76,7 +76,11 @@ func Convert_v1beta1_StorageClassList_To_storage_StorageClassList(in *StorageCla
...
@@ -76,7 +76,11 @@ func Convert_v1beta1_StorageClassList_To_storage_StorageClassList(in *StorageCla
func
autoConvert_storage_StorageClassList_To_v1beta1_StorageClassList
(
in
*
storage
.
StorageClassList
,
out
*
StorageClassList
,
s
conversion
.
Scope
)
error
{
func
autoConvert_storage_StorageClassList_To_v1beta1_StorageClassList
(
in
*
storage
.
StorageClassList
,
out
*
StorageClassList
,
s
conversion
.
Scope
)
error
{
out
.
ListMeta
=
in
.
ListMeta
out
.
ListMeta
=
in
.
ListMeta
out
.
Items
=
*
(
*
[]
StorageClass
)(
unsafe
.
Pointer
(
&
in
.
Items
))
if
in
.
Items
==
nil
{
out
.
Items
=
make
([]
StorageClass
,
0
)
}
else
{
out
.
Items
=
*
(
*
[]
StorageClass
)(
unsafe
.
Pointer
(
&
in
.
Items
))
}
return
nil
return
nil
}
}
...
...
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