mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Downward API implementation for resources limits and requests
This commit is contained in:
@@ -154,6 +154,7 @@ func init() {
|
||||
DeepCopy_api_ReplicationControllerList,
|
||||
DeepCopy_api_ReplicationControllerSpec,
|
||||
DeepCopy_api_ReplicationControllerStatus,
|
||||
DeepCopy_api_ResourceFieldSelector,
|
||||
DeepCopy_api_ResourceQuota,
|
||||
DeepCopy_api_ResourceQuotaList,
|
||||
DeepCopy_api_ResourceQuotaSpec,
|
||||
@@ -666,8 +667,23 @@ func DeepCopy_api_DeleteOptions(in DeleteOptions, out *DeleteOptions, c *convers
|
||||
|
||||
func DeepCopy_api_DownwardAPIVolumeFile(in DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, c *conversion.Cloner) error {
|
||||
out.Path = in.Path
|
||||
if err := DeepCopy_api_ObjectFieldSelector(in.FieldRef, &out.FieldRef, c); err != nil {
|
||||
return err
|
||||
if in.FieldRef != nil {
|
||||
in, out := in.FieldRef, &out.FieldRef
|
||||
*out = new(ObjectFieldSelector)
|
||||
if err := DeepCopy_api_ObjectFieldSelector(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.FieldRef = nil
|
||||
}
|
||||
if in.ResourceFieldRef != nil {
|
||||
in, out := in.ResourceFieldRef, &out.ResourceFieldRef
|
||||
*out = new(ResourceFieldSelector)
|
||||
if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.ResourceFieldRef = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -818,6 +834,15 @@ func DeepCopy_api_EnvVarSource(in EnvVarSource, out *EnvVarSource, c *conversion
|
||||
} else {
|
||||
out.FieldRef = nil
|
||||
}
|
||||
if in.ResourceFieldRef != nil {
|
||||
in, out := in.ResourceFieldRef, &out.ResourceFieldRef
|
||||
*out = new(ResourceFieldSelector)
|
||||
if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.ResourceFieldRef = nil
|
||||
}
|
||||
if in.ConfigMapKeyRef != nil {
|
||||
in, out := in.ConfigMapKeyRef, &out.ConfigMapKeyRef
|
||||
*out = new(ConfigMapKeySelector)
|
||||
@@ -2572,6 +2597,15 @@ func DeepCopy_api_ReplicationControllerStatus(in ReplicationControllerStatus, ou
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_ResourceFieldSelector(in ResourceFieldSelector, out *ResourceFieldSelector, c *conversion.Cloner) error {
|
||||
out.ContainerName = in.ContainerName
|
||||
out.Resource = in.Resource
|
||||
if err := resource.DeepCopy_resource_Quantity(in.Divisor, &out.Divisor, c); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_ResourceQuota(in ResourceQuota, out *ResourceQuota, c *conversion.Cloner) error {
|
||||
if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user