Revert "Improve conversion to support multiple packages"
This commit is contained in:
@@ -18,14 +18,14 @@ package api
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE
|
||||
import (
|
||||
resource "github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
conversion "github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
fields "github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
|
||||
labels "github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
|
||||
runtime "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
util "github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||
inf "speter.net/go/exp/math/dec/inf"
|
||||
time "time"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||
"speter.net/go/exp/math/dec/inf"
|
||||
"time"
|
||||
)
|
||||
|
||||
func deepCopy_api_AWSElasticBlockStoreVolumeSource(in AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, c *conversion.Cloner) error {
|
||||
@@ -587,7 +587,7 @@ func deepCopy_api_LimitRange(in LimitRange, out *LimitRange, c *conversion.Clone
|
||||
func deepCopy_api_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conversion.Cloner) error {
|
||||
out.Type = in.Type
|
||||
if in.Max != nil {
|
||||
out.Max = make(ResourceList)
|
||||
out.Max = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Max {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -599,7 +599,7 @@ func deepCopy_api_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conv
|
||||
out.Max = nil
|
||||
}
|
||||
if in.Min != nil {
|
||||
out.Min = make(ResourceList)
|
||||
out.Min = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Min {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -611,7 +611,7 @@ func deepCopy_api_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conv
|
||||
out.Min = nil
|
||||
}
|
||||
if in.Default != nil {
|
||||
out.Default = make(ResourceList)
|
||||
out.Default = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Default {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -857,7 +857,7 @@ func deepCopy_api_NodeSpec(in NodeSpec, out *NodeSpec, c *conversion.Cloner) err
|
||||
|
||||
func deepCopy_api_NodeStatus(in NodeStatus, out *NodeStatus, c *conversion.Cloner) error {
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1041,7 +1041,7 @@ func deepCopy_api_PersistentVolumeClaimStatus(in PersistentVolumeClaimStatus, ou
|
||||
out.AccessModes = nil
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1143,7 +1143,7 @@ func deepCopy_api_PersistentVolumeSource(in PersistentVolumeSource, out *Persist
|
||||
|
||||
func deepCopy_api_PersistentVolumeSpec(in PersistentVolumeSpec, out *PersistentVolumeSpec, c *conversion.Cloner) error {
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1571,7 +1571,7 @@ func deepCopy_api_ResourceQuotaList(in ResourceQuotaList, out *ResourceQuotaList
|
||||
|
||||
func deepCopy_api_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec, c *conversion.Cloner) error {
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1587,7 +1587,7 @@ func deepCopy_api_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec
|
||||
|
||||
func deepCopy_api_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaStatus, c *conversion.Cloner) error {
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1599,7 +1599,7 @@ func deepCopy_api_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuota
|
||||
out.Hard = nil
|
||||
}
|
||||
if in.Used != nil {
|
||||
out.Used = make(ResourceList)
|
||||
out.Used = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Used {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1615,7 +1615,7 @@ func deepCopy_api_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuota
|
||||
|
||||
func deepCopy_api_ResourceRequirements(in ResourceRequirements, out *ResourceRequirements, c *conversion.Cloner) error {
|
||||
if in.Limits != nil {
|
||||
out.Limits = make(ResourceList)
|
||||
out.Limits = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Limits {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1627,7 +1627,7 @@ func deepCopy_api_ResourceRequirements(in ResourceRequirements, out *ResourceReq
|
||||
out.Limits = nil
|
||||
}
|
||||
if in.Requests != nil {
|
||||
out.Requests = make(ResourceList)
|
||||
out.Requests = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Requests {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
|
@@ -16,14 +16,15 @@ limitations under the License.
|
||||
|
||||
package v1
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE
|
||||
import (
|
||||
api "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
resource "github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
conversion "github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
reflect "reflect"
|
||||
"reflect"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
)
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE
|
||||
func convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(in *api.AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.AWSElasticBlockStoreVolumeSource))(in)
|
||||
@@ -691,7 +692,7 @@ func convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out
|
||||
}
|
||||
out.Type = LimitType(in.Type)
|
||||
if in.Max != nil {
|
||||
out.Max = make(ResourceList)
|
||||
out.Max = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Max {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -703,7 +704,7 @@ func convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out
|
||||
out.Max = nil
|
||||
}
|
||||
if in.Min != nil {
|
||||
out.Min = make(ResourceList)
|
||||
out.Min = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Min {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -715,7 +716,7 @@ func convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out
|
||||
out.Min = nil
|
||||
}
|
||||
if in.Default != nil {
|
||||
out.Default = make(ResourceList)
|
||||
out.Default = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Default {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1005,7 +1006,7 @@ func convert_api_NodeStatus_To_v1_NodeStatus(in *api.NodeStatus, out *NodeStatus
|
||||
defaulting.(func(*api.NodeStatus))(in)
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1215,7 +1216,7 @@ func convert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus(i
|
||||
out.AccessModes = nil
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1329,7 +1330,7 @@ func convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in *api.Persist
|
||||
defaulting.(func(*api.PersistentVolumeSpec))(in)
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1734,7 +1735,7 @@ func convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuota
|
||||
defaulting.(func(*api.ResourceQuotaSpec))(in)
|
||||
}
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1753,7 +1754,7 @@ func convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQ
|
||||
defaulting.(func(*api.ResourceQuotaStatus))(in)
|
||||
}
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1765,7 +1766,7 @@ func convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQ
|
||||
out.Hard = nil
|
||||
}
|
||||
if in.Used != nil {
|
||||
out.Used = make(ResourceList)
|
||||
out.Used = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Used {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1784,7 +1785,7 @@ func convert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.Resourc
|
||||
defaulting.(func(*api.ResourceRequirements))(in)
|
||||
}
|
||||
if in.Limits != nil {
|
||||
out.Limits = make(ResourceList)
|
||||
out.Limits = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Limits {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -1796,7 +1797,7 @@ func convert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.Resourc
|
||||
out.Limits = nil
|
||||
}
|
||||
if in.Requests != nil {
|
||||
out.Requests = make(ResourceList)
|
||||
out.Requests = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Requests {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -2941,7 +2942,7 @@ func convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *ap
|
||||
}
|
||||
out.Type = api.LimitType(in.Type)
|
||||
if in.Max != nil {
|
||||
out.Max = make(api.ResourceList)
|
||||
out.Max = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Max {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -2953,7 +2954,7 @@ func convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *ap
|
||||
out.Max = nil
|
||||
}
|
||||
if in.Min != nil {
|
||||
out.Min = make(api.ResourceList)
|
||||
out.Min = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Min {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -2965,7 +2966,7 @@ func convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *ap
|
||||
out.Min = nil
|
||||
}
|
||||
if in.Default != nil {
|
||||
out.Default = make(api.ResourceList)
|
||||
out.Default = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Default {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -3255,7 +3256,7 @@ func convert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus
|
||||
defaulting.(func(*NodeStatus))(in)
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(api.ResourceList)
|
||||
out.Capacity = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -3465,7 +3466,7 @@ func convert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(i
|
||||
out.AccessModes = nil
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(api.ResourceList)
|
||||
out.Capacity = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -3579,7 +3580,7 @@ func convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentV
|
||||
defaulting.(func(*PersistentVolumeSpec))(in)
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(api.ResourceList)
|
||||
out.Capacity = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -3984,7 +3985,7 @@ func convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec
|
||||
defaulting.(func(*ResourceQuotaSpec))(in)
|
||||
}
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(api.ResourceList)
|
||||
out.Hard = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -4003,7 +4004,7 @@ func convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuota
|
||||
defaulting.(func(*ResourceQuotaStatus))(in)
|
||||
}
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(api.ResourceList)
|
||||
out.Hard = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -4015,7 +4016,7 @@ func convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuota
|
||||
out.Hard = nil
|
||||
}
|
||||
if in.Used != nil {
|
||||
out.Used = make(api.ResourceList)
|
||||
out.Used = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Used {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -4034,7 +4035,7 @@ func convert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceReq
|
||||
defaulting.(func(*ResourceRequirements))(in)
|
||||
}
|
||||
if in.Limits != nil {
|
||||
out.Limits = make(api.ResourceList)
|
||||
out.Limits = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Limits {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
@@ -4046,7 +4047,7 @@ func convert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceReq
|
||||
out.Limits = nil
|
||||
}
|
||||
if in.Requests != nil {
|
||||
out.Requests = make(api.ResourceList)
|
||||
out.Requests = make(map[api.ResourceName]resource.Quantity)
|
||||
for key, val := range in.Requests {
|
||||
newVal := resource.Quantity{}
|
||||
if err := s.Convert(&val, &newVal, 0); err != nil {
|
||||
|
@@ -18,13 +18,13 @@ package v1
|
||||
|
||||
// AUTO-GENERATED FUNCTIONS START HERE
|
||||
import (
|
||||
api "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
resource "github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
conversion "github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
runtime "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
util "github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||
inf "speter.net/go/exp/math/dec/inf"
|
||||
time "time"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/conversion"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||
"speter.net/go/exp/math/dec/inf"
|
||||
"time"
|
||||
)
|
||||
|
||||
func deepCopy_resource_Quantity(in resource.Quantity, out *resource.Quantity, c *conversion.Cloner) error {
|
||||
@@ -600,7 +600,7 @@ func deepCopy_v1_LimitRange(in LimitRange, out *LimitRange, c *conversion.Cloner
|
||||
func deepCopy_v1_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conversion.Cloner) error {
|
||||
out.Type = in.Type
|
||||
if in.Max != nil {
|
||||
out.Max = make(ResourceList)
|
||||
out.Max = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Max {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -612,7 +612,7 @@ func deepCopy_v1_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conve
|
||||
out.Max = nil
|
||||
}
|
||||
if in.Min != nil {
|
||||
out.Min = make(ResourceList)
|
||||
out.Min = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Min {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -624,7 +624,7 @@ func deepCopy_v1_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conve
|
||||
out.Min = nil
|
||||
}
|
||||
if in.Default != nil {
|
||||
out.Default = make(ResourceList)
|
||||
out.Default = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Default {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -860,7 +860,7 @@ func deepCopy_v1_NodeSpec(in NodeSpec, out *NodeSpec, c *conversion.Cloner) erro
|
||||
|
||||
func deepCopy_v1_NodeStatus(in NodeStatus, out *NodeStatus, c *conversion.Cloner) error {
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1044,7 +1044,7 @@ func deepCopy_v1_PersistentVolumeClaimStatus(in PersistentVolumeClaimStatus, out
|
||||
out.AccessModes = nil
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1146,7 +1146,7 @@ func deepCopy_v1_PersistentVolumeSource(in PersistentVolumeSource, out *Persiste
|
||||
|
||||
func deepCopy_v1_PersistentVolumeSpec(in PersistentVolumeSpec, out *PersistentVolumeSpec, c *conversion.Cloner) error {
|
||||
if in.Capacity != nil {
|
||||
out.Capacity = make(ResourceList)
|
||||
out.Capacity = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Capacity {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1580,7 +1580,7 @@ func deepCopy_v1_ResourceQuotaList(in ResourceQuotaList, out *ResourceQuotaList,
|
||||
|
||||
func deepCopy_v1_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec, c *conversion.Cloner) error {
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1596,7 +1596,7 @@ func deepCopy_v1_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec,
|
||||
|
||||
func deepCopy_v1_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaStatus, c *conversion.Cloner) error {
|
||||
if in.Hard != nil {
|
||||
out.Hard = make(ResourceList)
|
||||
out.Hard = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Hard {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1608,7 +1608,7 @@ func deepCopy_v1_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaS
|
||||
out.Hard = nil
|
||||
}
|
||||
if in.Used != nil {
|
||||
out.Used = make(ResourceList)
|
||||
out.Used = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Used {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1624,7 +1624,7 @@ func deepCopy_v1_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaS
|
||||
|
||||
func deepCopy_v1_ResourceRequirements(in ResourceRequirements, out *ResourceRequirements, c *conversion.Cloner) error {
|
||||
if in.Limits != nil {
|
||||
out.Limits = make(ResourceList)
|
||||
out.Limits = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Limits {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
@@ -1636,7 +1636,7 @@ func deepCopy_v1_ResourceRequirements(in ResourceRequirements, out *ResourceRequ
|
||||
out.Limits = nil
|
||||
}
|
||||
if in.Requests != nil {
|
||||
out.Requests = make(ResourceList)
|
||||
out.Requests = make(map[ResourceName]resource.Quantity)
|
||||
for key, val := range in.Requests {
|
||||
newVal := new(resource.Quantity)
|
||||
if err := deepCopy_resource_Quantity(val, newVal, c); err != nil {
|
||||
|
Reference in New Issue
Block a user