generated: staging

parent 9a2a50cd
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,11 @@ limitations under the License. ...@@ -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. ...@@ -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
......
...@@ -21,14 +21,13 @@ limitations under the License. ...@@ -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) ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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) ...@@ -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) ...@@ -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. ...@@ -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
......
...@@ -21,12 +21,11 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
......
...@@ -21,12 +21,10 @@ limitations under the License. ...@@ -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{ ...@@ -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 ...@@ -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
} }
......
...@@ -21,12 +21,11 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,13 +21,12 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 * ...@@ -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{}, ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,12 +21,11 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
......
...@@ -21,11 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -58,6 +58,7 @@ go_test( ...@@ -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",
], ],
) )
......
...@@ -21,11 +21,11 @@ go_library( ...@@ -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",
......
...@@ -140,6 +140,29 @@ func (ListMeta) SwaggerDoc() map[string]string { ...@@ -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.",
......
...@@ -17,7 +17,7 @@ limitations under the License. ...@@ -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
......
...@@ -18,7 +18,6 @@ package meta ...@@ -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 { ...@@ -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
} }
......
...@@ -20,13 +20,13 @@ import ( ...@@ -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) { ...@@ -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") ...@@ -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
} }
......
...@@ -246,6 +246,154 @@ message ListMeta { ...@@ -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.
......
...@@ -181,3 +181,17 @@ func ExtractGroupVersions(l *APIGroupList) []string { ...@@ -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
}
...@@ -17,11 +17,78 @@ limitations under the License. ...@@ -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 { ...@@ -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
}
...@@ -145,8 +145,8 @@ func (t Time) MarshalJSON() ([]byte, error) { ...@@ -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"},
......
...@@ -71,6 +71,154 @@ type ListMeta struct { ...@@ -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.
......
...@@ -48,6 +48,7 @@ type Unstructured struct { ...@@ -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{}
......
...@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and ...@@ -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"
......
...@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and ...@@ -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
...@@ -25,12 +25,12 @@ import ( ...@@ -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"
......
...@@ -20,10 +20,10 @@ import ( ...@@ -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"
) )
......
...@@ -20,10 +20,10 @@ import ( ...@@ -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"
......
/*
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))
}
...@@ -24,6 +24,8 @@ import ( ...@@ -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 ( ...@@ -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 { ...@@ -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,
......
...@@ -17,109 +17,11 @@ limitations under the License. ...@@ -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
}
...@@ -57,6 +57,7 @@ import ( ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 ...@@ -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 ( ...@@ -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 { ...@@ -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 ( ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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.
......
...@@ -269,9 +269,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error { ...@@ -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 ...@@ -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 {
......
...@@ -19,7 +19,7 @@ package v1 ...@@ -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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -141,7 +141,7 @@ message Binding { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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
......
...@@ -21,6 +21,7 @@ import ( ...@@ -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( ...@@ -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,
......
...@@ -17,14 +17,13 @@ limitations under the License. ...@@ -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 }
......
...@@ -964,7 +964,7 @@ func (ObjectFieldSelector) SwaggerDoc() map[string]string { ...@@ -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",
......
...@@ -301,8 +301,10 @@ func DeepCopy_v1_Binding(in interface{}, out interface{}, c *conversion.Cloner) ...@@ -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. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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. ...@@ -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 ...@@ -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. ...@@ -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. ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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) ...@@ -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 ...@@ -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
......
...@@ -304,8 +304,10 @@ func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner) ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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) ...@@ -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) ...@@ -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. ...@@ -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
......
...@@ -32,7 +32,7 @@ import ( ...@@ -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
......
...@@ -343,7 +343,7 @@ func (this *StatefulSet) String() string { ...@@ -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 ( ...@@ -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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c, 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,
} }
...@@ -39,7 +39,7 @@ option go_package = "v1beta1"; ...@@ -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
......
...@@ -32,7 +32,7 @@ import ( ...@@ -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
......
...@@ -50,10 +50,7 @@ func RegisterConversions(scheme *runtime.Scheme) error { ...@@ -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. ...@@ -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
} }
......
...@@ -21,10 +21,10 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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
} }
} }
......
...@@ -48,8 +48,10 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl ...@@ -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
......
...@@ -18,7 +18,6 @@ package authentication ...@@ -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 ( ...@@ -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
......
...@@ -390,7 +390,7 @@ func (this *TokenReview) String() string { ...@@ -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 ( ...@@ -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, 0xd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xf7, 0x78, 0x7e, 0x8d, 0x66, 0x26, 0x8b, 0x4d, 0x73,
0x98, 0xce, 0xa3, 0xb3, 0xb1, 0x65, 0x9c, 0x8f, 0x2d, 0xe3, 0xfb, 0xd8, 0x32, 0x4e, 0x27, 0x96, 0xad, 0xb5, 0xe2, 0xaa, 0xe5, 0x3e, 0x3a, 0x1e, 0xd9, 0x85, 0x93, 0x91, 0x5d, 0xf8, 0x31, 0xb2,
0x79, 0x36, 0xb1, 0xcc, 0xf3, 0x89, 0x65, 0xfe, 0x9c, 0x58, 0xe6, 0xa7, 0x5f, 0x96, 0xf1, 0xee, 0x0b, 0x47, 0x63, 0xdb, 0x3a, 0x1e, 0xdb, 0xd6, 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,
} }
...@@ -45,7 +45,7 @@ message ExtraValue { ...@@ -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;
......
...@@ -26,8 +26,7 @@ import ( ...@@ -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() { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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)
} }
......
...@@ -20,7 +20,6 @@ import ( ...@@ -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 ( ...@@ -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"`
......
...@@ -47,10 +47,7 @@ func RegisterConversions(scheme *runtime.Scheme) error { ...@@ -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, ...@@ -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
} }
......
...@@ -21,9 +21,9 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -21,9 +21,9 @@ limitations under the License. ...@@ -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 ...@@ -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
......
...@@ -18,7 +18,6 @@ package authorization ...@@ -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 ( ...@@ -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 { ...@@ -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 { ...@@ -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.
......
...@@ -45,7 +45,7 @@ message ExtraValue { ...@@ -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 { ...@@ -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 { ...@@ -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;
......
...@@ -20,7 +20,6 @@ import ( ...@@ -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 ( ...@@ -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 { ...@@ -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 { ...@@ -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.
......
...@@ -55,10 +55,7 @@ func RegisterConversions(scheme *runtime.Scheme) error { ...@@ -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 ...@@ -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 * ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
...@@ -21,9 +21,9 @@ limitations under the License. ...@@ -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{}, ...@@ -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 ...@@ -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 ...@@ -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
......
...@@ -21,9 +21,9 @@ limitations under the License. ...@@ -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 ...@@ -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 ...@@ -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{}, ...@@ -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
......
...@@ -18,7 +18,6 @@ package autoscaling ...@@ -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 { ...@@ -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 { ...@@ -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
......
...@@ -48,7 +48,7 @@ message CrossVersionObjectReference { ...@@ -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 { ...@@ -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
......
...@@ -16,10 +16,7 @@ limitations under the License. ...@@ -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 { ...@@ -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 { ...@@ -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
......
...@@ -78,10 +78,7 @@ func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectRef ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment