generated: staging

This commit is contained in:
Clayton Coleman
2017-01-16 23:01:02 -05:00
parent 9a2a50cda7
commit 660095776a
187 changed files with 8498 additions and 6015 deletions

View File

@@ -21,11 +21,10 @@ limitations under the License.
package v1alpha1 package v1alpha1
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/kubernetes/pkg/api/v1" reflect "reflect"
) )
func init() { func init() {
@@ -49,8 +48,10 @@ func DeepCopy_v1alpha1_APIService(in interface{}, out interface{}, c *conversion
in := in.(*APIService) in := in.(*APIService)
out := out.(*APIService) out := out.(*APIService)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1alpha1_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1alpha1_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,11 +21,10 @@ limitations under the License.
package apiregistration package apiregistration
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -49,8 +48,10 @@ func DeepCopy_apiregistration_APIService(in interface{}, out interface{}, c *con
in := in.(*APIService) in := in.(*APIService)
out := out.(*APIService) out := out.(*APIService)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_apiregistration_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_apiregistration_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,11 +21,11 @@ limitations under the License.
package federation package federation
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect"
) )
func init() { func init() {
@@ -52,8 +52,10 @@ func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion.
in := in.(*Cluster) in := in.(*Cluster)
out := out.(*Cluster) out := out.(*Cluster)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_federation_ClusterSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_federation_ClusterSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,14 +21,13 @@ limitations under the License.
package api package api
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
fields "k8s.io/kubernetes/pkg/fields" fields "k8s.io/kubernetes/pkg/fields"
reflect "reflect"
) )
func init() { func init() {
@@ -305,8 +304,10 @@ func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Binding) in := in.(*Binding)
out := out.(*Binding) out := out.(*Binding)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
return nil return nil
} }
@@ -377,8 +378,10 @@ func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion
in := in.(*ComponentStatus) in := in.(*ComponentStatus)
out := out.(*ComponentStatus) out := out.(*ComponentStatus)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
@@ -414,8 +417,10 @@ func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Clone
in := in.(*ConfigMap) in := in.(*ConfigMap)
out := out.(*ConfigMap) out := out.(*ConfigMap)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -850,8 +855,10 @@ func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Clone
in := in.(*Endpoints) in := in.(*Endpoints)
out := out.(*Endpoints) out := out.(*Endpoints)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Subsets != nil { if in.Subsets != nil {
in, out := &in.Subsets, &out.Subsets in, out := &in.Subsets, &out.Subsets
@@ -950,8 +957,10 @@ func DeepCopy_api_Event(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Event) in := in.(*Event)
out := out.(*Event) out := out.(*Event)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
out.FirstTimestamp = in.FirstTimestamp.DeepCopy() out.FirstTimestamp = in.FirstTimestamp.DeepCopy()
out.LastTimestamp = in.LastTimestamp.DeepCopy() out.LastTimestamp = in.LastTimestamp.DeepCopy()
@@ -1189,8 +1198,10 @@ func DeepCopy_api_LimitRange(in interface{}, out interface{}, c *conversion.Clon
in := in.(*LimitRange) in := in.(*LimitRange)
out := out.(*LimitRange) out := out.(*LimitRange)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1377,8 +1388,10 @@ func DeepCopy_api_Namespace(in interface{}, out interface{}, c *conversion.Clone
in := in.(*Namespace) in := in.(*Namespace)
out := out.(*Namespace) out := out.(*Namespace)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1435,8 +1448,10 @@ func DeepCopy_api_Node(in interface{}, out interface{}, c *conversion.Cloner) er
in := in.(*Node) in := in.(*Node)
out := out.(*Node) out := out.(*Node)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -1745,8 +1760,10 @@ func DeepCopy_api_PersistentVolume(in interface{}, out interface{}, c *conversio
in := in.(*PersistentVolume) in := in.(*PersistentVolume)
out := out.(*PersistentVolume) out := out.(*PersistentVolume)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1760,8 +1777,10 @@ func DeepCopy_api_PersistentVolumeClaim(in interface{}, out interface{}, c *conv
in := in.(*PersistentVolumeClaim) in := in.(*PersistentVolumeClaim)
out := out.(*PersistentVolumeClaim) out := out.(*PersistentVolumeClaim)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2026,8 +2045,10 @@ func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) err
in := in.(*Pod) in := in.(*Pod)
out := out.(*Pod) out := out.(*Pod)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2376,8 +2397,10 @@ func DeepCopy_api_PodStatusResult(in interface{}, out interface{}, c *conversion
in := in.(*PodStatusResult) in := in.(*PodStatusResult)
out := out.(*PodStatusResult) out := out.(*PodStatusResult)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -2391,8 +2414,10 @@ func DeepCopy_api_PodTemplate(in interface{}, out interface{}, c *conversion.Clo
in := in.(*PodTemplate) in := in.(*PodTemplate)
out := out.(*PodTemplate) out := out.(*PodTemplate)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -2424,8 +2449,10 @@ func DeepCopy_api_PodTemplateSpec(in interface{}, out interface{}, c *conversion
in := in.(*PodTemplateSpec) in := in.(*PodTemplateSpec)
out := out.(*PodTemplateSpec) out := out.(*PodTemplateSpec)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2518,8 +2545,10 @@ func DeepCopy_api_RangeAllocation(in interface{}, out interface{}, c *conversion
in := in.(*RangeAllocation) in := in.(*RangeAllocation)
out := out.(*RangeAllocation) out := out.(*RangeAllocation)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2535,8 +2564,10 @@ func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conv
in := in.(*ReplicationController) in := in.(*ReplicationController)
out := out.(*ReplicationController) out := out.(*ReplicationController)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2632,8 +2663,10 @@ func DeepCopy_api_ResourceQuota(in interface{}, out interface{}, c *conversion.C
in := in.(*ResourceQuota) in := in.(*ResourceQuota)
out := out.(*ResourceQuota) out := out.(*ResourceQuota)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2746,8 +2779,10 @@ func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Secret) in := in.(*Secret)
out := out.(*Secret) out := out.(*Secret)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2869,8 +2904,10 @@ func DeepCopy_api_Service(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Service) in := in.(*Service)
out := out.(*Service) out := out.(*Service)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2887,8 +2924,10 @@ func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion.
in := in.(*ServiceAccount) in := in.(*ServiceAccount)
out := out.(*ServiceAccount) out := out.(*ServiceAccount)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Secrets != nil { if in.Secrets != nil {
in, out := &in.Secrets, &out.Secrets in, out := &in.Secrets, &out.Secrets

View File

@@ -21,12 +21,11 @@ limitations under the License.
package apps package apps
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect"
) )
func init() { func init() {
@@ -49,8 +48,10 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl
in := in.(*StatefulSet) in := in.(*StatefulSet)
out := out.(*StatefulSet) out := out.(*StatefulSet)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,11 +21,10 @@ limitations under the License.
package authentication package authentication
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -48,8 +47,10 @@ func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *con
in := in.(*TokenReview) in := in.(*TokenReview)
out := out.(*TokenReview) out := out.(*TokenReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err return err

View File

@@ -21,11 +21,10 @@ limitations under the License.
package authorization package authorization
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -52,8 +51,10 @@ func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interfa
in := in.(*LocalSubjectAccessReview) in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -85,8 +86,10 @@ func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interfac
in := in.(*SelfSubjectAccessReview) in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -119,8 +122,10 @@ func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{},
in := in.(*SubjectAccessReview) in := in.(*SubjectAccessReview)
out := out.(*SubjectAccessReview) out := out.(*SubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,12 +21,10 @@ limitations under the License.
package autoscaling package autoscaling
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -62,8 +60,10 @@ func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -141,8 +141,10 @@ func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.C
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
return nil return nil
} }

View File

@@ -21,12 +21,11 @@ limitations under the License.
package batch package batch
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect"
) )
func init() { func init() {
@@ -56,8 +55,10 @@ func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Clone
in := in.(*CronJob) in := in.(*CronJob)
out := out.(*CronJob) out := out.(*CronJob)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -135,8 +136,10 @@ func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -250,8 +253,10 @@ func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.C
in := in.(*JobTemplate) in := in.(*JobTemplate)
out := out.(*JobTemplate) out := out.(*JobTemplate)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -265,8 +270,10 @@ func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversi
in := in.(*JobTemplateSpec) in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec) out := out.(*JobTemplateSpec)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,11 +21,10 @@ limitations under the License.
package certificates package certificates
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -49,8 +48,10 @@ func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interfa
in := in.(*CertificateSigningRequest) in := in.(*CertificateSigningRequest)
out := out.(*CertificateSigningRequest) out := out.(*CertificateSigningRequest)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,13 +21,12 @@ limitations under the License.
package extensions package extensions
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
intstr "k8s.io/kubernetes/pkg/util/intstr" intstr "k8s.io/kubernetes/pkg/util/intstr"
reflect "reflect"
) )
func init() { func init() {
@@ -167,8 +166,10 @@ func DeepCopy_extensions_DaemonSet(in interface{}, out interface{}, c *conversio
in := in.(*DaemonSet) in := in.(*DaemonSet)
out := out.(*DaemonSet) out := out.(*DaemonSet)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -229,8 +230,10 @@ func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversi
in := in.(*Deployment) in := in.(*Deployment)
out := out.(*Deployment) out := out.(*Deployment)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -421,8 +424,10 @@ func DeepCopy_extensions_Ingress(in interface{}, out interface{}, c *conversion.
in := in.(*Ingress) in := in.(*Ingress)
out := out.(*Ingress) out := out.(*Ingress)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_IngressSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_IngressSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -552,8 +557,10 @@ func DeepCopy_extensions_NetworkPolicy(in interface{}, out interface{}, c *conve
in := in.(*NetworkPolicy) in := in.(*NetworkPolicy)
out := out.(*NetworkPolicy) out := out.(*NetworkPolicy)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -679,8 +686,10 @@ func DeepCopy_extensions_PodSecurityPolicy(in interface{}, out interface{}, c *c
in := in.(*PodSecurityPolicy) in := in.(*PodSecurityPolicy)
out := out.(*PodSecurityPolicy) out := out.(*PodSecurityPolicy)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_PodSecurityPolicySpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_PodSecurityPolicySpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -768,8 +777,10 @@ func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversi
in := in.(*ReplicaSet) in := in.(*ReplicaSet)
out := out.(*ReplicaSet) out := out.(*ReplicaSet)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -909,8 +920,10 @@ func DeepCopy_extensions_Scale(in interface{}, out interface{}, c *conversion.Cl
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -966,8 +979,10 @@ func DeepCopy_extensions_ThirdPartyResource(in interface{}, out interface{}, c *
in := in.(*ThirdPartyResource) in := in.(*ThirdPartyResource)
out := out.(*ThirdPartyResource) out := out.(*ThirdPartyResource)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Versions != nil { if in.Versions != nil {
in, out := &in.Versions, &out.Versions in, out := &in.Versions, &out.Versions
@@ -985,8 +1000,10 @@ func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{},
in := in.(*ThirdPartyResourceData) in := in.(*ThirdPartyResourceData)
out := out.(*ThirdPartyResourceData) out := out.(*ThirdPartyResourceData)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data

View File

@@ -21,11 +21,10 @@ limitations under the License.
package imagepolicy package imagepolicy
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -48,8 +47,10 @@ func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conver
in := in.(*ImageReview) in := in.(*ImageReview)
out := out.(*ImageReview) out := out.(*ImageReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,12 +21,11 @@ limitations under the License.
package policy package policy
import ( import (
reflect "reflect"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect"
) )
func init() { func init() {
@@ -50,8 +49,10 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo
in := in.(*Eviction) in := in.(*Eviction)
out := out.(*Eviction) out := out.(*Eviction)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.DeleteOptions != nil { if in.DeleteOptions != nil {
in, out := &in.DeleteOptions, &out.DeleteOptions in, out := &in.DeleteOptions, &out.DeleteOptions
@@ -69,8 +70,10 @@ func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *con
in := in.(*PodDisruptionBudget) in := in.(*PodDisruptionBudget)
out := out.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,11 +21,10 @@ limitations under the License.
package rbac package rbac
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -55,8 +54,10 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl
in := in.(*ClusterRole) in := in.(*ClusterRole)
out := out.(*ClusterRole) out := out.(*ClusterRole)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
@@ -76,8 +77,10 @@ func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conver
in := in.(*ClusterRoleBinding) in := in.(*ClusterRoleBinding)
out := out.(*ClusterRoleBinding) out := out.(*ClusterRoleBinding)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Subjects != nil { if in.Subjects != nil {
in, out := &in.Subjects, &out.Subjects in, out := &in.Subjects, &out.Subjects
@@ -173,8 +176,10 @@ func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Role) in := in.(*Role)
out := out.(*Role) out := out.(*Role)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
@@ -194,8 +199,10 @@ func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cl
in := in.(*RoleBinding) in := in.(*RoleBinding)
out := out.(*RoleBinding) out := out.(*RoleBinding)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Subjects != nil { if in.Subjects != nil {
in, out := &in.Subjects, &out.Subjects in, out := &in.Subjects, &out.Subjects

View File

@@ -21,11 +21,10 @@ limitations under the License.
package storage package storage
import ( import (
reflect "reflect" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" reflect "reflect"
) )
func init() { func init() {
@@ -46,8 +45,10 @@ func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversio
in := in.(*StorageClass) in := in.(*StorageClass)
out := out.(*StorageClass) out := out.(*StorageClass)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Parameters != nil { if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters in, out := &in.Parameters, &out.Parameters

View File

@@ -58,6 +58,7 @@ go_test(
"//pkg/securitycontext:go_default_library", "//pkg/securitycontext:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
"//vendor:k8s.io/apimachinery/pkg/runtime", "//vendor:k8s.io/apimachinery/pkg/runtime",
"//vendor:k8s.io/apiserver/pkg/storage/names",
], ],
) )

View File

@@ -21,11 +21,11 @@ go_library(
"//pkg/api:go_default_library", "//pkg/api:go_default_library",
"//pkg/apis/imagepolicy/install:go_default_library", "//pkg/apis/imagepolicy/install:go_default_library",
"//vendor:github.com/golang/glog", "//vendor:github.com/golang/glog",
"//vendor:k8s.io/apimachinery/pkg/api/errors",
"//vendor:k8s.io/apimachinery/pkg/runtime/schema", "//vendor:k8s.io/apimachinery/pkg/runtime/schema",
"//vendor:k8s.io/apimachinery/pkg/util/yaml", "//vendor:k8s.io/apimachinery/pkg/util/yaml",
"//vendor:k8s.io/apiserver/pkg/util/cache", "//vendor:k8s.io/apiserver/pkg/util/cache",
"//vendor:k8s.io/apiserver/pkg/webhook", "//vendor:k8s.io/apiserver/pkg/webhook",
"//vendor:k8s.io/client-go/pkg/api/errors",
"//vendor:k8s.io/client-go/pkg/apis/imagepolicy/install", "//vendor:k8s.io/client-go/pkg/apis/imagepolicy/install",
"//vendor:k8s.io/client-go/pkg/apis/imagepolicy/v1alpha1", "//vendor:k8s.io/client-go/pkg/apis/imagepolicy/v1alpha1",
"//vendor:k8s.io/client-go/rest", "//vendor:k8s.io/client-go/rest",

View File

@@ -140,6 +140,29 @@ func (ListMeta) SwaggerDoc() map[string]string {
return map_ListMeta return map_ListMeta
} }
var map_ObjectMeta = map[string]string{
"": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
"name": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"generateName": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency",
"namespace": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",
"selfLink": "SelfLink is a URL representing this object. Populated by the system. Read-only.",
"uid": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
"resourceVersion": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency",
"generation": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
"creationTimestamp": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
"deletionTimestamp": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
"deletionGracePeriodSeconds": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
"labels": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
"annotations": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
"ownerReferences": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
"finalizers": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.",
"clusterName": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.",
}
func (ObjectMeta) SwaggerDoc() map[string]string {
return map_ObjectMeta
}
var map_OwnerReference = map[string]string{ var map_OwnerReference = map[string]string{
"": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", "": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.",
"apiVersion": "API version of the referent.", "apiVersion": "API version of the referent.",

View File

@@ -17,7 +17,7 @@ limitations under the License.
package conversion package conversion
import ( import (
"k8s.io/kubernetes/third_party/forked/golang/reflect" "k8s.io/apimachinery/third_party/forked/golang/reflect"
) )
// The code for this type must be located in third_party, since it forks from // The code for this type must be located in third_party, since it forks from

View File

@@ -18,7 +18,6 @@ package meta
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/types"
@@ -30,46 +29,6 @@ type VersionInterfaces struct {
MetadataAccessor MetadataAccessor
} }
type ObjectMetaAccessor interface {
GetObjectMeta() Object
}
// Object lets you work with object metadata from any of the versioned or
// internal API objects. Attempting to set or retrieve a field on an object that does
// not support that field (Name, UID, Namespace on lists) will be a no-op and return
// a default value.
type Object interface {
GetNamespace() string
SetNamespace(namespace string)
GetName() string
SetName(name string)
GetGenerateName() string
SetGenerateName(name string)
GetUID() types.UID
SetUID(uid types.UID)
GetResourceVersion() string
SetResourceVersion(version string)
GetSelfLink() string
SetSelfLink(selfLink string)
GetCreationTimestamp() metav1.Time
SetCreationTimestamp(timestamp metav1.Time)
GetDeletionTimestamp() *metav1.Time
SetDeletionTimestamp(timestamp *metav1.Time)
GetLabels() map[string]string
SetLabels(labels map[string]string)
GetAnnotations() map[string]string
SetAnnotations(annotations map[string]string)
GetFinalizers() []string
SetFinalizers(finalizers []string)
GetOwnerReferences() []metav1.OwnerReference
SetOwnerReferences([]metav1.OwnerReference)
GetClusterName() string
SetClusterName(clusterName string)
}
// TODO: move me to pkg/apis/meta/v1/unstructured once Object is moved to pkg/apis/meta/v1
var _ Object = &unstructured.Unstructured{}
type ListMetaAccessor interface { type ListMetaAccessor interface {
GetListMeta() List GetListMeta() List
} }

View File

@@ -20,13 +20,13 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"github.com/golang/glog"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/conversion" "k8s.io/apimachinery/pkg/conversion"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/types"
"github.com/golang/glog"
) )
// errNotList is returned when an object implements the Object style interfaces but not the List style // errNotList is returned when an object implements the Object style interfaces but not the List style
@@ -54,9 +54,9 @@ func ListAccessor(obj interface{}) (List, error) {
return m, nil return m, nil
} }
return nil, errNotList return nil, errNotList
case Object: case metav1.Object:
return t, nil return t, nil
case ObjectMetaAccessor: case metav1.ObjectMetaAccessor:
if m := t.GetObjectMeta(); m != nil { if m := t.GetObjectMeta(); m != nil {
return m, nil return m, nil
} }
@@ -75,11 +75,11 @@ var errNotObject = fmt.Errorf("object does not implement the Object interfaces")
// required fields are missing. Fields that are not required return the default // required fields are missing. Fields that are not required return the default
// value and are a no-op if set. // value and are a no-op if set.
// TODO: return bool instead of error // TODO: return bool instead of error
func Accessor(obj interface{}) (Object, error) { func Accessor(obj interface{}) (metav1.Object, error) {
switch t := obj.(type) { switch t := obj.(type) {
case Object: case metav1.Object:
return t, nil return t, nil
case ObjectMetaAccessor: case metav1.ObjectMetaAccessor:
if m := t.GetObjectMeta(); m != nil { if m := t.GetObjectMeta(); m != nil {
return m, nil return m, nil
} }

View File

@@ -246,6 +246,154 @@ message ListMeta {
optional string resourceVersion = 2; optional string resourceVersion = 2;
} }
// ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create.
message ObjectMeta {
// Name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name
// automatically. Name is primarily intended for creation idempotence and configuration
// definition.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
// +optional
optional string name = 1;
// GenerateName is an optional prefix, used by the server, to generate a unique
// name ONLY IF the Name field has not been provided.
// If this field is used, the name returned to the client will be different
// than the name passed. This value will also be combined with a unique suffix.
// The provided value has the same validation rules as the Name field,
// and may be truncated by the length of the suffix required to make the value
// unique on the server.
//
// If this field is specified and the generated name exists, the server will
// NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
// should retry (optionally after the time indicated in the Retry-After header).
//
// Applied only if Name is not specified.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency
// +optional
optional string generateName = 2;
// Namespace defines the space within each name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
// Not all objects are required to be scoped to a namespace - the value of this field for
// those objects will be empty.
//
// Must be a DNS_LABEL.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/namespaces
// +optional
optional string namespace = 3;
// SelfLink is a URL representing this object.
// Populated by the system.
// Read-only.
// +optional
optional string selfLink = 4;
// UID is the unique in time and space value for this object. It is typically generated by
// the server on successful creation of a resource and is not allowed to change on PUT
// operations.
//
// Populated by the system.
// Read-only.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
// +optional
optional string uid = 5;
// An opaque value that represents the internal version of this object that can
// be used by clients to determine when objects have changed. May be used for optimistic
// concurrency, change detection, and the watch operation on a resource or set of resources.
// Clients must treat these values as opaque and passed unmodified back to the server.
// They may only be valid for a particular resource or set of resources.
//
// Populated by the system.
// Read-only.
// Value must be treated as opaque by clients and .
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency
// +optional
optional string resourceVersion = 6;
// A sequence number representing a specific generation of the desired state.
// Populated by the system. Read-only.
// +optional
optional int64 generation = 7;
// CreationTimestamp is a timestamp representing the server time when this object was
// created. It is not guaranteed to be set in happens-before order across separate operations.
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
//
// Populated by the system.
// Read-only.
// Null for lists.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
optional Time creationTimestamp = 8;
// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
// directly settable by a client. The resource is expected to be deleted (no longer visible
// from resource lists, and not reachable by name) after the time in this field. Once set,
// this value may not be unset or be set further into the future, although it may be shortened
// or the resource may be deleted prior to this time. For example, a user may request that
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard
// termination signal (SIGKILL) to the container and after cleanup, remove the pod from the
// API. In the presence of network partitions, this object may still exist after this
// timestamp, until an administrator or automated process can determine the resource is
// fully terminated.
// If not set, graceful deletion of the object has not been requested.
//
// Populated by the system when a graceful deletion is requested.
// Read-only.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
optional Time deletionTimestamp = 9;
// Number of seconds allowed for this object to gracefully terminate before
// it will be removed from the system. Only set when deletionTimestamp is also set.
// May only be shortened.
// Read-only.
// +optional
optional int64 deletionGracePeriodSeconds = 10;
// Map of string keys and values that can be used to organize and categorize
// (scope and select) objects. May match selectors of replication controllers
// and services.
// More info: http://kubernetes.io/docs/user-guide/labels
// +optional
map<string, string> labels = 11;
// Annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
// More info: http://kubernetes.io/docs/user-guide/annotations
// +optional
map<string, string> annotations = 12;
// List of objects depended by this object. If ALL objects in the list have
// been deleted, this object will be garbage collected. If this object is managed by a controller,
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
// +optional
repeated OwnerReference ownerReferences = 13;
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
// from the list. If the deletionTimestamp of the object is non-nil, entries
// in this list can only be removed.
// +optional
repeated string finalizers = 14;
// The name of the cluster which the object belongs to.
// This is used to distinguish resources with same name and namespace in different clusters.
// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
// +optional
optional string clusterName = 15;
}
// OwnerReference contains enough information to let you identify an owning // OwnerReference contains enough information to let you identify an owning
// object. Currently, an owning object must be in the same namespace, so there // object. Currently, an owning object must be in the same namespace, so there
// is no namespace field. // is no namespace field.

View File

@@ -181,3 +181,17 @@ func ExtractGroupVersions(l *APIGroupList) []string {
} }
return groupVersions return groupVersions
} }
// HasAnnotation returns a bool if passed in annotation exists
func HasAnnotation(obj ObjectMeta, ann string) bool {
_, found := obj.Annotations[ann]
return found
}
// SetMetaDataAnnotation sets the annotation and value
func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string) {
if obj.Annotations == nil {
obj.Annotations = make(map[string]string)
}
obj.Annotations[ann] = value
}

View File

@@ -17,11 +17,78 @@ limitations under the License.
package v1 package v1
import ( import (
"k8s.io/apimachinery/pkg/conversion"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
) )
// ObjectMetaFor returns a pointer to a provided object's ObjectMeta.
// TODO: allow runtime.Unknown to extract this object
// TODO: Remove this function and use meta.ObjectMetaAccessor() instead.
func ObjectMetaFor(obj runtime.Object) (*ObjectMeta, error) {
v, err := conversion.EnforcePtr(obj)
if err != nil {
return nil, err
}
var meta *ObjectMeta
err = runtime.FieldPtr(v, "ObjectMeta", &meta)
return meta, err
}
// ListMetaFor returns a pointer to a provided object's ListMeta,
// or an error if the object does not have that pointer.
// TODO: allow runtime.Unknown to extract this object
// TODO: Remove this function and use meta.ObjectMetaAccessor() instead.
func ListMetaFor(obj runtime.Object) (*ListMeta, error) {
v, err := conversion.EnforcePtr(obj)
if err != nil {
return nil, err
}
var meta *ListMeta
err = runtime.FieldPtr(v, "ListMeta", &meta)
return meta, err
}
// TODO: move this, Object, List, and Type to a different package
type ObjectMetaAccessor interface {
GetObjectMeta() Object
}
// Object lets you work with object metadata from any of the versioned or
// internal API objects. Attempting to set or retrieve a field on an object that does
// not support that field (Name, UID, Namespace on lists) will be a no-op and return
// a default value.
type Object interface {
GetNamespace() string
SetNamespace(namespace string)
GetName() string
SetName(name string)
GetGenerateName() string
SetGenerateName(name string)
GetUID() types.UID
SetUID(uid types.UID)
GetResourceVersion() string
SetResourceVersion(version string)
GetSelfLink() string
SetSelfLink(selfLink string)
GetCreationTimestamp() Time
SetCreationTimestamp(timestamp Time)
GetDeletionTimestamp() *Time
SetDeletionTimestamp(timestamp *Time)
GetLabels() map[string]string
SetLabels(labels map[string]string)
GetAnnotations() map[string]string
SetAnnotations(annotations map[string]string)
GetFinalizers() []string
SetFinalizers(finalizers []string)
GetOwnerReferences() []OwnerReference
SetOwnerReferences([]OwnerReference)
GetClusterName() string
SetClusterName(clusterName string)
}
// ListMetaAccessor retrieves the list interface from an object // ListMetaAccessor retrieves the list interface from an object
// TODO: move this, and TypeMeta and ListMeta, to a different package
type ListMetaAccessor interface { type ListMetaAccessor interface {
GetListMeta() List GetListMeta() List
} }
@@ -64,3 +131,71 @@ func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind {
} }
func (obj *ListMeta) GetListMeta() List { return obj } func (obj *ListMeta) GetListMeta() List { return obj }
func (obj *ObjectMeta) GetObjectMeta() Object { return obj }
// Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows
// fast, direct access to metadata fields for API objects.
func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace }
func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace }
func (meta *ObjectMeta) GetName() string { return meta.Name }
func (meta *ObjectMeta) SetName(name string) { meta.Name = name }
func (meta *ObjectMeta) GetGenerateName() string { return meta.GenerateName }
func (meta *ObjectMeta) SetGenerateName(generateName string) { meta.GenerateName = generateName }
func (meta *ObjectMeta) GetUID() types.UID { return meta.UID }
func (meta *ObjectMeta) SetUID(uid types.UID) { meta.UID = uid }
func (meta *ObjectMeta) GetResourceVersion() string { return meta.ResourceVersion }
func (meta *ObjectMeta) SetResourceVersion(version string) { meta.ResourceVersion = version }
func (meta *ObjectMeta) GetSelfLink() string { return meta.SelfLink }
func (meta *ObjectMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink }
func (meta *ObjectMeta) GetCreationTimestamp() Time { return meta.CreationTimestamp }
func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp Time) {
meta.CreationTimestamp = creationTimestamp
}
func (meta *ObjectMeta) GetDeletionTimestamp() *Time { return meta.DeletionTimestamp }
func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *Time) {
meta.DeletionTimestamp = deletionTimestamp
}
func (meta *ObjectMeta) GetLabels() map[string]string { return meta.Labels }
func (meta *ObjectMeta) SetLabels(labels map[string]string) { meta.Labels = labels }
func (meta *ObjectMeta) GetAnnotations() map[string]string { return meta.Annotations }
func (meta *ObjectMeta) SetAnnotations(annotations map[string]string) { meta.Annotations = annotations }
func (meta *ObjectMeta) GetFinalizers() []string { return meta.Finalizers }
func (meta *ObjectMeta) SetFinalizers(finalizers []string) { meta.Finalizers = finalizers }
func (meta *ObjectMeta) GetOwnerReferences() []OwnerReference {
ret := make([]OwnerReference, len(meta.OwnerReferences))
for i := 0; i < len(meta.OwnerReferences); i++ {
ret[i].Kind = meta.OwnerReferences[i].Kind
ret[i].Name = meta.OwnerReferences[i].Name
ret[i].UID = meta.OwnerReferences[i].UID
ret[i].APIVersion = meta.OwnerReferences[i].APIVersion
if meta.OwnerReferences[i].Controller != nil {
value := *meta.OwnerReferences[i].Controller
ret[i].Controller = &value
}
}
return ret
}
func (meta *ObjectMeta) SetOwnerReferences(references []OwnerReference) {
newReferences := make([]OwnerReference, len(references))
for i := 0; i < len(references); i++ {
newReferences[i].Kind = references[i].Kind
newReferences[i].Name = references[i].Name
newReferences[i].UID = references[i].UID
newReferences[i].APIVersion = references[i].APIVersion
if references[i].Controller != nil {
value := *references[i].Controller
newReferences[i].Controller = &value
}
}
meta.OwnerReferences = newReferences
}
func (meta *ObjectMeta) GetClusterName() string {
return meta.ClusterName
}
func (meta *ObjectMeta) SetClusterName(clusterName string) {
meta.ClusterName = clusterName
}

View File

@@ -145,8 +145,8 @@ func (t Time) MarshalJSON() ([]byte, error) {
return json.Marshal(t.UTC().Format(time.RFC3339)) return json.Marshal(t.UTC().Format(time.RFC3339))
} }
func (_ Time) OpenAPIDefinition() common.OpenAPIDefinition { func (_ Time) OpenAPIDefinition() openapi.OpenAPIDefinition {
return common.OpenAPIDefinition{ return openapi.OpenAPIDefinition{
Schema: spec.Schema{ Schema: spec.Schema{
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Type: []string{"string"}, Type: []string{"string"},

View File

@@ -71,6 +71,154 @@ type ListMeta struct {
ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"` ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`
} }
// ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create.
type ObjectMeta struct {
// Name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name
// automatically. Name is primarily intended for creation idempotence and configuration
// definition.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
// +optional
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// GenerateName is an optional prefix, used by the server, to generate a unique
// name ONLY IF the Name field has not been provided.
// If this field is used, the name returned to the client will be different
// than the name passed. This value will also be combined with a unique suffix.
// The provided value has the same validation rules as the Name field,
// and may be truncated by the length of the suffix required to make the value
// unique on the server.
//
// If this field is specified and the generated name exists, the server will
// NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
// should retry (optionally after the time indicated in the Retry-After header).
//
// Applied only if Name is not specified.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency
// +optional
GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`
// Namespace defines the space within each name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
// Not all objects are required to be scoped to a namespace - the value of this field for
// those objects will be empty.
//
// Must be a DNS_LABEL.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/namespaces
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
// SelfLink is a URL representing this object.
// Populated by the system.
// Read-only.
// +optional
SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"`
// UID is the unique in time and space value for this object. It is typically generated by
// the server on successful creation of a resource and is not allowed to change on PUT
// operations.
//
// Populated by the system.
// Read-only.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
// +optional
UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`
// An opaque value that represents the internal version of this object that can
// be used by clients to determine when objects have changed. May be used for optimistic
// concurrency, change detection, and the watch operation on a resource or set of resources.
// Clients must treat these values as opaque and passed unmodified back to the server.
// They may only be valid for a particular resource or set of resources.
//
// Populated by the system.
// Read-only.
// Value must be treated as opaque by clients and .
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency
// +optional
ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`
// A sequence number representing a specific generation of the desired state.
// Populated by the system. Read-only.
// +optional
Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"`
// CreationTimestamp is a timestamp representing the server time when this object was
// created. It is not guaranteed to be set in happens-before order across separate operations.
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
//
// Populated by the system.
// Read-only.
// Null for lists.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
CreationTimestamp Time `json:"creationTimestamp,omitempty" protobuf:"bytes,8,opt,name=creationTimestamp"`
// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
// directly settable by a client. The resource is expected to be deleted (no longer visible
// from resource lists, and not reachable by name) after the time in this field. Once set,
// this value may not be unset or be set further into the future, although it may be shortened
// or the resource may be deleted prior to this time. For example, a user may request that
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard
// termination signal (SIGKILL) to the container and after cleanup, remove the pod from the
// API. In the presence of network partitions, this object may still exist after this
// timestamp, until an administrator or automated process can determine the resource is
// fully terminated.
// If not set, graceful deletion of the object has not been requested.
//
// Populated by the system when a graceful deletion is requested.
// Read-only.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
DeletionTimestamp *Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"`
// Number of seconds allowed for this object to gracefully terminate before
// it will be removed from the system. Only set when deletionTimestamp is also set.
// May only be shortened.
// Read-only.
// +optional
DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds"`
// Map of string keys and values that can be used to organize and categorize
// (scope and select) objects. May match selectors of replication controllers
// and services.
// More info: http://kubernetes.io/docs/user-guide/labels
// +optional
Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
// Annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
// More info: http://kubernetes.io/docs/user-guide/annotations
// +optional
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`
// List of objects depended by this object. If ALL objects in the list have
// been deleted, this object will be garbage collected. If this object is managed by a controller,
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
// +optional
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
// from the list. If the deletionTimestamp of the object is non-nil, entries
// in this list can only be removed.
// +optional
Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"`
// The name of the cluster which the object belongs to.
// This is used to distinguish resources with same name and namespace in different clusters.
// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
// +optional
ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"`
}
// OwnerReference contains enough information to let you identify an owning // OwnerReference contains enough information to let you identify an owning
// object. Currently, an owning object must be in the same namespace, so there // object. Currently, an owning object must be in the same namespace, so there
// is no namespace field. // is no namespace field.

View File

@@ -48,6 +48,7 @@ type Unstructured struct {
Object map[string]interface{} Object map[string]interface{}
} }
var _ metav1.Object = &Unstructured{}
var _ runtime.Unstructured = &Unstructured{} var _ runtime.Unstructured = &Unstructured{}
var _ runtime.Unstructured = &UnstructuredList{} var _ runtime.Unstructured = &UnstructuredList{}

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package common package openapi
import ( import (
"github.com/emicklei/go-restful" "github.com/emicklei/go-restful"

View File

@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// package common holds shared codes and types between open API code generator and spec generator. // package openapi holds shared codes and types between open API code generator and spec generator.
package common package openapi

View File

@@ -25,12 +25,12 @@ import (
"github.com/emicklei/go-restful/swagger" "github.com/emicklei/go-restful/swagger"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/serializer" "k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/client-go/pkg/api" "k8s.io/client-go/pkg/api"
"k8s.io/client-go/pkg/api/errors"
"k8s.io/client-go/pkg/api/v1" "k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/version" "k8s.io/client-go/pkg/version"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"

View File

@@ -20,10 +20,10 @@ import (
"fmt" "fmt"
"sync" "sync"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/pkg/api/errors"
"github.com/golang/glog" "github.com/golang/glog"
) )

View File

@@ -20,10 +20,10 @@ import (
"reflect" "reflect"
"testing" "testing"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/pkg/api" "k8s.io/client-go/pkg/api"
"k8s.io/client-go/pkg/api/errors"
"k8s.io/client-go/pkg/version" "k8s.io/client-go/pkg/version"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"
"k8s.io/client-go/rest/fake" "k8s.io/client-go/rest/fake"

View File

@@ -1,64 +0,0 @@
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package api
import (
"fmt"
utilrand "k8s.io/client-go/pkg/util/rand"
)
// NameGenerator generates names for objects. Some backends may have more information
// available to guide selection of new names and this interface hides those details.
type NameGenerator interface {
// GenerateName generates a valid name from the base name, adding a random suffix to the
// the base. If base is valid, the returned name must also be valid. The generator is
// responsible for knowing the maximum valid name length.
GenerateName(base string) string
}
// GenerateName will resolve the object name of the provided ObjectMeta to a generated version if
// necessary. It expects that validation for ObjectMeta has already completed (that Base is a
// valid name) and that the NameGenerator generates a name that is also valid.
func GenerateName(u NameGenerator, meta *ObjectMeta) {
if len(meta.GenerateName) == 0 || len(meta.Name) != 0 {
return
}
meta.Name = u.GenerateName(meta.GenerateName)
}
// simpleNameGenerator generates random names.
type simpleNameGenerator struct{}
// SimpleNameGenerator is a generator that returns the name plus a random suffix of five alphanumerics
// when a name is requested. The string is guaranteed to not exceed the length of a standard Kubernetes
// name (63 characters)
var SimpleNameGenerator NameGenerator = simpleNameGenerator{}
const (
// TODO: make this flexible for non-core resources with alternate naming rules.
maxNameLength = 63
randomLength = 5
maxGeneratedNameLength = maxNameLength - randomLength
)
func (simpleNameGenerator) GenerateName(base string) string {
if len(base) > maxGeneratedNameLength {
base = base[:maxGeneratedNameLength]
}
return fmt.Sprintf("%s%s", base, utilrand.String(randomLength))
}

View File

@@ -24,6 +24,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/davecgh/go-spew/spew"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/conversion" "k8s.io/apimachinery/pkg/conversion"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
@@ -33,8 +35,6 @@ import (
"k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/sets"
"k8s.io/client-go/pkg/api/resource" "k8s.io/client-go/pkg/api/resource"
"k8s.io/client-go/pkg/fields" "k8s.io/client-go/pkg/fields"
"github.com/davecgh/go-spew/spew"
) )
// Conversion error conveniently packages up errors in conversions. // Conversion error conveniently packages up errors in conversions.
@@ -272,7 +272,7 @@ func IsStandardFinalizerName(str string) bool {
} }
// SingleObject returns a ListOptions for watching a single object. // SingleObject returns a ListOptions for watching a single object.
func SingleObject(meta ObjectMeta) ListOptions { func SingleObject(meta metav1.ObjectMeta) ListOptions {
return ListOptions{ return ListOptions{
FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name), FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name),
ResourceVersion: meta.ResourceVersion, ResourceVersion: meta.ResourceVersion,

View File

@@ -17,109 +17,11 @@ limitations under the License.
package api package api
import ( import (
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/conversion"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
) )
// HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values. // HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values.
func HasObjectMetaSystemFieldValues(meta *ObjectMeta) bool { func HasObjectMetaSystemFieldValues(meta *metav1.ObjectMeta) bool {
return !meta.CreationTimestamp.Time.IsZero() || return !meta.CreationTimestamp.Time.IsZero() ||
len(meta.UID) != 0 len(meta.UID) != 0
} }
// ObjectMetaFor returns a pointer to a provided object's ObjectMeta.
// TODO: allow runtime.Unknown to extract this object
// TODO: Remove this function and use meta.Accessor() instead.
func ObjectMetaFor(obj runtime.Object) (*ObjectMeta, error) {
v, err := conversion.EnforcePtr(obj)
if err != nil {
return nil, err
}
var meta *ObjectMeta
err = runtime.FieldPtr(v, "ObjectMeta", &meta)
return meta, err
}
// ListMetaFor returns a pointer to a provided object's ListMeta,
// or an error if the object does not have that pointer.
// TODO: allow runtime.Unknown to extract this object
func ListMetaFor(obj runtime.Object) (*metav1.ListMeta, error) {
v, err := conversion.EnforcePtr(obj)
if err != nil {
return nil, err
}
var meta *metav1.ListMeta
err = runtime.FieldPtr(v, "ListMeta", &meta)
return meta, err
}
func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj }
// Namespace implements meta.Object for any object with an ObjectMeta typed field. Allows
// fast, direct access to metadata fields for API objects.
func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace }
func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace }
func (meta *ObjectMeta) GetName() string { return meta.Name }
func (meta *ObjectMeta) SetName(name string) { meta.Name = name }
func (meta *ObjectMeta) GetGenerateName() string { return meta.GenerateName }
func (meta *ObjectMeta) SetGenerateName(generateName string) { meta.GenerateName = generateName }
func (meta *ObjectMeta) GetUID() types.UID { return meta.UID }
func (meta *ObjectMeta) SetUID(uid types.UID) { meta.UID = uid }
func (meta *ObjectMeta) GetResourceVersion() string { return meta.ResourceVersion }
func (meta *ObjectMeta) SetResourceVersion(version string) { meta.ResourceVersion = version }
func (meta *ObjectMeta) GetSelfLink() string { return meta.SelfLink }
func (meta *ObjectMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink }
func (meta *ObjectMeta) GetCreationTimestamp() metav1.Time { return meta.CreationTimestamp }
func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp metav1.Time) {
meta.CreationTimestamp = creationTimestamp
}
func (meta *ObjectMeta) GetDeletionTimestamp() *metav1.Time { return meta.DeletionTimestamp }
func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *metav1.Time) {
meta.DeletionTimestamp = deletionTimestamp
}
func (meta *ObjectMeta) GetLabels() map[string]string { return meta.Labels }
func (meta *ObjectMeta) SetLabels(labels map[string]string) { meta.Labels = labels }
func (meta *ObjectMeta) GetAnnotations() map[string]string { return meta.Annotations }
func (meta *ObjectMeta) SetAnnotations(annotations map[string]string) { meta.Annotations = annotations }
func (meta *ObjectMeta) GetFinalizers() []string { return meta.Finalizers }
func (meta *ObjectMeta) SetFinalizers(finalizers []string) { meta.Finalizers = finalizers }
func (meta *ObjectMeta) GetOwnerReferences() []metav1.OwnerReference {
ret := make([]metav1.OwnerReference, len(meta.OwnerReferences))
for i := 0; i < len(meta.OwnerReferences); i++ {
ret[i].Kind = meta.OwnerReferences[i].Kind
ret[i].Name = meta.OwnerReferences[i].Name
ret[i].UID = meta.OwnerReferences[i].UID
ret[i].APIVersion = meta.OwnerReferences[i].APIVersion
if meta.OwnerReferences[i].Controller != nil {
value := *meta.OwnerReferences[i].Controller
ret[i].Controller = &value
}
}
return ret
}
func (meta *ObjectMeta) SetOwnerReferences(references []metav1.OwnerReference) {
newReferences := make([]metav1.OwnerReference, len(references))
for i := 0; i < len(references); i++ {
newReferences[i].Kind = references[i].Kind
newReferences[i].Name = references[i].Name
newReferences[i].UID = references[i].UID
newReferences[i].APIVersion = references[i].APIVersion
if references[i].Controller != nil {
value := *references[i].Controller
newReferences[i].Controller = &value
}
}
meta.OwnerReferences = newReferences
}
func (meta *ObjectMeta) GetClusterName() string {
return meta.ClusterName
}
func (meta *ObjectMeta) SetClusterName(clusterName string) {
meta.ClusterName = clusterName
}

View File

@@ -57,6 +57,7 @@ import (
// ObjectMeta is metadata that all persisted resources must have, which includes all objects // ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create. // users must create.
// DEPRECATED: Use k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta instead - this type will be removed soon.
type ObjectMeta struct { type ObjectMeta struct {
// Name is unique within a namespace. Name is required when creating resources, although // Name is unique within a namespace. Name is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name // some resources may allow a client to request the generation of an appropriate name
@@ -370,7 +371,7 @@ type PersistentVolumeClaimVolumeSource struct {
type PersistentVolume struct { type PersistentVolume struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
//Spec defines a persistent volume owned by the cluster //Spec defines a persistent volume owned by the cluster
// +optional // +optional
@@ -441,7 +442,7 @@ type PersistentVolumeList struct {
type PersistentVolumeClaim struct { type PersistentVolumeClaim struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the volume requested by a pod author // Spec defines the volume requested by a pod author
// +optional // +optional
@@ -1981,7 +1982,7 @@ type PodStatus struct {
type PodStatusResult struct { type PodStatusResult struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Status represents the current information about a pod. This data may not be up // Status represents the current information about a pod. This data may not be up
// to date. // to date.
// +optional // +optional
@@ -1994,7 +1995,7 @@ type PodStatusResult struct {
type Pod struct { type Pod struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the behavior of a pod. // Spec defines the behavior of a pod.
// +optional // +optional
@@ -2010,7 +2011,7 @@ type Pod struct {
type PodTemplateSpec struct { type PodTemplateSpec struct {
// Metadata of the pods created from this template. // Metadata of the pods created from this template.
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the behavior of a pod. // Spec defines the behavior of a pod.
// +optional // +optional
@@ -2023,7 +2024,7 @@ type PodTemplateSpec struct {
type PodTemplate struct { type PodTemplate struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Template defines the pods that will be created from this pod template // Template defines the pods that will be created from this pod template
// +optional // +optional
@@ -2128,7 +2129,7 @@ type ReplicationControllerCondition struct {
type ReplicationController struct { type ReplicationController struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the desired behavior of this replication controller. // Spec defines the desired behavior of this replication controller.
// +optional // +optional
@@ -2333,7 +2334,7 @@ type ServicePort struct {
type Service struct { type Service struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the behavior of a service. // Spec defines the behavior of a service.
// +optional // +optional
@@ -2353,7 +2354,7 @@ type Service struct {
type ServiceAccount struct { type ServiceAccount struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount
Secrets []ObjectReference Secrets []ObjectReference
@@ -2391,7 +2392,7 @@ type ServiceAccountList struct {
type Endpoints struct { type Endpoints struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// The set of all endpoints is the union of all subsets. // The set of all endpoints is the union of all subsets.
Subsets []EndpointSubset Subsets []EndpointSubset
@@ -2713,7 +2714,7 @@ type ResourceList map[ResourceName]resource.Quantity
type Node struct { type Node struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the behavior of a node. // Spec defines the behavior of a node.
// +optional // +optional
@@ -2773,7 +2774,7 @@ const (
type Namespace struct { type Namespace struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the behavior of the Namespace. // Spec defines the behavior of the Namespace.
// +optional // +optional
@@ -2798,7 +2799,7 @@ type Binding struct {
metav1.TypeMeta metav1.TypeMeta
// ObjectMeta describes the object that is being bound. // ObjectMeta describes the object that is being bound.
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Target is the object to bind to. // Target is the object to bind to.
Target ObjectReference Target ObjectReference
@@ -3026,7 +3027,7 @@ const (
type Event struct { type Event struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Required. The object that this event is about. // Required. The object that this event is about.
// +optional // +optional
@@ -3129,7 +3130,7 @@ type LimitRangeSpec struct {
type LimitRange struct { type LimitRange struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the limits enforced // Spec defines the limits enforced
// +optional // +optional
@@ -3219,7 +3220,7 @@ type ResourceQuotaStatus struct {
type ResourceQuota struct { type ResourceQuota struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Spec defines the desired quota // Spec defines the desired quota
// +optional // +optional
@@ -3247,7 +3248,7 @@ type ResourceQuotaList struct {
type Secret struct { type Secret struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN
// or leading dot followed by valid DNS_SUBDOMAIN. // or leading dot followed by valid DNS_SUBDOMAIN.
@@ -3362,7 +3363,7 @@ type SecretList struct {
type ConfigMap struct { type ConfigMap struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// Data contains the configuration data. // Data contains the configuration data.
// Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.
@@ -3456,7 +3457,7 @@ type ComponentCondition struct {
type ComponentStatus struct { type ComponentStatus struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// +optional // +optional
Conditions []ComponentCondition Conditions []ComponentCondition
@@ -3535,7 +3536,7 @@ type SELinuxOptions struct {
type RangeAllocation struct { type RangeAllocation struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
ObjectMeta metav1.ObjectMeta
// A string representing a unique label for a range of resources, such as a CIDR "10.0.0.0/8" or // A string representing a unique label for a range of resources, such as a CIDR "10.0.0.0/8" or
// port range "10000-30000". Range is not strongly schema'd here. The Range is expected to define // port range "10000-30000". Range is not strongly schema'd here. The Range is expected to define
// a start and end unless there is an implicit end. // a start and end unless there is an implicit end.

View File

@@ -269,9 +269,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
} }
func Convert_v1_ReplicationController_to_extensions_ReplicaSet(in *ReplicationController, out *extensions.ReplicaSet, s conversion.Scope) error { func Convert_v1_ReplicationController_to_extensions_ReplicaSet(in *ReplicationController, out *extensions.ReplicaSet, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -304,9 +302,7 @@ func Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus(in *R
} }
func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.ReplicaSet, out *ReplicationController, s conversion.Scope) error { func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.ReplicaSet, out *ReplicationController, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil {
fieldErr, ok := err.(*field.Error) fieldErr, ok := err.(*field.Error)
if !ok { if !ok {

View File

@@ -19,7 +19,7 @@ package v1
import ( import (
"fmt" "fmt"
utilrand "k8s.io/client-go/pkg/util/rand" utilrand "k8s.io/apimachinery/pkg/util/rand"
) )
// NameGenerator generates names for objects. Some backends may have more information // NameGenerator generates names for objects. Some backends may have more information

File diff suppressed because it is too large Load Diff

View File

@@ -141,7 +141,7 @@ message Binding {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// The target object that you want to bind to the standard object. // The target object that you want to bind to the standard object.
optional ObjectReference target = 2; optional ObjectReference target = 2;
@@ -240,7 +240,7 @@ message ComponentStatus {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// List of component conditions observed // List of component conditions observed
// +optional // +optional
@@ -263,7 +263,7 @@ message ConfigMap {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Data contains the configuration data. // Data contains the configuration data.
// Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.
@@ -767,7 +767,7 @@ message Endpoints {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// The set of all endpoints is the union of all subsets. Addresses are placed into // The set of all endpoints is the union of all subsets. Addresses are placed into
// subsets according to the IPs they share. A single address with multiple ports, // subsets according to the IPs they share. A single address with multiple ports,
@@ -848,7 +848,7 @@ message EnvVarSource {
message Event { message Event {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// The object that this event is about. // The object that this event is about.
optional ObjectReference involvedObject = 2; optional ObjectReference involvedObject = 2;
@@ -1195,7 +1195,7 @@ message LimitRange {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the limits enforced. // Spec defines the limits enforced.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -1347,7 +1347,7 @@ message Namespace {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the behavior of the Namespace. // Spec defines the behavior of the Namespace.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -1394,7 +1394,7 @@ message Node {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the behavior of a node. // Spec defines the behavior of a node.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -1652,6 +1652,8 @@ message ObjectFieldSelector {
// ObjectMeta is metadata that all persisted resources must have, which includes all objects // ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create. // users must create.
// DEPRECATED: Use k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta instead - this type will be removed soon.
// +k8s:openapi-gen=false
message ObjectMeta { message ObjectMeta {
// Name must be unique within a namespace. Is required when creating resources, although // Name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name // some resources may allow a client to request the generation of an appropriate name
@@ -1848,7 +1850,7 @@ message PersistentVolume {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines a specification of a persistent volume owned by the cluster. // Spec defines a specification of a persistent volume owned by the cluster.
// Provisioned by an administrator. // Provisioned by an administrator.
@@ -1869,7 +1871,7 @@ message PersistentVolumeClaim {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the desired characteristics of a volume requested by a pod author. // Spec defines the desired characteristics of a volume requested by a pod author.
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims
@@ -2111,7 +2113,7 @@ message Pod {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Specification of the desired behavior of the pod. // Specification of the desired behavior of the pod.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2607,7 +2609,7 @@ message PodStatusResult {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Most recently observed status of the pod. // Most recently observed status of the pod.
// This data may not be up to date. // This data may not be up to date.
@@ -2623,7 +2625,7 @@ message PodTemplate {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Template defines the pods that will be created from this pod template. // Template defines the pods that will be created from this pod template.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2647,7 +2649,7 @@ message PodTemplateSpec {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Specification of the desired behavior of the pod. // Specification of the desired behavior of the pod.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2806,7 +2808,7 @@ message RangeAllocation {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Range is string that identifies the range represented by 'data'. // Range is string that identifies the range represented by 'data'.
optional string range = 2; optional string range = 2;
@@ -2821,7 +2823,7 @@ message ReplicationController {
// be the same as the Pod(s) that the replication controller manages. // be the same as the Pod(s) that the replication controller manages.
// Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the specification of the desired behavior of the replication controller. // Spec defines the specification of the desired behavior of the replication controller.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2947,7 +2949,7 @@ message ResourceQuota {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the desired quota. // Spec defines the desired quota.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3037,7 +3039,7 @@ message Secret {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN
// or leading dot followed by valid DNS_SUBDOMAIN. // or leading dot followed by valid DNS_SUBDOMAIN.
@@ -3169,7 +3171,7 @@ message Service {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the behavior of a service. // Spec defines the behavior of a service.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3192,7 +3194,7 @@ message ServiceAccount {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
// More info: http://kubernetes.io/docs/user-guide/secrets // More info: http://kubernetes.io/docs/user-guide/secrets

View File

@@ -21,6 +21,7 @@ import (
"fmt" "fmt"
"strings" "strings"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/selection" "k8s.io/apimachinery/pkg/selection"
"k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/types"
@@ -86,26 +87,12 @@ var standardFinalizers = sets.NewString(
FinalizerOrphan, FinalizerOrphan,
) )
// HasAnnotation returns a bool if passed in annotation exists
func HasAnnotation(obj ObjectMeta, ann string) bool {
_, found := obj.Annotations[ann]
return found
}
// SetMetaDataAnnotation sets the annotation and value
func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string) {
if obj.Annotations == nil {
obj.Annotations = make(map[string]string)
}
obj.Annotations[ann] = value
}
func IsStandardFinalizerName(str string) bool { func IsStandardFinalizerName(str string) bool {
return standardFinalizers.Has(str) return standardFinalizers.Has(str)
} }
// SingleObject returns a ListOptions for watching a single object. // SingleObject returns a ListOptions for watching a single object.
func SingleObject(meta ObjectMeta) ListOptions { func SingleObject(meta metav1.ObjectMeta) ListOptions {
return ListOptions{ return ListOptions{
FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name).String(), FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name).String(),
ResourceVersion: meta.ResourceVersion, ResourceVersion: meta.ResourceVersion,

View File

@@ -17,14 +17,13 @@ limitations under the License.
package v1 package v1
import ( import (
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/types"
) )
func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj } func (obj *ObjectMeta) GetObjectMeta() metav1.Object { return obj }
// Namespace implements meta.Object for any object with an ObjectMeta typed field. Allows // Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows
// fast, direct access to metadata fields for API objects. // fast, direct access to metadata fields for API objects.
func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace } func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace }
func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace } func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace }

File diff suppressed because it is too large Load Diff

View File

@@ -65,6 +65,8 @@ import (
// ObjectMeta is metadata that all persisted resources must have, which includes all objects // ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create. // users must create.
// DEPRECATED: Use k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta instead - this type will be removed soon.
// +k8s:openapi-gen=false
type ObjectMeta struct { type ObjectMeta struct {
// Name must be unique within a namespace. Is required when creating resources, although // Name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name // some resources may allow a client to request the generation of an appropriate name
@@ -422,7 +424,7 @@ type PersistentVolume struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines a specification of a persistent volume owned by the cluster. // Spec defines a specification of a persistent volume owned by the cluster.
// Provisioned by an administrator. // Provisioned by an administrator.
@@ -514,7 +516,7 @@ type PersistentVolumeClaim struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the desired characteristics of a volume requested by a pod author. // Spec defines the desired characteristics of a volume requested by a pod author.
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims
@@ -2252,7 +2254,7 @@ type PodStatusResult struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Most recently observed status of the pod. // Most recently observed status of the pod.
// This data may not be up to date. // This data may not be up to date.
// Populated by the system. // Populated by the system.
@@ -2271,7 +2273,7 @@ type Pod struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of the pod. // Specification of the desired behavior of the pod.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2305,7 +2307,7 @@ type PodTemplateSpec struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of the pod. // Specification of the desired behavior of the pod.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2321,7 +2323,7 @@ type PodTemplate struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Template defines the pods that will be created from this pod template. // Template defines the pods that will be created from this pod template.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2442,7 +2444,7 @@ type ReplicationController struct {
// be the same as the Pod(s) that the replication controller manages. // be the same as the Pod(s) that the replication controller manages.
// Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the specification of the desired behavior of the replication controller. // Spec defines the specification of the desired behavior of the replication controller.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2675,7 +2677,7 @@ type Service struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the behavior of a service. // Spec defines the behavior of a service.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -2719,7 +2721,7 @@ type ServiceAccount struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
// More info: http://kubernetes.io/docs/user-guide/secrets // More info: http://kubernetes.io/docs/user-guide/secrets
@@ -2766,7 +2768,7 @@ type Endpoints struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// The set of all endpoints is the union of all subsets. Addresses are placed into // The set of all endpoints is the union of all subsets. Addresses are placed into
// subsets according to the IPs they share. A single address with multiple ports, // subsets according to the IPs they share. A single address with multiple ports,
@@ -3124,7 +3126,7 @@ type Node struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the behavior of a node. // Spec defines the behavior of a node.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3196,7 +3198,7 @@ type Namespace struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the behavior of the Namespace. // Spec defines the behavior of the Namespace.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3229,7 +3231,7 @@ type Binding struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// The target object that you want to bind to the standard object. // The target object that you want to bind to the standard object.
Target ObjectReference `json:"target" protobuf:"bytes,2,opt,name=target"` Target ObjectReference `json:"target" protobuf:"bytes,2,opt,name=target"`
@@ -3517,7 +3519,7 @@ type Event struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
// The object that this event is about. // The object that this event is about.
InvolvedObject ObjectReference `json:"involvedObject" protobuf:"bytes,2,opt,name=involvedObject"` InvolvedObject ObjectReference `json:"involvedObject" protobuf:"bytes,2,opt,name=involvedObject"`
@@ -3626,7 +3628,7 @@ type LimitRange struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the limits enforced. // Spec defines the limits enforced.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3724,7 +3726,7 @@ type ResourceQuota struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the desired quota. // Spec defines the desired quota.
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -3759,7 +3761,7 @@ type Secret struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN
// or leading dot followed by valid DNS_SUBDOMAIN. // or leading dot followed by valid DNS_SUBDOMAIN.
@@ -3886,7 +3888,7 @@ type ConfigMap struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Data contains the configuration data. // Data contains the configuration data.
// Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.
@@ -3941,7 +3943,7 @@ type ComponentStatus struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// List of component conditions observed // List of component conditions observed
// +optional // +optional
@@ -4059,7 +4061,7 @@ type RangeAllocation struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Range is string that identifies the range represented by 'data'. // Range is string that identifies the range represented by 'data'.
Range string `json:"range" protobuf:"bytes,2,opt,name=range"` Range string `json:"range" protobuf:"bytes,2,opt,name=range"`

View File

@@ -964,7 +964,7 @@ func (ObjectFieldSelector) SwaggerDoc() map[string]string {
} }
var map_ObjectMeta = map[string]string{ var map_ObjectMeta = map[string]string{
"": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. DEPRECATED: Use k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta instead - this type will be removed soon.",
"name": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "name": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"generateName": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", "generateName": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency",
"namespace": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", "namespace": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",

View File

@@ -489,9 +489,7 @@ func Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.Azure
} }
func autoConvert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error { func autoConvert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Target, &out.Target, s); err != nil { if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Target, &out.Target, s); err != nil {
return err return err
} }
@@ -503,9 +501,7 @@ func Convert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversi
} }
func autoConvert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error { func autoConvert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Target, &out.Target, s); err != nil { if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Target, &out.Target, s); err != nil {
return err return err
} }
@@ -611,9 +607,7 @@ func Convert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCo
} }
func autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error { func autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Conditions = *(*[]api.ComponentCondition)(unsafe.Pointer(&in.Conditions)) out.Conditions = *(*[]api.ComponentCondition)(unsafe.Pointer(&in.Conditions))
return nil return nil
} }
@@ -623,9 +617,7 @@ func Convert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out
} }
func autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error { func autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Conditions = *(*[]ComponentCondition)(unsafe.Pointer(&in.Conditions)) out.Conditions = *(*[]ComponentCondition)(unsafe.Pointer(&in.Conditions))
return nil return nil
} }
@@ -655,9 +647,7 @@ func Convert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.Component
} }
func autoConvert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error { func autoConvert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data)) out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data))
return nil return nil
} }
@@ -667,9 +657,7 @@ func Convert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s
} }
func autoConvert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error { func autoConvert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data)) out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data))
return nil return nil
} }
@@ -1175,9 +1163,7 @@ func Convert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out
} }
func autoConvert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error { func autoConvert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Subsets = *(*[]api.EndpointSubset)(unsafe.Pointer(&in.Subsets)) out.Subsets = *(*[]api.EndpointSubset)(unsafe.Pointer(&in.Subsets))
return nil return nil
} }
@@ -1187,9 +1173,7 @@ func Convert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s
} }
func autoConvert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error { func autoConvert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Subsets = *(*[]EndpointSubset)(unsafe.Pointer(&in.Subsets)) out.Subsets = *(*[]EndpointSubset)(unsafe.Pointer(&in.Subsets))
return nil return nil
} }
@@ -1285,9 +1269,7 @@ func Convert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvV
} }
func autoConvert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error { func autoConvert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil { if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil {
return err return err
} }
@@ -1308,9 +1290,7 @@ func Convert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope
} }
func autoConvert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error { func autoConvert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil { if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil {
return err return err
} }
@@ -1683,9 +1663,7 @@ func Convert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, s
} }
func autoConvert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error { func autoConvert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -1697,9 +1675,7 @@ func Convert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange
} }
func autoConvert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error { func autoConvert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -1929,9 +1905,7 @@ func Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource,
} }
func autoConvert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error { func autoConvert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_NamespaceSpec_To_api_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_NamespaceSpec_To_api_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -1946,9 +1920,7 @@ func Convert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s
} }
func autoConvert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error { func autoConvert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_NamespaceSpec_To_v1_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_NamespaceSpec_To_v1_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2019,9 +1991,7 @@ func Convert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus,
} }
func autoConvert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error { func autoConvert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_NodeSpec_To_api_NodeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_NodeSpec_To_api_NodeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2036,9 +2006,7 @@ func Convert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) er
} }
func autoConvert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error { func autoConvert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_NodeSpec_To_v1_NodeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_NodeSpec_To_v1_NodeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2457,9 +2425,7 @@ func Convert_api_ObjectReference_To_v1_ObjectReference(in *api.ObjectReference,
} }
func autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error { func autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2474,9 +2440,7 @@ func Convert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, o
} }
func autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error { func autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2491,9 +2455,7 @@ func Convert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolum
} }
func autoConvert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error { func autoConvert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2508,9 +2470,7 @@ func Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *Persisten
} }
func autoConvert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error { func autoConvert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2777,9 +2737,7 @@ func Convert_api_PhotonPersistentDiskVolumeSource_To_v1_PhotonPersistentDiskVolu
} }
func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error { func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -2790,9 +2748,7 @@ func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) er
} }
func autoConvert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error { func autoConvert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3190,9 +3146,7 @@ func Convert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, s
} }
func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error { func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil { if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil {
return err return err
} }
@@ -3200,9 +3154,7 @@ func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult,
} }
func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error { func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil { if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil {
return err return err
} }
@@ -3210,9 +3162,7 @@ func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResu
} }
func autoConvert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error { func autoConvert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err return err
} }
@@ -3224,9 +3174,7 @@ func Convert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemp
} }
func autoConvert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error { func autoConvert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err return err
} }
@@ -3278,9 +3226,7 @@ func Convert_api_PodTemplateList_To_v1_PodTemplateList(in *api.PodTemplateList,
} }
func autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error { func autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3288,9 +3234,7 @@ func autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec,
} }
func autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error { func autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3458,9 +3402,7 @@ func Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource,
} }
func autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error { func autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Range = in.Range out.Range = in.Range
out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) out.Data = *(*[]byte)(unsafe.Pointer(&in.Data))
return nil return nil
@@ -3471,9 +3413,7 @@ func Convert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out
} }
func autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error { func autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Range = in.Range out.Range = in.Range
out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) out.Data = *(*[]byte)(unsafe.Pointer(&in.Data))
return nil return nil
@@ -3484,9 +3424,7 @@ func Convert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation,
} }
func autoConvert_v1_ReplicationController_To_api_ReplicationController(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error { func autoConvert_v1_ReplicationController_To_api_ReplicationController(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3501,9 +3439,7 @@ func Convert_v1_ReplicationController_To_api_ReplicationController(in *Replicati
} }
func autoConvert_api_ReplicationController_To_v1_ReplicationController(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error { func autoConvert_api_ReplicationController_To_v1_ReplicationController(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3670,9 +3606,7 @@ func Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(in *api.Resou
} }
func autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error { func autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3687,9 +3621,7 @@ func Convert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.R
} }
func autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error { func autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3808,9 +3740,7 @@ func Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out
} }
func autoConvert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error { func autoConvert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data))
// INFO: in.StringData opted out of conversion generation // INFO: in.StringData opted out of conversion generation
out.Type = api.SecretType(in.Type) out.Type = api.SecretType(in.Type)
@@ -3818,9 +3748,7 @@ func autoConvert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversi
} }
func autoConvert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error { func autoConvert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data))
out.Type = SecretType(in.Type) out.Type = SecretType(in.Type)
return nil return nil
@@ -3967,9 +3895,7 @@ func Convert_api_SerializedReference_To_v1_SerializedReference(in *api.Serialize
} }
func autoConvert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error { func autoConvert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_v1_ServiceSpec_To_api_ServiceSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_ServiceSpec_To_api_ServiceSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -3984,9 +3910,7 @@ func Convert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversi
} }
func autoConvert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error { func autoConvert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
if err := Convert_api_ServiceSpec_To_v1_ServiceSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_api_ServiceSpec_To_v1_ServiceSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -4001,9 +3925,7 @@ func Convert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversi
} }
func autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error { func autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error {
if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Secrets = *(*[]api.ObjectReference)(unsafe.Pointer(&in.Secrets)) out.Secrets = *(*[]api.ObjectReference)(unsafe.Pointer(&in.Secrets))
out.ImagePullSecrets = *(*[]api.LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.ImagePullSecrets = *(*[]api.LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets))
return nil return nil
@@ -4014,9 +3936,7 @@ func Convert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *ap
} }
func autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error { func autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error {
if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { out.ObjectMeta = in.ObjectMeta
return err
}
out.Secrets = *(*[]ObjectReference)(unsafe.Pointer(&in.Secrets)) out.Secrets = *(*[]ObjectReference)(unsafe.Pointer(&in.Secrets))
out.ImagePullSecrets = *(*[]LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.ImagePullSecrets = *(*[]LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets))
return nil return nil

View File

@@ -301,8 +301,10 @@ func DeepCopy_v1_Binding(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Binding) in := in.(*Binding)
out := out.(*Binding) out := out.(*Binding)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
return nil return nil
} }
@@ -373,8 +375,10 @@ func DeepCopy_v1_ComponentStatus(in interface{}, out interface{}, c *conversion.
in := in.(*ComponentStatus) in := in.(*ComponentStatus)
out := out.(*ComponentStatus) out := out.(*ComponentStatus)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
@@ -410,8 +414,10 @@ func DeepCopy_v1_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner
in := in.(*ConfigMap) in := in.(*ConfigMap)
out := out.(*ConfigMap) out := out.(*ConfigMap)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -821,8 +827,10 @@ func DeepCopy_v1_Endpoints(in interface{}, out interface{}, c *conversion.Cloner
in := in.(*Endpoints) in := in.(*Endpoints)
out := out.(*Endpoints) out := out.(*Endpoints)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Subsets != nil { if in.Subsets != nil {
in, out := &in.Subsets, &out.Subsets in, out := &in.Subsets, &out.Subsets
@@ -921,8 +929,10 @@ func DeepCopy_v1_Event(in interface{}, out interface{}, c *conversion.Cloner) er
in := in.(*Event) in := in.(*Event)
out := out.(*Event) out := out.(*Event)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
out.FirstTimestamp = in.FirstTimestamp.DeepCopy() out.FirstTimestamp = in.FirstTimestamp.DeepCopy()
out.LastTimestamp = in.LastTimestamp.DeepCopy() out.LastTimestamp = in.LastTimestamp.DeepCopy()
@@ -1160,8 +1170,10 @@ func DeepCopy_v1_LimitRange(in interface{}, out interface{}, c *conversion.Clone
in := in.(*LimitRange) in := in.(*LimitRange)
out := out.(*LimitRange) out := out.(*LimitRange)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1332,8 +1344,10 @@ func DeepCopy_v1_Namespace(in interface{}, out interface{}, c *conversion.Cloner
in := in.(*Namespace) in := in.(*Namespace)
out := out.(*Namespace) out := out.(*Namespace)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1390,8 +1404,10 @@ func DeepCopy_v1_Node(in interface{}, out interface{}, c *conversion.Cloner) err
in := in.(*Node) in := in.(*Node)
out := out.(*Node) out := out.(*Node)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_NodeStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_v1_NodeStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -1700,8 +1716,10 @@ func DeepCopy_v1_PersistentVolume(in interface{}, out interface{}, c *conversion
in := in.(*PersistentVolume) in := in.(*PersistentVolume)
out := out.(*PersistentVolume) out := out.(*PersistentVolume)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1715,8 +1733,10 @@ func DeepCopy_v1_PersistentVolumeClaim(in interface{}, out interface{}, c *conve
in := in.(*PersistentVolumeClaim) in := in.(*PersistentVolumeClaim)
out := out.(*PersistentVolumeClaim) out := out.(*PersistentVolumeClaim)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1981,8 +2001,10 @@ func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) erro
in := in.(*Pod) in := in.(*Pod)
out := out.(*Pod) out := out.(*Pod)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2331,8 +2353,10 @@ func DeepCopy_v1_PodStatusResult(in interface{}, out interface{}, c *conversion.
in := in.(*PodStatusResult) in := in.(*PodStatusResult)
out := out.(*PodStatusResult) out := out.(*PodStatusResult)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -2346,8 +2370,10 @@ func DeepCopy_v1_PodTemplate(in interface{}, out interface{}, c *conversion.Clon
in := in.(*PodTemplate) in := in.(*PodTemplate)
out := out.(*PodTemplate) out := out.(*PodTemplate)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -2379,8 +2405,10 @@ func DeepCopy_v1_PodTemplateSpec(in interface{}, out interface{}, c *conversion.
in := in.(*PodTemplateSpec) in := in.(*PodTemplateSpec)
out := out.(*PodTemplateSpec) out := out.(*PodTemplateSpec)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2473,8 +2501,10 @@ func DeepCopy_v1_RangeAllocation(in interface{}, out interface{}, c *conversion.
in := in.(*RangeAllocation) in := in.(*RangeAllocation)
out := out.(*RangeAllocation) out := out.(*RangeAllocation)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2490,8 +2520,10 @@ func DeepCopy_v1_ReplicationController(in interface{}, out interface{}, c *conve
in := in.(*ReplicationController) in := in.(*ReplicationController)
out := out.(*ReplicationController) out := out.(*ReplicationController)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2592,8 +2624,10 @@ func DeepCopy_v1_ResourceQuota(in interface{}, out interface{}, c *conversion.Cl
in := in.(*ResourceQuota) in := in.(*ResourceQuota)
out := out.(*ResourceQuota) out := out.(*ResourceQuota)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2706,8 +2740,10 @@ func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Secret) in := in.(*Secret)
out := out.(*Secret) out := out.(*Secret)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2836,8 +2872,10 @@ func DeepCopy_v1_Service(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Service) in := in.(*Service)
out := out.(*Service) out := out.(*Service)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_ServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2854,8 +2892,10 @@ func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.C
in := in.(*ServiceAccount) in := in.(*ServiceAccount)
out := out.(*ServiceAccount) out := out.(*ServiceAccount)
*out = *in *out = *in
if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if in.Secrets != nil { if in.Secrets != nil {
in, out := &in.Secrets, &out.Secrets in, out := &in.Secrets, &out.Secrets

View File

@@ -304,8 +304,10 @@ func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Binding) in := in.(*Binding)
out := out.(*Binding) out := out.(*Binding)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
return nil return nil
} }
@@ -376,8 +378,10 @@ func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion
in := in.(*ComponentStatus) in := in.(*ComponentStatus)
out := out.(*ComponentStatus) out := out.(*ComponentStatus)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
@@ -413,8 +417,10 @@ func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Clone
in := in.(*ConfigMap) in := in.(*ConfigMap)
out := out.(*ConfigMap) out := out.(*ConfigMap)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -849,8 +855,10 @@ func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Clone
in := in.(*Endpoints) in := in.(*Endpoints)
out := out.(*Endpoints) out := out.(*Endpoints)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Subsets != nil { if in.Subsets != nil {
in, out := &in.Subsets, &out.Subsets in, out := &in.Subsets, &out.Subsets
@@ -949,8 +957,10 @@ func DeepCopy_api_Event(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Event) in := in.(*Event)
out := out.(*Event) out := out.(*Event)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
out.FirstTimestamp = in.FirstTimestamp.DeepCopy() out.FirstTimestamp = in.FirstTimestamp.DeepCopy()
out.LastTimestamp = in.LastTimestamp.DeepCopy() out.LastTimestamp = in.LastTimestamp.DeepCopy()
@@ -1188,8 +1198,10 @@ func DeepCopy_api_LimitRange(in interface{}, out interface{}, c *conversion.Clon
in := in.(*LimitRange) in := in.(*LimitRange)
out := out.(*LimitRange) out := out.(*LimitRange)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1376,8 +1388,10 @@ func DeepCopy_api_Namespace(in interface{}, out interface{}, c *conversion.Clone
in := in.(*Namespace) in := in.(*Namespace)
out := out.(*Namespace) out := out.(*Namespace)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1434,8 +1448,10 @@ func DeepCopy_api_Node(in interface{}, out interface{}, c *conversion.Cloner) er
in := in.(*Node) in := in.(*Node)
out := out.(*Node) out := out.(*Node)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -1744,8 +1760,10 @@ func DeepCopy_api_PersistentVolume(in interface{}, out interface{}, c *conversio
in := in.(*PersistentVolume) in := in.(*PersistentVolume)
out := out.(*PersistentVolume) out := out.(*PersistentVolume)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -1759,8 +1777,10 @@ func DeepCopy_api_PersistentVolumeClaim(in interface{}, out interface{}, c *conv
in := in.(*PersistentVolumeClaim) in := in.(*PersistentVolumeClaim)
out := out.(*PersistentVolumeClaim) out := out.(*PersistentVolumeClaim)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2025,8 +2045,10 @@ func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) err
in := in.(*Pod) in := in.(*Pod)
out := out.(*Pod) out := out.(*Pod)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2375,8 +2397,10 @@ func DeepCopy_api_PodStatusResult(in interface{}, out interface{}, c *conversion
in := in.(*PodStatusResult) in := in.(*PodStatusResult)
out := out.(*PodStatusResult) out := out.(*PodStatusResult)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil {
return err return err
@@ -2390,8 +2414,10 @@ func DeepCopy_api_PodTemplate(in interface{}, out interface{}, c *conversion.Clo
in := in.(*PodTemplate) in := in.(*PodTemplate)
out := out.(*PodTemplate) out := out.(*PodTemplate)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -2423,8 +2449,10 @@ func DeepCopy_api_PodTemplateSpec(in interface{}, out interface{}, c *conversion
in := in.(*PodTemplateSpec) in := in.(*PodTemplateSpec)
out := out.(*PodTemplateSpec) out := out.(*PodTemplateSpec)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2517,8 +2545,10 @@ func DeepCopy_api_RangeAllocation(in interface{}, out interface{}, c *conversion
in := in.(*RangeAllocation) in := in.(*RangeAllocation)
out := out.(*RangeAllocation) out := out.(*RangeAllocation)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2534,8 +2564,10 @@ func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conv
in := in.(*ReplicationController) in := in.(*ReplicationController)
out := out.(*ReplicationController) out := out.(*ReplicationController)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2631,8 +2663,10 @@ func DeepCopy_api_ResourceQuota(in interface{}, out interface{}, c *conversion.C
in := in.(*ResourceQuota) in := in.(*ResourceQuota)
out := out.(*ResourceQuota) out := out.(*ResourceQuota)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2745,8 +2779,10 @@ func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Secret) in := in.(*Secret)
out := out.(*Secret) out := out.(*Secret)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Data != nil { if in.Data != nil {
in, out := &in.Data, &out.Data in, out := &in.Data, &out.Data
@@ -2868,8 +2904,10 @@ func DeepCopy_api_Service(in interface{}, out interface{}, c *conversion.Cloner)
in := in.(*Service) in := in.(*Service)
out := out.(*Service) out := out.(*Service)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -2886,8 +2924,10 @@ func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion.
in := in.(*ServiceAccount) in := in.(*ServiceAccount)
out := out.(*ServiceAccount) out := out.(*ServiceAccount)
*out = *in *out = *in
if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if in.Secrets != nil { if in.Secrets != nil {
in, out := &in.Secrets, &out.Secrets in, out := &in.Secrets, &out.Secrets

View File

@@ -32,7 +32,7 @@ import (
type StatefulSet struct { type StatefulSet struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// Spec defines the desired identities of pods in this set. // Spec defines the desired identities of pods in this set.
// +optional // +optional

View File

@@ -343,7 +343,7 @@ func (this *StatefulSet) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&StatefulSet{`, s := strings.Join([]string{`&StatefulSet{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -1034,45 +1034,45 @@ var (
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 645 bytes of a gzipped FileDescriptorProto // 645 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0x8d, 0x93, 0xa6, 0x84, 0x4d, 0xf9, 0x5a, 0x2a, 0x14, 0x55, 0xc8, 0xad, 0x72, 0x21, 0x48, 0x10, 0xc7, 0xe3, 0xa4, 0x29, 0x61, 0x53, 0xbe, 0x96, 0x0a, 0x45, 0x15, 0x72, 0xab, 0x5c, 0x08,
0xed, 0x5a, 0x69, 0x0b, 0x54, 0x1c, 0x8d, 0x04, 0x42, 0x02, 0x8a, 0x1c, 0x54, 0x41, 0x81, 0xc3, 0x52, 0xbb, 0x26, 0x6d, 0x81, 0x8a, 0xa3, 0x91, 0x40, 0x48, 0x40, 0x91, 0x83, 0x2a, 0x51, 0x40,
0xda, 0x99, 0xa6, 0x4b, 0xfc, 0x25, 0xef, 0x38, 0x12, 0x37, 0x2e, 0x1c, 0xb8, 0xf1, 0x2f, 0xf8, 0x62, 0xed, 0x4c, 0xd3, 0x25, 0xfe, 0x92, 0x77, 0x1c, 0x89, 0x1b, 0x17, 0x0e, 0xdc, 0x78, 0x13,
0x07, 0xfc, 0x86, 0x8a, 0x53, 0x8f, 0x9c, 0x2a, 0x1a, 0xfe, 0x08, 0xf2, 0x66, 0x93, 0x18, 0x9c, 0x6e, 0x3c, 0x43, 0xc5, 0xa9, 0x47, 0x4e, 0x15, 0x0d, 0x2f, 0x82, 0xbc, 0xd9, 0x24, 0x06, 0x27,
0xd0, 0xaa, 0x37, 0xcf, 0xee, 0xbc, 0xf7, 0x66, 0xde, 0x3e, 0x93, 0x07, 0xfd, 0x1d, 0xc9, 0x44, 0x6a, 0xd5, 0x5b, 0x66, 0x3d, 0xff, 0xdf, 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 0x6a, 0x90, 0x1b, 0x85, 0x9b, 0xa5, 0x4f, 0x08,
0xa1, 0x91, 0x9b, 0xb5, 0x41, 0xf7, 0xc9, 0xe8, 0x07, 0x17, 0x51, 0xa8, 0x1e, 0xb1, 0x62, 0xdf, 0x8d, 0xdc, 0x2c, 0x0d, 0xba, 0x4f, 0x47, 0x7f, 0x74, 0x11, 0x85, 0x6a, 0x89, 0x15, 0xfb, 0xd6,
0x1a, 0x9e, 0xac, 0xd2, 0xdd, 0xc2, 0xad, 0x33, 0x03, 0x41, 0xd7, 0x73, 0x11, 0x28, 0xab, 0x08, 0xf0, 0x64, 0x95, 0xee, 0x16, 0xbe, 0x3a, 0x33, 0x14, 0x74, 0x3d, 0x77, 0x02, 0x65, 0x75, 0x02,
0x4c, 0xac, 0x2c, 0xc6, 0xc0, 0xbe, 0x7b, 0x74, 0x6a, 0x96, 0x8e, 0x4f, 0xcd, 0xd2, 0xcf, 0x53, 0x13, 0x2b, 0x8b, 0x67, 0x60, 0xdf, 0x3d, 0x3a, 0x35, 0x4b, 0xc7, 0xa7, 0x66, 0xe9, 0xd7, 0xa9,
0xb3, 0xf4, 0x69, 0x68, 0x1a, 0x47, 0x43, 0xd3, 0x38, 0x1e, 0x9a, 0xc6, 0xaf, 0xa1, 0x69, 0x7c, 0x59, 0xfa, 0x3c, 0x34, 0x8d, 0xa3, 0xa1, 0x69, 0x1c, 0x0f, 0x4d, 0xe3, 0xf7, 0xd0, 0x34, 0xbe,
0xfd, 0x6d, 0x96, 0xf6, 0x2f, 0xe9, 0x44, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xf0, 0xd3, 0xfd, 0x31, 0x4b, 0xfb, 0x97, 0xf4, 0x45, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x5a, 0x18,
0x7e, 0x2c, 0x06, 0x00, 0x00, 0x81, 0x34, 0x06, 0x00, 0x00,
} }

View File

@@ -39,7 +39,7 @@ option go_package = "v1beta1";
// map to the same storage identity. // map to the same storage identity.
message StatefulSet { message StatefulSet {
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec defines the desired identities of pods in this set. // Spec defines the desired identities of pods in this set.
// +optional // +optional

View File

@@ -26,9 +26,9 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg4_resource "k8s.io/client-go/pkg/api/resource" pkg4_resource "k8s.io/client-go/pkg/api/resource"
pkg2_v1 "k8s.io/client-go/pkg/api/v1" pkg3_v1 "k8s.io/client-go/pkg/api/v1"
pkg5_intstr "k8s.io/client-go/pkg/util/intstr" pkg5_intstr "k8s.io/client-go/pkg/util/intstr"
"reflect" "reflect"
"runtime" "runtime"
@@ -66,9 +66,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.TypeMeta var v0 pkg1_v1.TypeMeta
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg4_resource.Quantity var v2 pkg4_resource.Quantity
var v3 pkg2_v1.ObjectMeta var v3 pkg3_v1.PodTemplateSpec
var v4 pkg5_intstr.IntOrString var v4 pkg5_intstr.IntOrString
var v5 time.Time var v5 time.Time
_, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5
@@ -164,7 +164,13 @@ func (x *StatefulSet) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -174,7 +180,13 @@ func (x *StatefulSet) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -298,24 +310,30 @@ func (x *StatefulSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = StatefulSetSpec{} x.Spec = StatefulSetSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = StatefulSetStatus{} x.Status = StatefulSetStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -328,16 +346,16 @@ func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -345,21 +363,21 @@ func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -367,38 +385,44 @@ func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -406,16 +430,16 @@ func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = StatefulSetSpec{} x.Spec = StatefulSetSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -423,21 +447,21 @@ func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = StatefulSetStatus{} x.Status = StatefulSetStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -566,7 +590,7 @@ func (x *StatefulSetSpec) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym17 _ = yym17
if false { if false {
} else { } else {
h.encSlicev1_PersistentVolumeClaim(([]pkg2_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) h.encSlicev1_PersistentVolumeClaim(([]pkg3_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e)
} }
} }
} else { } else {
@@ -584,7 +608,7 @@ func (x *StatefulSetSpec) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym18 _ = yym18
if false { if false {
} else { } else {
h.encSlicev1_PersistentVolumeClaim(([]pkg2_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) h.encSlicev1_PersistentVolumeClaim(([]pkg3_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e)
} }
} }
} }
@@ -704,7 +728,7 @@ func (x *StatefulSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "template": case "template":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv8 := &x.Template yyv8 := &x.Template
yyv8.CodecDecodeSelf(d) yyv8.CodecDecodeSelf(d)
@@ -718,7 +742,7 @@ func (x *StatefulSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
_ = yym10 _ = yym10
if false { if false {
} else { } else {
h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv9), d) h.decSlicev1_PersistentVolumeClaim((*[]pkg3_v1.PersistentVolumeClaim)(yyv9), d)
} }
} }
case "serviceName": case "serviceName":
@@ -812,7 +836,7 @@ func (x *StatefulSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv18 := &x.Template yyv18 := &x.Template
yyv18.CodecDecodeSelf(d) yyv18.CodecDecodeSelf(d)
@@ -836,7 +860,7 @@ func (x *StatefulSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
_ = yym20 _ = yym20
if false { if false {
} else { } else {
h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv19), d) h.decSlicev1_PersistentVolumeClaim((*[]pkg3_v1.PersistentVolumeClaim)(yyv19), d)
} }
} }
yyj13++ yyj13++
@@ -1497,7 +1521,7 @@ func (x *StatefulSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
func (x codecSelfer1234) encSlicev1_PersistentVolumeClaim(v []pkg2_v1.PersistentVolumeClaim, e *codec1978.Encoder) { func (x codecSelfer1234) encSlicev1_PersistentVolumeClaim(v []pkg3_v1.PersistentVolumeClaim, e *codec1978.Encoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
@@ -1510,7 +1534,7 @@ func (x codecSelfer1234) encSlicev1_PersistentVolumeClaim(v []pkg2_v1.Persistent
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} }
func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.PersistentVolumeClaim, d *codec1978.Decoder) { func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg3_v1.PersistentVolumeClaim, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
@@ -1521,7 +1545,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
_ = yyc1 _ = yyc1
if yyl1 == 0 { if yyl1 == 0 {
if yyv1 == nil { if yyv1 == nil {
yyv1 = []pkg2_v1.PersistentVolumeClaim{} yyv1 = []pkg3_v1.PersistentVolumeClaim{}
yyc1 = true yyc1 = true
} else if len(yyv1) != 0 { } else if len(yyv1) != 0 {
yyv1 = yyv1[:0] yyv1 = yyv1[:0]
@@ -1541,10 +1565,10 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
if yyrl1 <= cap(yyv1) { if yyrl1 <= cap(yyv1) {
yyv1 = yyv1[:yyrl1] yyv1 = yyv1[:yyrl1]
} else { } else {
yyv1 = make([]pkg2_v1.PersistentVolumeClaim, yyrl1) yyv1 = make([]pkg3_v1.PersistentVolumeClaim, yyrl1)
} }
} else { } else {
yyv1 = make([]pkg2_v1.PersistentVolumeClaim, yyrl1) yyv1 = make([]pkg3_v1.PersistentVolumeClaim, yyrl1)
} }
yyc1 = true yyc1 = true
yyrr1 = len(yyv1) yyrr1 = len(yyv1)
@@ -1559,7 +1583,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
for ; yyj1 < yyrr1; yyj1++ { for ; yyj1 < yyrr1; yyj1++ {
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} yyv1[yyj1] = pkg3_v1.PersistentVolumeClaim{}
} else { } else {
yyv2 := &yyv1[yyj1] yyv2 := &yyv1[yyj1]
yyv2.CodecDecodeSelf(d) yyv2.CodecDecodeSelf(d)
@@ -1568,10 +1592,10 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
} }
if yyrt1 { if yyrt1 {
for ; yyj1 < yyl1; yyj1++ { for ; yyj1 < yyl1; yyj1++ {
yyv1 = append(yyv1, pkg2_v1.PersistentVolumeClaim{}) yyv1 = append(yyv1, pkg3_v1.PersistentVolumeClaim{})
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} yyv1[yyj1] = pkg3_v1.PersistentVolumeClaim{}
} else { } else {
yyv3 := &yyv1[yyj1] yyv3 := &yyv1[yyj1]
yyv3.CodecDecodeSelf(d) yyv3.CodecDecodeSelf(d)
@@ -1585,13 +1609,13 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
for ; !r.CheckBreak(); yyj1++ { for ; !r.CheckBreak(); yyj1++ {
if yyj1 >= len(yyv1) { if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, pkg2_v1.PersistentVolumeClaim{}) // var yyz1 pkg2_v1.PersistentVolumeClaim yyv1 = append(yyv1, pkg3_v1.PersistentVolumeClaim{}) // var yyz1 pkg3_v1.PersistentVolumeClaim
yyc1 = true yyc1 = true
} }
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if yyj1 < len(yyv1) { if yyj1 < len(yyv1) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} yyv1[yyj1] = pkg3_v1.PersistentVolumeClaim{}
} else { } else {
yyv4 := &yyv1[yyj1] yyv4 := &yyv1[yyj1]
yyv4.CodecDecodeSelf(d) yyv4.CodecDecodeSelf(d)
@@ -1606,7 +1630,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
yyv1 = yyv1[:yyj1] yyv1 = yyv1[:yyj1]
yyc1 = true yyc1 = true
} else if yyj1 == 0 && yyv1 == nil { } else if yyj1 == 0 && yyv1 == nil {
yyv1 = []pkg2_v1.PersistentVolumeClaim{} yyv1 = []pkg3_v1.PersistentVolumeClaim{}
yyc1 = true yyc1 = true
} }
} }

View File

@@ -32,7 +32,7 @@ import (
type StatefulSet struct { type StatefulSet struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the desired identities of pods in this set. // Spec defines the desired identities of pods in this set.
// +optional // +optional

View File

@@ -50,10 +50,7 @@ func RegisterConversions(scheme *runtime.Scheme) error {
} }
func autoConvert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error { func autoConvert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -68,10 +65,7 @@ func Convert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.
} }
func autoConvert_apps_StatefulSet_To_v1beta1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error { func autoConvert_apps_StatefulSet_To_v1beta1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -21,10 +21,10 @@ limitations under the License.
package v1beta1 package v1beta1
import ( import (
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/client-go/pkg/api/v1" api_v1 "k8s.io/client-go/pkg/api/v1"
reflect "reflect" reflect "reflect"
) )
@@ -48,8 +48,10 @@ func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion
in := in.(*StatefulSet) in := in.(*StatefulSet)
out := out.(*StatefulSet) out := out.(*StatefulSet)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -94,17 +96,17 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver
if newVal, err := c.DeepCopy(*in); err != nil { if newVal, err := c.DeepCopy(*in); err != nil {
return err return err
} else { } else {
*out = newVal.(*meta_v1.LabelSelector) *out = newVal.(*v1.LabelSelector)
} }
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
} }
if in.VolumeClaimTemplates != nil { if in.VolumeClaimTemplates != nil {
in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates
*out = make([]v1.PersistentVolumeClaim, len(*in)) *out = make([]api_v1.PersistentVolumeClaim, len(*in))
for i := range *in { for i := range *in {
if err := v1.DeepCopy_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { if err := api_v1.DeepCopy_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil {
return err return err
} }
} }

View File

@@ -48,8 +48,10 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl
in := in.(*StatefulSet) in := in.(*StatefulSet)
out := out.(*StatefulSet) out := out.(*StatefulSet)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -18,7 +18,6 @@ package authentication
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api"
) )
const ( const (
@@ -43,9 +42,9 @@ const (
// TokenReview attempts to authenticate a token to a known user. // TokenReview attempts to authenticate a token to a known user.
type TokenReview struct { type TokenReview struct {
metav1.TypeMeta metav1.TypeMeta
// ObjectMeta fulfills the meta.ObjectMetaAccessor interface so that the stock // ObjectMeta fulfills the metav1.ObjectMetaAccessor interface so that the stock
// REST handler paths work // REST handler paths work
api.ObjectMeta metav1.ObjectMeta
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
Spec TokenReviewSpec Spec TokenReviewSpec

View File

@@ -390,7 +390,7 @@ func (this *TokenReview) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&TokenReview{`, s := strings.Join([]string{`&TokenReview{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -1236,46 +1236,47 @@ var (
) )
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 656 bytes of a gzipped FileDescriptorProto // 660 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x53, 0xcf, 0x4f, 0x13, 0x41,
0x14, 0xb5, 0xf3, 0xd3, 0x2f, 0x99, 0x7c, 0x85, 0x32, 0x12, 0x52, 0x14, 0x09, 0x27, 0x0a, 0x9b, 0x14, 0xee, 0xf6, 0x07, 0xb6, 0x53, 0x51, 0x9c, 0xc4, 0xa4, 0x69, 0xe2, 0xb6, 0xa9, 0x17, 0x4c,
0x20, 0x95, 0xb1, 0x52, 0xa1, 0x52, 0xb5, 0x62, 0x51, 0xab, 0x05, 0x75, 0x81, 0x90, 0xa6, 0x14, 0x70, 0xd6, 0x12, 0x83, 0x04, 0xe2, 0x81, 0x0d, 0x68, 0x38, 0x18, 0x93, 0x41, 0x3c, 0x98, 0x98,
0x21, 0x24, 0x16, 0x13, 0xe7, 0xd6, 0x31, 0xae, 0x7f, 0x34, 0x1e, 0xa7, 0x74, 0xd7, 0x47, 0x60, 0x38, 0xdd, 0x3e, 0xb6, 0xe3, 0xb2, 0x3f, 0x32, 0x3b, 0x5b, 0xe4, 0xc6, 0x9f, 0xe0, 0xd1, 0xa3,
0xc9, 0x92, 0xf7, 0xe0, 0x05, 0xba, 0xec, 0x82, 0x05, 0x0b, 0x14, 0x91, 0xf0, 0x22, 0x68, 0xc6, 0xff, 0x8b, 0x17, 0x8e, 0x1c, 0x3c, 0x78, 0x30, 0xc4, 0xd6, 0x7f, 0xc4, 0xcc, 0xec, 0x48, 0x0b,
0x43, 0x93, 0x36, 0x8d, 0x10, 0xed, 0xce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d6, 0xc9, 0xd8, 0xb6, 0x7e, 0x8d, 0x6d, 0xeb, 0xf3,
0x3f, 0x2d, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xec, 0x29, 0x42, 0xc3, 0xee, 0x05, 0x00, 0x00, 0x6f, 0xbb, 0xf0, 0xee, 0x96, 0x11, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x29, 0x85, 0x06, 0x53,
0xf6, 0x05, 0x00, 0x00,
} }

View File

@@ -45,7 +45,7 @@ message ExtraValue {
// plugin in the kube-apiserver. // plugin in the kube-apiserver.
message TokenReview { message TokenReview {
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
optional TokenReviewSpec spec = 2; optional TokenReviewSpec spec = 2;

View File

@@ -26,8 +26,7 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg2_v1 "k8s.io/client-go/pkg/api/v1"
"reflect" "reflect"
"runtime" "runtime"
time "time" time "time"
@@ -64,10 +63,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.TypeMeta var v0 pkg1_v1.TypeMeta
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg2_v1.ObjectMeta var v2 time.Time
var v3 time.Time _, _, _ = v0, v1, v2
_, _, _, _ = v0, v1, v2, v3
} }
} }
@@ -159,7 +157,13 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -169,7 +173,13 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -287,24 +297,30 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = TokenReviewSpec{} x.Spec = TokenReviewSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = TokenReviewStatus{} x.Status = TokenReviewStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -317,16 +333,16 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -334,21 +350,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -356,38 +372,44 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -395,16 +417,16 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = TokenReviewSpec{} x.Spec = TokenReviewSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -412,21 +434,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = TokenReviewStatus{} x.Status = TokenReviewStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@@ -20,7 +20,6 @@ import (
"fmt" "fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api/v1"
) )
// +genclient=true // +genclient=true
@@ -33,7 +32,7 @@ import (
type TokenReview struct { type TokenReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`

View File

@@ -47,10 +47,7 @@ func RegisterConversions(scheme *runtime.Scheme) error {
} }
func autoConvert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, s conversion.Scope) error { func autoConvert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -65,10 +62,7 @@ func Convert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview,
} }
func autoConvert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, s conversion.Scope) error { func autoConvert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -21,9 +21,9 @@ limitations under the License.
package v1beta1 package v1beta1
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/client-go/pkg/api/v1"
reflect "reflect" reflect "reflect"
) )
@@ -47,8 +47,10 @@ func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion
in := in.(*TokenReview) in := in.(*TokenReview)
out := out.(*TokenReview) out := out.(*TokenReview)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err return err

View File

@@ -21,9 +21,9 @@ limitations under the License.
package authentication package authentication
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/client-go/pkg/api"
reflect "reflect" reflect "reflect"
) )
@@ -47,8 +47,10 @@ func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *con
in := in.(*TokenReview) in := in.(*TokenReview)
out := out.(*TokenReview) out := out.(*TokenReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err return err

View File

@@ -18,7 +18,6 @@ package authorization
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api"
) )
// +genclient=true // +genclient=true
@@ -29,7 +28,7 @@ import (
// spec.namespace means "in all namespaces". // spec.namespace means "in all namespaces".
type SubjectAccessReview struct { type SubjectAccessReview struct {
metav1.TypeMeta metav1.TypeMeta
api.ObjectMeta metav1.ObjectMeta
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
Spec SubjectAccessReviewSpec Spec SubjectAccessReviewSpec
@@ -47,7 +46,7 @@ type SubjectAccessReview struct {
// to check whether they can perform an action // to check whether they can perform an action
type SelfSubjectAccessReview struct { type SelfSubjectAccessReview struct {
metav1.TypeMeta metav1.TypeMeta
api.ObjectMeta metav1.ObjectMeta
// Spec holds information about the request being evaluated. // Spec holds information about the request being evaluated.
Spec SelfSubjectAccessReviewSpec Spec SelfSubjectAccessReviewSpec
@@ -64,7 +63,7 @@ type SelfSubjectAccessReview struct {
// checking. // checking.
type LocalSubjectAccessReview struct { type LocalSubjectAccessReview struct {
metav1.TypeMeta metav1.TypeMeta
api.ObjectMeta metav1.ObjectMeta
// Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace
// you made the request against. If empty, it is defaulted. // you made the request against. If empty, it is defaulted.

View File

@@ -670,7 +670,7 @@ func (this *LocalSubjectAccessReview) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&LocalSubjectAccessReview{`, s := strings.Join([]string{`&LocalSubjectAccessReview{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -709,7 +709,7 @@ func (this *SelfSubjectAccessReview) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&SelfSubjectAccessReview{`, s := strings.Join([]string{`&SelfSubjectAccessReview{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -732,7 +732,7 @@ func (this *SubjectAccessReview) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&SubjectAccessReview{`, s := strings.Join([]string{`&SubjectAccessReview{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -2283,61 +2283,62 @@ var (
) )
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 891 bytes of a gzipped FileDescriptorProto // 897 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x8f, 0xdb, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0xdc, 0x44,
0x14, 0x8f, 0x93, 0x78, 0x37, 0x99, 0x05, 0xb6, 0x4c, 0x55, 0xd6, 0x5d, 0x24, 0x27, 0x0a, 0x12, 0x14, 0x5f, 0xef, 0x9f, 0x64, 0x77, 0x02, 0xa4, 0x4c, 0x55, 0xe2, 0x06, 0xc9, 0xbb, 0x5a, 0x24,
0xda, 0x4a, 0xc5, 0x66, 0x57, 0xfc, 0xa9, 0x2a, 0x0e, 0xac, 0xc5, 0xaa, 0xaa, 0xa0, 0x05, 0xcd, 0x94, 0x4a, 0xc5, 0x6e, 0x22, 0xfe, 0x54, 0x15, 0x07, 0x62, 0x11, 0x55, 0x15, 0xb4, 0xa0, 0x09,
0xc2, 0x0a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 0xf5, 0xfd, 0x1f, 0x4e, 0xed, 0x8b,
0x00, 0xff, 0xff, 0x1f, 0x8b, 0xf7, 0x94, 0x5d, 0x0c, 0x00, 0x00, 0x75, 0xb3, 0xe8, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x31, 0x9f, 0xbd, 0x1e, 0x75, 0x0c, 0x00,
0x00,
} }

View File

@@ -45,7 +45,7 @@ message ExtraValue {
// checking. // checking.
message LocalSubjectAccessReview { message LocalSubjectAccessReview {
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace
// you made the request against. If empty, it is defaulted. // you made the request against. If empty, it is defaulted.
@@ -106,7 +106,7 @@ message ResourceAttributes {
// to check whether they can perform an action // to check whether they can perform an action
message SelfSubjectAccessReview { message SelfSubjectAccessReview {
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec holds information about the request being evaluated. user and groups must be empty // Spec holds information about the request being evaluated. user and groups must be empty
optional SelfSubjectAccessReviewSpec spec = 2; optional SelfSubjectAccessReviewSpec spec = 2;
@@ -131,7 +131,7 @@ message SelfSubjectAccessReviewSpec {
// SubjectAccessReview checks whether or not a user or group can perform an action. // SubjectAccessReview checks whether or not a user or group can perform an action.
message SubjectAccessReview { message SubjectAccessReview {
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
optional SubjectAccessReviewSpec spec = 2; optional SubjectAccessReviewSpec spec = 2;

View File

@@ -26,8 +26,7 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg2_v1 "k8s.io/client-go/pkg/api/v1"
"reflect" "reflect"
"runtime" "runtime"
time "time" time "time"
@@ -64,10 +63,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.TypeMeta var v0 pkg1_v1.TypeMeta
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg2_v1.ObjectMeta var v2 time.Time
var v3 time.Time _, _, _ = v0, v1, v2
_, _, _, _ = v0, v1, v2, v3
} }
} }
@@ -159,7 +157,13 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -169,7 +173,13 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -287,24 +297,30 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SubjectAccessReviewSpec{} x.Spec = SubjectAccessReviewSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -317,16 +333,16 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -334,21 +350,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -356,38 +372,44 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -395,16 +417,16 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SubjectAccessReviewSpec{} x.Spec = SubjectAccessReviewSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -412,21 +434,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -519,7 +541,13 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -529,7 +557,13 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -647,24 +681,30 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SelfSubjectAccessReviewSpec{} x.Spec = SelfSubjectAccessReviewSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -677,16 +717,16 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -694,21 +734,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -716,38 +756,44 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -755,16 +801,16 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SelfSubjectAccessReviewSpec{} x.Spec = SelfSubjectAccessReviewSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -772,21 +818,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -879,7 +925,13 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -889,7 +941,13 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -1007,24 +1065,30 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SubjectAccessReviewSpec{} x.Spec = SubjectAccessReviewSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -1037,16 +1101,16 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1054,21 +1118,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1076,38 +1140,44 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1115,16 +1185,16 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = SubjectAccessReviewSpec{} x.Spec = SubjectAccessReviewSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1132,21 +1202,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = SubjectAccessReviewStatus{} x.Status = SubjectAccessReviewStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@@ -20,7 +20,6 @@ import (
"fmt" "fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api/v1"
) )
// +genclient=true // +genclient=true
@@ -31,7 +30,7 @@ import (
type SubjectAccessReview struct { type SubjectAccessReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec holds information about the request being evaluated // Spec holds information about the request being evaluated
Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
@@ -51,7 +50,7 @@ type SubjectAccessReview struct {
type SelfSubjectAccessReview struct { type SelfSubjectAccessReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec holds information about the request being evaluated. user and groups must be empty // Spec holds information about the request being evaluated. user and groups must be empty
Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
@@ -70,7 +69,7 @@ type SelfSubjectAccessReview struct {
type LocalSubjectAccessReview struct { type LocalSubjectAccessReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace
// you made the request against. If empty, it is defaulted. // you made the request against. If empty, it is defaulted.

View File

@@ -55,10 +55,7 @@ func RegisterConversions(scheme *runtime.Scheme) error {
} }
func autoConvert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAccessReview(in *LocalSubjectAccessReview, out *authorization.LocalSubjectAccessReview, s conversion.Scope) error { func autoConvert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAccessReview(in *LocalSubjectAccessReview, out *authorization.LocalSubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -73,10 +70,7 @@ func Convert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAcces
} }
func autoConvert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAccessReview(in *authorization.LocalSubjectAccessReview, out *LocalSubjectAccessReview, s conversion.Scope) error { func autoConvert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAccessReview(in *authorization.LocalSubjectAccessReview, out *LocalSubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -141,10 +135,7 @@ func Convert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes(in *
} }
func autoConvert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *authorization.SelfSubjectAccessReview, s conversion.Scope) error { func autoConvert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *authorization.SelfSubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -159,10 +150,7 @@ func Convert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessR
} }
func autoConvert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessReview(in *authorization.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { func autoConvert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessReview(in *authorization.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -197,10 +185,7 @@ func Convert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAcc
} }
func autoConvert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in *SubjectAccessReview, out *authorization.SubjectAccessReview, s conversion.Scope) error { func autoConvert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in *SubjectAccessReview, out *authorization.SubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -215,10 +200,7 @@ func Convert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in
} }
func autoConvert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview(in *authorization.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error { func autoConvert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview(in *authorization.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -21,9 +21,9 @@ limitations under the License.
package v1beta1 package v1beta1
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/client-go/pkg/api/v1"
reflect "reflect" reflect "reflect"
) )
@@ -51,8 +51,10 @@ func DeepCopy_v1beta1_LocalSubjectAccessReview(in interface{}, out interface{},
in := in.(*LocalSubjectAccessReview) in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -84,8 +86,10 @@ func DeepCopy_v1beta1_SelfSubjectAccessReview(in interface{}, out interface{}, c
in := in.(*SelfSubjectAccessReview) in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -118,8 +122,10 @@ func DeepCopy_v1beta1_SubjectAccessReview(in interface{}, out interface{}, c *co
in := in.(*SubjectAccessReview) in := in.(*SubjectAccessReview)
out := out.(*SubjectAccessReview) out := out.(*SubjectAccessReview)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -21,9 +21,9 @@ limitations under the License.
package authorization package authorization
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/client-go/pkg/api"
reflect "reflect" reflect "reflect"
) )
@@ -51,8 +51,10 @@ func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interfa
in := in.(*LocalSubjectAccessReview) in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -84,8 +86,10 @@ func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interfac
in := in.(*SelfSubjectAccessReview) in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -118,8 +122,10 @@ func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{},
in := in.(*SubjectAccessReview) in := in.(*SubjectAccessReview)
out := out.(*SubjectAccessReview) out := out.(*SubjectAccessReview)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -18,7 +18,6 @@ package autoscaling
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api"
) )
// Scale represents a scaling request for a resource. // Scale represents a scaling request for a resource.
@@ -26,7 +25,7 @@ type Scale struct {
metav1.TypeMeta metav1.TypeMeta
// Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional
@@ -113,7 +112,7 @@ type HorizontalPodAutoscalerStatus struct {
type HorizontalPodAutoscaler struct { type HorizontalPodAutoscaler struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional

View File

@@ -543,7 +543,7 @@ func (this *HorizontalPodAutoscaler) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&HorizontalPodAutoscaler{`, s := strings.Join([]string{`&HorizontalPodAutoscaler{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -593,7 +593,7 @@ func (this *Scale) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&Scale{`, s := strings.Join([]string{`&Scale{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -1731,58 +1731,58 @@ var (
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 855 bytes of a gzipped FileDescriptorProto // 855 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x55,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7, 0xdd, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe2, 0xf5, 0xf3, 0x5f, 0x4e, 0xed, 0xeb, 0xfa, 0xb8, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x81,
0xa2, 0xe7, 0x25, 0xc5, 0x09, 0x00, 0x00, 0xf7, 0x9a, 0x52, 0xd5, 0x09, 0x00, 0x00,
} }

View File

@@ -48,7 +48,7 @@ message CrossVersionObjectReference {
message HorizontalPodAutoscaler { message HorizontalPodAutoscaler {
// Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional
@@ -115,7 +115,7 @@ message HorizontalPodAutoscalerStatus {
message Scale { message Scale {
// Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional

View File

@@ -26,8 +26,7 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg2_v1 "k8s.io/client-go/pkg/api/v1"
"reflect" "reflect"
"runtime" "runtime"
time "time" time "time"
@@ -64,10 +63,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.Time var v0 pkg1_v1.Time
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg2_v1.ObjectMeta var v2 time.Time
var v3 time.Time _, _, _ = v0, v1, v2
_, _, _, _ = v0, v1, v2, v3
} }
} }
@@ -1291,7 +1289,13 @@ func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -1301,7 +1305,13 @@ func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -1425,24 +1435,30 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = HorizontalPodAutoscalerSpec{} x.Spec = HorizontalPodAutoscalerSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = HorizontalPodAutoscalerStatus{} x.Status = HorizontalPodAutoscalerStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -1455,16 +1471,16 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1472,21 +1488,21 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1494,38 +1510,44 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1533,16 +1555,16 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = HorizontalPodAutoscalerSpec{} x.Spec = HorizontalPodAutoscalerSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1550,21 +1572,21 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = HorizontalPodAutoscalerStatus{} x.Status = HorizontalPodAutoscalerStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -2026,7 +2048,13 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -2036,7 +2064,13 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -2160,24 +2194,30 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = ScaleSpec{} x.Spec = ScaleSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = ScaleStatus{} x.Status = ScaleStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -2190,16 +2230,16 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -2207,21 +2247,21 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -2229,38 +2269,44 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -2268,16 +2314,16 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = ScaleSpec{} x.Spec = ScaleSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -2285,21 +2331,21 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = ScaleStatus{} x.Status = ScaleStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@@ -16,10 +16,7 @@ limitations under the License.
package v1 package v1
import ( import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api/v1"
)
// CrossVersionObjectReference contains enough information to let you identify the referred resource. // CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReference struct { type CrossVersionObjectReference struct {
@@ -78,7 +75,7 @@ type HorizontalPodAutoscaler struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional
@@ -105,7 +102,7 @@ type Scale struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
// +optional // +optional

View File

@@ -78,10 +78,7 @@ func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectRef
} }
func autoConvert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, s conversion.Scope) error { func autoConvert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -96,10 +93,7 @@ func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(i
} }
func autoConvert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, s conversion.Scope) error { func autoConvert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -188,10 +182,7 @@ func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutosc
} }
func autoConvert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s conversion.Scope) error { func autoConvert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -206,10 +197,7 @@ 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 { func autoConvert_autoscaling_Scale_To_v1_Scale(in *autoscaling.Scale, out *Scale, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -24,7 +24,6 @@ import (
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api_v1 "k8s.io/client-go/pkg/api/v1"
reflect "reflect" reflect "reflect"
) )
@@ -61,8 +60,10 @@ func DeepCopy_v1_HorizontalPodAutoscaler(in interface{}, out interface{}, c *con
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
*out = *in *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -140,8 +141,10 @@ func DeepCopy_v1_Scale(in interface{}, out interface{}, c *conversion.Cloner) er
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
*out = *in *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
return nil return nil
} }

View File

@@ -24,7 +24,6 @@ import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/client-go/pkg/api"
reflect "reflect" reflect "reflect"
) )
@@ -61,8 +60,10 @@ func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{
in := in.(*HorizontalPodAutoscaler) in := in.(*HorizontalPodAutoscaler)
out := out.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -140,8 +141,10 @@ func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.C
in := in.(*Scale) in := in.(*Scale)
out := out.(*Scale) out := out.(*Scale)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
return nil return nil
} }

View File

@@ -29,7 +29,7 @@ type Job struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// Spec is a structure defining the expected behavior of a job. // Spec is a structure defining the expected behavior of a job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -60,7 +60,7 @@ type JobTemplate struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// Template defines jobs that will be created from this template // Template defines jobs that will be created from this template
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -73,7 +73,7 @@ type JobTemplateSpec struct {
// Standard object's metadata of the jobs created from this template. // Standard object's metadata of the jobs created from this template.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// Specification of the desired behavior of the job. // Specification of the desired behavior of the job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -196,7 +196,7 @@ type CronJob struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
api.ObjectMeta metav1.ObjectMeta
// Spec is a structure defining the expected behavior of a job, including the schedule. // Spec is a structure defining the expected behavior of a job, including the schedule.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status

View File

@@ -468,7 +468,7 @@ func (this *Job) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&Job{`, s := strings.Join([]string{`&Job{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -1520,60 +1520,61 @@ var (
) )
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 879 bytes of a gzipped FileDescriptorProto // 881 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6f, 0xe3, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xcf, 0x47, 0xd3, 0x4d, 0xa6, 0x1f, 0xbb, 0x8c, 0x54, 0x29, 0xf4, 0x90, 0xac, 0x02, 0x42, 0x14, 0xce, 0x4f, 0xd3, 0x26, 0x93, 0xb6, 0xbb, 0x8c, 0x54, 0x29, 0xf4, 0x22, 0x59, 0x05, 0x84,
0x0b, 0xda, 0xb5, 0x95, 0xee, 0x0a, 0x21, 0x0e, 0x48, 0xb8, 0x08, 0x89, 0xaa, 0x65, 0xab, 0x49, 0x0a, 0xda, 0xb5, 0x49, 0x77, 0x85, 0x10, 0x17, 0x48, 0xb8, 0x08, 0x89, 0xaa, 0x65, 0xab, 0x49,
0x05, 0x88, 0x8f, 0xc3, 0xd8, 0x7e, 0x4d, 0x87, 0xda, 0x1e, 0xcb, 0x33, 0x8e, 0xd4, 0x1b, 0x37, 0x05, 0x12, 0x3f, 0x12, 0x63, 0xfb, 0x34, 0x1d, 0x6a, 0x7b, 0x2c, 0xcf, 0x38, 0x52, 0xef, 0x78,
0xae, 0xfc, 0x31, 0x08, 0xf1, 0x27, 0xf4, 0xd8, 0x23, 0xa7, 0x88, 0x9a, 0xff, 0x62, 0x4f, 0x68, 0x03, 0x78, 0x18, 0x84, 0x78, 0x84, 0x5e, 0xf6, 0x92, 0xab, 0x88, 0x9a, 0xb7, 0xd8, 0x2b, 0x34,
0xc6, 0xe3, 0x8f, 0x34, 0x69, 0xc9, 0x72, 0xb3, 0xdf, 0xbc, 0xdf, 0xef, 0x7d, 0xfd, 0xde, 0x43, 0xe3, 0x89, 0xed, 0x34, 0x29, 0xa4, 0xdc, 0xd9, 0x67, 0xbe, 0xef, 0x3b, 0x67, 0xce, 0xf9, 0xce,
0x2f, 0x2f, 0x3f, 0x11, 0x16, 0xe3, 0xf6, 0x65, 0xea, 0x42, 0x12, 0x81, 0x04, 0x61, 0xc7, 0x97, 0xa0, 0x97, 0x57, 0x1f, 0x0b, 0x8b, 0x71, 0xfb, 0x2a, 0x75, 0x21, 0x89, 0x40, 0x82, 0xb0, 0xe3,
0x53, 0x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0xe6, 0x4d, 0x36, 0x68, 0xfe, 0x9d, 0x0d, 0x9a, 0xbf, 0xfd, 0x33, 0x68, 0x7c, 0xdf, 0x9a, 0x26, 0xeb, 0xd7, 0x6f, 0xb3, 0x7e, 0xfd, 0xaf, 0xac, 0x5f, 0xff, 0xf5, 0xef, 0x7e, 0xed, 0xdb,
0x8d, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x15, 0xe7, 0x70, 0xeb, 0x08, 0x00, 0x00, 0xc6, 0x74, 0xf4, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x9a, 0xe5, 0xae, 0xf3, 0x08, 0x00,
0x00,
} }

View File

@@ -36,7 +36,7 @@ message Job {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec is a structure defining the expected behavior of a job. // Spec is a structure defining the expected behavior of a job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status

View File

@@ -26,9 +26,9 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg4_resource "k8s.io/client-go/pkg/api/resource" pkg4_resource "k8s.io/client-go/pkg/api/resource"
pkg2_v1 "k8s.io/client-go/pkg/api/v1" pkg3_v1 "k8s.io/client-go/pkg/api/v1"
pkg5_intstr "k8s.io/client-go/pkg/util/intstr" pkg5_intstr "k8s.io/client-go/pkg/util/intstr"
"reflect" "reflect"
"runtime" "runtime"
@@ -66,9 +66,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.TypeMeta var v0 pkg1_v1.TypeMeta
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg4_resource.Quantity var v2 pkg4_resource.Quantity
var v3 pkg2_v1.ObjectMeta var v3 pkg3_v1.PodTemplateSpec
var v4 pkg5_intstr.IntOrString var v4 pkg5_intstr.IntOrString
var v5 time.Time var v5 time.Time
_, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5
@@ -164,7 +164,13 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -174,7 +180,13 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -298,24 +310,30 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = JobStatus{} x.Status = JobStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -328,16 +346,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -345,21 +363,21 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -367,38 +385,44 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -406,16 +430,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -423,21 +447,21 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = JobStatus{} x.Status = JobStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -1175,7 +1199,7 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "template": case "template":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv14 := &x.Template yyv14 := &x.Template
yyv14.CodecDecodeSelf(d) yyv14.CodecDecodeSelf(d)
@@ -1337,7 +1361,7 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv26 := &x.Template yyv26 := &x.Template
yyv26.CodecDecodeSelf(d) yyv26.CodecDecodeSelf(d)

View File

@@ -29,7 +29,7 @@ type Job struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec is a structure defining the expected behavior of a job. // Spec is a structure defining the expected behavior of a job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status

View File

@@ -52,10 +52,7 @@ func RegisterConversions(scheme *runtime.Scheme) error {
} }
func autoConvert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { func autoConvert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -70,10 +67,7 @@ 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 { func autoConvert_batch_Job_To_v1_Job(in *batch.Job, out *Job, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_batch_JobSpec_To_v1_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_batch_JobSpec_To_v1_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -49,8 +49,10 @@ func DeepCopy_v1_Job(in interface{}, out interface{}, c *conversion.Cloner) erro
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
*out = *in *out = *in
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*meta_v1.ObjectMeta)
} }
if err := DeepCopy_v1_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v1_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -821,7 +821,7 @@ func (this *CronJob) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&CronJob{`, s := strings.Join([]string{`&CronJob{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -869,7 +869,7 @@ func (this *Job) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&Job{`, s := strings.Join([]string{`&Job{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`,
`}`, `}`,
@@ -937,7 +937,7 @@ func (this *JobTemplate) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&JobTemplate{`, s := strings.Join([]string{`&JobTemplate{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
`}`, `}`,
}, "") }, "")
@@ -948,7 +948,7 @@ func (this *JobTemplateSpec) String() string {
return "nil" return "nil"
} }
s := strings.Join([]string{`&JobTemplateSpec{`, s := strings.Join([]string{`&JobTemplateSpec{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
`}`, `}`,
}, "") }, "")
@@ -2708,77 +2708,77 @@ var (
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 1158 bytes of a gzipped FileDescriptorProto // 1158 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x56, 0x4b, 0x6f, 0x23, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x56, 0xcd, 0x6f, 0xe3, 0x44,
0x10, 0xce, 0xd8, 0x89, 0x1f, 0xed, 0xcd, 0xab, 0x21, 0x5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35, 0xed, 0xcd, 0x7d, 0x17, 0xd6, 0x94, 0xf3, 0xb0, 0xa6, 0x5c, 0x84, 0x35, 0xe5, 0xef, 0xb0, 0xa6, 0xfc,
0xfb, 0xbf, 0x6b, 0x73, 0x5f, 0x94, 0x62, 0x9e, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x00, 0x9d, 0xf0, 0x4f, 0x6d, 0xee, 0xab, 0x52, 0xcc, 0xf3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x36,
0xf9, 0x2b, 0xfa, 0x0e, 0x00, 0x00, 0x56, 0x74, 0x1a, 0x0f, 0x00, 0x00,
} }

View File

@@ -36,7 +36,7 @@ message CronJob {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec is a structure defining the expected behavior of a job, including the schedule. // Spec is a structure defining the expected behavior of a job, including the schedule.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -100,7 +100,7 @@ message Job {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec is a structure defining the expected behavior of a job. // Spec is a structure defining the expected behavior of a job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -235,7 +235,7 @@ message JobTemplate {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Template defines jobs that will be created from this template // Template defines jobs that will be created from this template
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -248,7 +248,7 @@ message JobTemplateSpec {
// Standard object's metadata of the jobs created from this template. // Standard object's metadata of the jobs created from this template.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Specification of the desired behavior of the job. // Specification of the desired behavior of the job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status

View File

@@ -26,9 +26,9 @@ import (
"fmt" "fmt"
codec1978 "github.com/ugorji/go/codec" codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg3_types "k8s.io/apimachinery/pkg/types" pkg2_types "k8s.io/apimachinery/pkg/types"
pkg4_resource "k8s.io/client-go/pkg/api/resource" pkg4_resource "k8s.io/client-go/pkg/api/resource"
pkg2_v1 "k8s.io/client-go/pkg/api/v1" pkg3_v1 "k8s.io/client-go/pkg/api/v1"
pkg5_intstr "k8s.io/client-go/pkg/util/intstr" pkg5_intstr "k8s.io/client-go/pkg/util/intstr"
"reflect" "reflect"
"runtime" "runtime"
@@ -66,9 +66,9 @@ func init() {
} }
if false { // reference the types, but skip this branch at build/run time if false { // reference the types, but skip this branch at build/run time
var v0 pkg1_v1.TypeMeta var v0 pkg1_v1.TypeMeta
var v1 pkg3_types.UID var v1 pkg2_types.UID
var v2 pkg4_resource.Quantity var v2 pkg4_resource.Quantity
var v3 pkg2_v1.ObjectMeta var v3 pkg3_v1.PodTemplateSpec
var v4 pkg5_intstr.IntOrString var v4 pkg5_intstr.IntOrString
var v5 time.Time var v5 time.Time
_, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5
@@ -164,7 +164,13 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -174,7 +180,13 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -298,24 +310,30 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = JobStatus{} x.Status = JobStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -328,16 +346,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -345,21 +363,21 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -367,38 +385,44 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -406,16 +430,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -423,21 +447,21 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = JobStatus{} x.Status = JobStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -898,7 +922,13 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -908,7 +938,13 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -1015,17 +1051,23 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "template": case "template":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = JobTemplateSpec{} x.Template = JobTemplateSpec{}
} else { } else {
yyv9 := &x.Template yyv10 := &x.Template
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -1038,16 +1080,16 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj10 int var yyj11 int
var yyb10 bool var yyb11 bool
var yyhl10 bool = l >= 0 var yyhl11 bool = l >= 0
yyj10++ yyj11++
if yyhl10 { if yyhl11 {
yyb10 = yyj10 > l yyb11 = yyj11 > l
} else { } else {
yyb10 = r.CheckBreak() yyb11 = r.CheckBreak()
} }
if yyb10 { if yyb11 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1055,21 +1097,21 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv11 := &x.Kind yyv12 := &x.Kind
yym12 := z.DecBinary() yym13 := z.DecBinary()
_ = yym12 _ = yym13
if false { if false {
} else { } else {
*((*string)(yyv11)) = r.DecodeString() *((*string)(yyv12)) = r.DecodeString()
} }
} }
yyj10++ yyj11++
if yyhl10 { if yyhl11 {
yyb10 = yyj10 > l yyb11 = yyj11 > l
} else { } else {
yyb10 = r.CheckBreak() yyb11 = r.CheckBreak()
} }
if yyb10 { if yyb11 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1077,38 +1119,44 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv13 := &x.APIVersion yyv14 := &x.APIVersion
yym14 := z.DecBinary() yym15 := z.DecBinary()
_ = yym14 _ = yym15
if false { if false {
} else { } else {
*((*string)(yyv13)) = r.DecodeString() *((*string)(yyv14)) = r.DecodeString()
} }
} }
yyj10++ yyj11++
if yyhl10 { if yyhl11 {
yyb10 = yyj10 > l yyb11 = yyj11 > l
} else { } else {
yyb10 = r.CheckBreak() yyb11 = r.CheckBreak()
} }
if yyb10 { if yyb11 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv15 := &x.ObjectMeta yyv16 := &x.ObjectMeta
yyv15.CodecDecodeSelf(d) yym17 := z.DecBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.DecExt(yyv16) {
} else {
z.DecFallback(yyv16, false)
}
} }
yyj10++ yyj11++
if yyhl10 { if yyhl11 {
yyb10 = yyj10 > l yyb11 = yyj11 > l
} else { } else {
yyb10 = r.CheckBreak() yyb11 = r.CheckBreak()
} }
if yyb10 { if yyb11 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1116,21 +1164,21 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = JobTemplateSpec{} x.Template = JobTemplateSpec{}
} else { } else {
yyv16 := &x.Template yyv18 := &x.Template
yyv16.CodecDecodeSelf(d) yyv18.CodecDecodeSelf(d)
} }
for { for {
yyj10++ yyj11++
if yyhl10 { if yyhl11 {
yyb10 = yyj10 > l yyb11 = yyj11 > l
} else { } else {
yyb10 = r.CheckBreak() yyb11 = r.CheckBreak()
} }
if yyb10 { if yyb11 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj10-1, "") z.DecStructFieldNotFound(yyj11-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -1171,7 +1219,13 @@ func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] { if yyq2[0] {
yy4 := &x.ObjectMeta yy4 := &x.ObjectMeta
yy4.CodecEncodeSelf(e) yym5 := z.EncBinary()
_ = yym5
if false {
} else if z.HasExtensions() && z.EncExt(yy4) {
} else {
z.EncFallback(yy4)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -1181,7 +1235,13 @@ func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy6 := &x.ObjectMeta yy6 := &x.ObjectMeta
yy6.CodecEncodeSelf(e) yym7 := z.EncBinary()
_ = yym7
if false {
} else if z.HasExtensions() && z.EncExt(yy6) {
} else {
z.EncFallback(yy6)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -1264,17 +1324,23 @@ func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
switch yys3 { switch yys3 {
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv4 := &x.ObjectMeta yyv4 := &x.ObjectMeta
yyv4.CodecDecodeSelf(d) yym5 := z.DecBinary()
_ = yym5
if false {
} else if z.HasExtensions() && z.DecExt(yyv4) {
} else {
z.DecFallback(yyv4, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv5 := &x.Spec yyv6 := &x.Spec
yyv5.CodecDecodeSelf(d) yyv6.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -1287,33 +1353,39 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj6 int var yyj7 int
var yyb6 bool var yyb7 bool
var yyhl6 bool = l >= 0 var yyhl7 bool = l >= 0
yyj6++ yyj7++
if yyhl6 { if yyhl7 {
yyb6 = yyj6 > l yyb7 = yyj7 > l
} else { } else {
yyb6 = r.CheckBreak() yyb7 = r.CheckBreak()
} }
if yyb6 { if yyb7 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv7 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv7.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
yyj6++ yyj7++
if yyhl6 { if yyhl7 {
yyb6 = yyj6 > l yyb7 = yyj7 > l
} else { } else {
yyb6 = r.CheckBreak() yyb7 = r.CheckBreak()
} }
if yyb6 { if yyb7 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -1321,21 +1393,21 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = JobSpec{} x.Spec = JobSpec{}
} else { } else {
yyv8 := &x.Spec yyv10 := &x.Spec
yyv8.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
for { for {
yyj6++ yyj7++
if yyhl6 { if yyhl7 {
yyb6 = yyj6 > l yyb7 = yyj7 > l
} else { } else {
yyb6 = r.CheckBreak() yyb7 = r.CheckBreak()
} }
if yyb6 { if yyb7 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj6-1, "") z.DecStructFieldNotFound(yyj7-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -1705,7 +1777,7 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "template": case "template":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv14 := &x.Template yyv14 := &x.Template
yyv14.CodecDecodeSelf(d) yyv14.CodecDecodeSelf(d)
@@ -1867,7 +1939,7 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{} x.Template = pkg3_v1.PodTemplateSpec{}
} else { } else {
yyv26 := &x.Template yyv26 := &x.Template
yyv26.CodecDecodeSelf(d) yyv26.CodecDecodeSelf(d)
@@ -3037,7 +3109,13 @@ func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yy10.CodecEncodeSelf(e) yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@@ -3047,7 +3125,13 @@ func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy12 := &x.ObjectMeta
yy12.CodecEncodeSelf(e) yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@@ -3171,24 +3255,30 @@ func (x *CronJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv8 := &x.ObjectMeta yyv8 := &x.ObjectMeta
yyv8.CodecDecodeSelf(d) yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = CronJobSpec{} x.Spec = CronJobSpec{}
} else { } else {
yyv9 := &x.Spec yyv10 := &x.Spec
yyv9.CodecDecodeSelf(d) yyv10.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = CronJobStatus{} x.Status = CronJobStatus{}
} else { } else {
yyv10 := &x.Status yyv11 := &x.Status
yyv10.CodecDecodeSelf(d) yyv11.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@@ -3201,16 +3291,16 @@ func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj11 int var yyj12 int
var yyb11 bool var yyb12 bool
var yyhl11 bool = l >= 0 var yyhl12 bool = l >= 0
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -3218,21 +3308,21 @@ func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv12 := &x.Kind yyv13 := &x.Kind
yym13 := z.DecBinary() yym14 := z.DecBinary()
_ = yym13 _ = yym14
if false { if false {
} else { } else {
*((*string)(yyv12)) = r.DecodeString() *((*string)(yyv13)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -3240,38 +3330,44 @@ func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv14 := &x.APIVersion yyv15 := &x.APIVersion
yym15 := z.DecBinary() yym16 := z.DecBinary()
_ = yym15 _ = yym16
if false { if false {
} else { } else {
*((*string)(yyv14)) = r.DecodeString() *((*string)(yyv15)) = r.DecodeString()
} }
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv16 := &x.ObjectMeta yyv17 := &x.ObjectMeta
yyv16.CodecDecodeSelf(d) yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -3279,16 +3375,16 @@ func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = CronJobSpec{} x.Spec = CronJobSpec{}
} else { } else {
yyv17 := &x.Spec yyv19 := &x.Spec
yyv17.CodecDecodeSelf(d) yyv19.CodecDecodeSelf(d)
} }
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@@ -3296,21 +3392,21 @@ func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = CronJobStatus{} x.Status = CronJobStatus{}
} else { } else {
yyv18 := &x.Status yyv20 := &x.Status
yyv18.CodecDecodeSelf(d) yyv20.CodecDecodeSelf(d)
} }
for { for {
yyj11++ yyj12++
if yyhl11 { if yyhl12 {
yyb11 = yyj11 > l yyb12 = yyj12 > l
} else { } else {
yyb11 = r.CheckBreak() yyb12 = r.CheckBreak()
} }
if yyb11 { if yyb12 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj11-1, "") z.DecStructFieldNotFound(yyj12-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@@ -4156,7 +4252,7 @@ func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym4 _ = yym4
if false { if false {
} else { } else {
h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) h.encSlicev1_ObjectReference(([]pkg3_v1.ObjectReference)(x.Active), e)
} }
} }
} else { } else {
@@ -4174,7 +4270,7 @@ func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym5 _ = yym5
if false { if false {
} else { } else {
h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) h.encSlicev1_ObjectReference(([]pkg3_v1.ObjectReference)(x.Active), e)
} }
} }
} }
@@ -4292,7 +4388,7 @@ func (x *CronJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
_ = yym5 _ = yym5
if false { if false {
} else { } else {
h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv4), d) h.decSlicev1_ObjectReference((*[]pkg3_v1.ObjectReference)(yyv4), d)
} }
} }
case "lastScheduleTime": case "lastScheduleTime":
@@ -4349,7 +4445,7 @@ func (x *CronJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
_ = yym10 _ = yym10
if false { if false {
} else { } else {
h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv9), d) h.decSlicev1_ObjectReference((*[]pkg3_v1.ObjectReference)(yyv9), d)
} }
} }
yyj8++ yyj8++
@@ -4756,7 +4852,7 @@ func (x codecSelfer1234) decSliceCronJob(v *[]CronJob, d *codec1978.Decoder) {
} }
} }
func (x codecSelfer1234) encSlicev1_ObjectReference(v []pkg2_v1.ObjectReference, e *codec1978.Encoder) { func (x codecSelfer1234) encSlicev1_ObjectReference(v []pkg3_v1.ObjectReference, e *codec1978.Encoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
@@ -4769,7 +4865,7 @@ func (x codecSelfer1234) encSlicev1_ObjectReference(v []pkg2_v1.ObjectReference,
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} }
func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference, d *codec1978.Decoder) { func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg3_v1.ObjectReference, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
@@ -4780,7 +4876,7 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
_ = yyc1 _ = yyc1
if yyl1 == 0 { if yyl1 == 0 {
if yyv1 == nil { if yyv1 == nil {
yyv1 = []pkg2_v1.ObjectReference{} yyv1 = []pkg3_v1.ObjectReference{}
yyc1 = true yyc1 = true
} else if len(yyv1) != 0 { } else if len(yyv1) != 0 {
yyv1 = yyv1[:0] yyv1 = yyv1[:0]
@@ -4800,10 +4896,10 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
if yyrl1 <= cap(yyv1) { if yyrl1 <= cap(yyv1) {
yyv1 = yyv1[:yyrl1] yyv1 = yyv1[:yyrl1]
} else { } else {
yyv1 = make([]pkg2_v1.ObjectReference, yyrl1) yyv1 = make([]pkg3_v1.ObjectReference, yyrl1)
} }
} else { } else {
yyv1 = make([]pkg2_v1.ObjectReference, yyrl1) yyv1 = make([]pkg3_v1.ObjectReference, yyrl1)
} }
yyc1 = true yyc1 = true
yyrr1 = len(yyv1) yyrr1 = len(yyv1)
@@ -4818,7 +4914,7 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
for ; yyj1 < yyrr1; yyj1++ { for ; yyj1 < yyrr1; yyj1++ {
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.ObjectReference{} yyv1[yyj1] = pkg3_v1.ObjectReference{}
} else { } else {
yyv2 := &yyv1[yyj1] yyv2 := &yyv1[yyj1]
yyv2.CodecDecodeSelf(d) yyv2.CodecDecodeSelf(d)
@@ -4827,10 +4923,10 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
} }
if yyrt1 { if yyrt1 {
for ; yyj1 < yyl1; yyj1++ { for ; yyj1 < yyl1; yyj1++ {
yyv1 = append(yyv1, pkg2_v1.ObjectReference{}) yyv1 = append(yyv1, pkg3_v1.ObjectReference{})
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.ObjectReference{} yyv1[yyj1] = pkg3_v1.ObjectReference{}
} else { } else {
yyv3 := &yyv1[yyj1] yyv3 := &yyv1[yyj1]
yyv3.CodecDecodeSelf(d) yyv3.CodecDecodeSelf(d)
@@ -4844,13 +4940,13 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
for ; !r.CheckBreak(); yyj1++ { for ; !r.CheckBreak(); yyj1++ {
if yyj1 >= len(yyv1) { if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, pkg2_v1.ObjectReference{}) // var yyz1 pkg2_v1.ObjectReference yyv1 = append(yyv1, pkg3_v1.ObjectReference{}) // var yyz1 pkg3_v1.ObjectReference
yyc1 = true yyc1 = true
} }
yyh1.ElemContainerState(yyj1) yyh1.ElemContainerState(yyj1)
if yyj1 < len(yyv1) { if yyj1 < len(yyv1) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv1[yyj1] = pkg2_v1.ObjectReference{} yyv1[yyj1] = pkg3_v1.ObjectReference{}
} else { } else {
yyv4 := &yyv1[yyj1] yyv4 := &yyv1[yyj1]
yyv4.CodecDecodeSelf(d) yyv4.CodecDecodeSelf(d)
@@ -4865,7 +4961,7 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference
yyv1 = yyv1[:yyj1] yyv1 = yyv1[:yyj1]
yyc1 = true yyc1 = true
} else if yyj1 == 0 && yyv1 == nil { } else if yyj1 == 0 && yyv1 == nil {
yyv1 = []pkg2_v1.ObjectReference{} yyv1 = []pkg3_v1.ObjectReference{}
yyc1 = true yyc1 = true
} }
} }

View File

@@ -29,7 +29,7 @@ type Job struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec is a structure defining the expected behavior of a job. // Spec is a structure defining the expected behavior of a job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -60,7 +60,7 @@ type JobTemplate struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Template defines jobs that will be created from this template // Template defines jobs that will be created from this template
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -73,7 +73,7 @@ type JobTemplateSpec struct {
// Standard object's metadata of the jobs created from this template. // Standard object's metadata of the jobs created from this template.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of the job. // Specification of the desired behavior of the job.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
@@ -202,7 +202,7 @@ type CronJob struct {
// Standard object's metadata. // Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional // +optional
v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec is a structure defining the expected behavior of a job, including the schedule. // Spec is a structure defining the expected behavior of a job, including the schedule.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status

View File

@@ -64,10 +64,7 @@ func RegisterConversions(scheme *runtime.Scheme) error {
} }
func autoConvert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error { func autoConvert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -82,10 +79,7 @@ func Convert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob,
} }
func autoConvert_batch_CronJob_To_v2alpha1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error { func autoConvert_batch_CronJob_To_v2alpha1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -190,10 +184,7 @@ func Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(in *batch.CronJobStat
} }
func autoConvert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { func autoConvert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -208,10 +199,7 @@ func Convert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Sco
} }
func autoConvert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, s conversion.Scope) error { func autoConvert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -346,10 +334,7 @@ func Convert_batch_JobStatus_To_v2alpha1_JobStatus(in *batch.JobStatus, out *Job
} }
func autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error { func autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { if err := Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err return err
} }
@@ -361,10 +346,7 @@ func Convert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *bat
} }
func autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error { func autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { if err := Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, s); err != nil {
return err return err
} }
@@ -376,10 +358,7 @@ func Convert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, ou
} }
func autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error { func autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }
@@ -391,10 +370,7 @@ func Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSp
} }
func autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error { func autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error {
// TODO: Inefficient conversion - can we improve it? out.ObjectMeta = in.ObjectMeta
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
return err
}
if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil {
return err return err
} }

View File

@@ -21,10 +21,10 @@ limitations under the License.
package v2alpha1 package v2alpha1
import ( import (
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/client-go/pkg/api/v1" api_v1 "k8s.io/client-go/pkg/api/v1"
reflect "reflect" reflect "reflect"
) )
@@ -55,8 +55,10 @@ func DeepCopy_v2alpha1_CronJob(in interface{}, out interface{}, c *conversion.Cl
in := in.(*CronJob) in := in.(*CronJob)
out := out.(*CronJob) out := out.(*CronJob)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -115,14 +117,14 @@ func DeepCopy_v2alpha1_CronJobStatus(in interface{}, out interface{}, c *convers
*out = *in *out = *in
if in.Active != nil { if in.Active != nil {
in, out := &in.Active, &out.Active in, out := &in.Active, &out.Active
*out = make([]v1.ObjectReference, len(*in)) *out = make([]api_v1.ObjectReference, len(*in))
for i := range *in { for i := range *in {
(*out)[i] = (*in)[i] (*out)[i] = (*in)[i]
} }
} }
if in.LastScheduleTime != nil { if in.LastScheduleTime != nil {
in, out := &in.LastScheduleTime, &out.LastScheduleTime in, out := &in.LastScheduleTime, &out.LastScheduleTime
*out = new(meta_v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} }
return nil return nil
@@ -134,8 +136,10 @@ func DeepCopy_v2alpha1_Job(in interface{}, out interface{}, c *conversion.Cloner
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -201,7 +205,7 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl
if newVal, err := c.DeepCopy(*in); err != nil { if newVal, err := c.DeepCopy(*in); err != nil {
return err return err
} else { } else {
*out = newVal.(*meta_v1.LabelSelector) *out = newVal.(*v1.LabelSelector)
} }
} }
if in.ManualSelector != nil { if in.ManualSelector != nil {
@@ -209,7 +213,7 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
} }
return nil return nil
@@ -232,12 +236,12 @@ func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion.
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
*out = new(meta_v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} }
if in.CompletionTime != nil { if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime in, out := &in.CompletionTime, &out.CompletionTime
*out = new(meta_v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} }
return nil return nil
@@ -249,8 +253,10 @@ func DeepCopy_v2alpha1_JobTemplate(in interface{}, out interface{}, c *conversio
in := in.(*JobTemplate) in := in.(*JobTemplate)
out := out.(*JobTemplate) out := out.(*JobTemplate)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -264,8 +270,10 @@ func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conve
in := in.(*JobTemplateSpec) in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec) out := out.(*JobTemplateSpec)
*out = *in *out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -55,8 +55,10 @@ func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Clone
in := in.(*CronJob) in := in.(*CronJob)
out := out.(*CronJob) out := out.(*CronJob)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -134,8 +136,10 @@ func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) e
in := in.(*Job) in := in.(*Job)
out := out.(*Job) out := out.(*Job)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err
@@ -249,8 +253,10 @@ func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.C
in := in.(*JobTemplate) in := in.(*JobTemplate)
out := out.(*JobTemplate) out := out.(*JobTemplate)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err return err
@@ -264,8 +270,10 @@ func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversi
in := in.(*JobTemplateSpec) in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec) out := out.(*JobTemplateSpec)
*out = *in *out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err return err

View File

@@ -0,0 +1,38 @@
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package certificates
import (
"crypto/x509"
"encoding/pem"
"errors"
)
// ParseCSR extracts the CSR from the API object and decodes it.
func ParseCSR(obj *CertificateSigningRequest) (*x509.CertificateRequest, error) {
// extract PEM from request object
pemBytes := obj.Spec.Request
block, _ := pem.Decode(pemBytes)
if block == nil || block.Type != "CERTIFICATE REQUEST" {
return nil, errors.New("PEM block type must be CERTIFICATE REQUEST")
}
csr, err := x509.ParseCertificateRequest(block.Bytes)
if err != nil {
return nil, err
}
return csr, nil
}

Some files were not shown because too many files have changed in this diff Show More