Regen for ConfigMap volume
This commit is contained in:
@@ -146,6 +146,30 @@ func Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigM
|
||||
return autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.ConfigMapVolumeSource, out *v1.ConfigMapVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.ConfigMapVolumeSource))(in)
|
||||
}
|
||||
if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
|
||||
return err
|
||||
}
|
||||
if in.Items != nil {
|
||||
out.Items = make([]v1.KeyToPath, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := Convert_api_KeyToPath_To_v1_KeyToPath(&in.Items[i], &out.Items[i], s); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.ConfigMapVolumeSource, out *v1.ConfigMapVolumeSource, s conversion.Scope) error {
|
||||
return autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_Container_To_v1_Container(in *api.Container, out *v1.Container, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.Container))(in)
|
||||
@@ -613,6 +637,19 @@ func Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSo
|
||||
return autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *v1.KeyToPath, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.KeyToPath))(in)
|
||||
}
|
||||
out.Key = in.Key
|
||||
out.Path = in.Path
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *v1.KeyToPath, s conversion.Scope) error {
|
||||
return autoConvert_api_KeyToPath_To_v1_KeyToPath(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *v1.Lifecycle, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.Lifecycle))(in)
|
||||
@@ -1286,6 +1323,15 @@ func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for api.ConfigMapVolumeSource -> v1.ConfigMapVolumeSource
|
||||
if in.ConfigMap != nil {
|
||||
out.ConfigMap = new(v1.ConfigMapVolumeSource)
|
||||
if err := Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in.ConfigMap, out.ConfigMap, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.ConfigMap = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -1460,6 +1506,30 @@ func Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in *v1.ConfigMa
|
||||
return autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *v1.ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.ConfigMapVolumeSource))(in)
|
||||
}
|
||||
if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil {
|
||||
return err
|
||||
}
|
||||
if in.Items != nil {
|
||||
out.Items = make([]api.KeyToPath, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := Convert_v1_KeyToPath_To_api_KeyToPath(&in.Items[i], &out.Items[i], s); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *v1.ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error {
|
||||
return autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_Container_To_api_Container(in *v1.Container, out *api.Container, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.Container))(in)
|
||||
@@ -1927,6 +1997,19 @@ func Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in *v1.ISCSIVolumeSou
|
||||
return autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_KeyToPath_To_api_KeyToPath(in *v1.KeyToPath, out *api.KeyToPath, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.KeyToPath))(in)
|
||||
}
|
||||
out.Key = in.Key
|
||||
out.Path = in.Path
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_v1_KeyToPath_To_api_KeyToPath(in *v1.KeyToPath, out *api.KeyToPath, s conversion.Scope) error {
|
||||
return autoConvert_v1_KeyToPath_To_api_KeyToPath(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_Lifecycle_To_api_Lifecycle(in *v1.Lifecycle, out *api.Lifecycle, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.Lifecycle))(in)
|
||||
@@ -2576,6 +2659,15 @@ func autoConvert_v1_VolumeSource_To_api_VolumeSource(in *v1.VolumeSource, out *a
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for v1.ConfigMapVolumeSource -> api.ConfigMapVolumeSource
|
||||
if in.ConfigMap != nil {
|
||||
out.ConfigMap = new(api.ConfigMapVolumeSource)
|
||||
if err := Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in.ConfigMap, out.ConfigMap, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.ConfigMap = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -5220,6 +5312,7 @@ func init() {
|
||||
autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource,
|
||||
autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource,
|
||||
autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector,
|
||||
autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource,
|
||||
autoConvert_api_ContainerPort_To_v1_ContainerPort,
|
||||
autoConvert_api_Container_To_v1_Container,
|
||||
autoConvert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile,
|
||||
@@ -5239,6 +5332,7 @@ func init() {
|
||||
autoConvert_api_Handler_To_v1_Handler,
|
||||
autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource,
|
||||
autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource,
|
||||
autoConvert_api_KeyToPath_To_v1_KeyToPath,
|
||||
autoConvert_api_Lifecycle_To_v1_Lifecycle,
|
||||
autoConvert_api_ListOptions_To_v1beta1_ListOptions,
|
||||
autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress,
|
||||
@@ -5326,6 +5420,7 @@ func init() {
|
||||
autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource,
|
||||
autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource,
|
||||
autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector,
|
||||
autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource,
|
||||
autoConvert_v1_ContainerPort_To_api_ContainerPort,
|
||||
autoConvert_v1_Container_To_api_Container,
|
||||
autoConvert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile,
|
||||
@@ -5345,6 +5440,7 @@ func init() {
|
||||
autoConvert_v1_Handler_To_api_Handler,
|
||||
autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource,
|
||||
autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource,
|
||||
autoConvert_v1_KeyToPath_To_api_KeyToPath,
|
||||
autoConvert_v1_Lifecycle_To_api_Lifecycle,
|
||||
autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress,
|
||||
autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus,
|
||||
|
Reference in New Issue
Block a user