mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
support Azure File Service volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
@@ -43,6 +43,20 @@ func Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolu
|
||||
return autoConvert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.AzureFileVolumeSource))(in)
|
||||
}
|
||||
out.SecretName = in.SecretName
|
||||
out.ShareName = in.ShareName
|
||||
out.ReadOnly = in.ReadOnly
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error {
|
||||
return autoConvert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.Binding))(in)
|
||||
@@ -1970,6 +1984,15 @@ func autoConvert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api
|
||||
} else {
|
||||
out.Flocker = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for api.AzureFileVolumeSource -> v1.AzureFileVolumeSource
|
||||
if in.AzureFile != nil {
|
||||
out.AzureFile = new(AzureFileVolumeSource)
|
||||
if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -3196,6 +3219,15 @@ func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *
|
||||
} else {
|
||||
out.FC = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for api.AzureFileVolumeSource -> v1.AzureFileVolumeSource
|
||||
if in.AzureFile != nil {
|
||||
out.AzureFile = new(AzureFileVolumeSource)
|
||||
if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -3231,6 +3263,20 @@ func Convert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolu
|
||||
return autoConvert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*AzureFileVolumeSource))(in)
|
||||
}
|
||||
out.SecretName = in.SecretName
|
||||
out.ShareName = in.ShareName
|
||||
out.ReadOnly = in.ReadOnly
|
||||
return nil
|
||||
}
|
||||
|
||||
func Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error {
|
||||
return autoConvert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*Binding))(in)
|
||||
@@ -5099,6 +5145,15 @@ func autoConvert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *Per
|
||||
} else {
|
||||
out.FlexVolume = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for v1.AzureFileVolumeSource -> api.AzureFileVolumeSource
|
||||
if in.AzureFile != nil {
|
||||
out.AzureFile = new(api.AzureFileVolumeSource)
|
||||
if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6274,6 +6329,15 @@ func autoConvert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.
|
||||
} else {
|
||||
out.FC = nil
|
||||
}
|
||||
// unable to generate simple pointer conversion for v1.AzureFileVolumeSource -> api.AzureFileVolumeSource
|
||||
if in.AzureFile != nil {
|
||||
out.AzureFile = new(api.AzureFileVolumeSource)
|
||||
if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in.AzureFile, out.AzureFile, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6284,6 +6348,7 @@ func Convert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.Volu
|
||||
func init() {
|
||||
err := api.Scheme.AddGeneratedConversionFuncs(
|
||||
autoConvert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource,
|
||||
autoConvert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource,
|
||||
autoConvert_api_Binding_To_v1_Binding,
|
||||
autoConvert_api_Capabilities_To_v1_Capabilities,
|
||||
autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource,
|
||||
@@ -6410,6 +6475,7 @@ func init() {
|
||||
autoConvert_api_Volume_To_v1_Volume,
|
||||
autoConvert_unversioned_ExportOptions_To_v1_ExportOptions,
|
||||
autoConvert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource,
|
||||
autoConvert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource,
|
||||
autoConvert_v1_Binding_To_api_Binding,
|
||||
autoConvert_v1_Capabilities_To_api_Capabilities,
|
||||
autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource,
|
||||
|
||||
Reference in New Issue
Block a user