mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
support Azure File Service volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
@@ -33,6 +33,7 @@ func init() {
|
||||
if err := Scheme.AddGeneratedDeepCopyFuncs(
|
||||
DeepCopy_api_AWSElasticBlockStoreVolumeSource,
|
||||
DeepCopy_api_Affinity,
|
||||
DeepCopy_api_AzureFileVolumeSource,
|
||||
DeepCopy_api_Binding,
|
||||
DeepCopy_api_Capabilities,
|
||||
DeepCopy_api_CephFSVolumeSource,
|
||||
@@ -203,6 +204,13 @@ func DeepCopy_api_Affinity(in Affinity, out *Affinity, c *conversion.Cloner) err
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_AzureFileVolumeSource(in AzureFileVolumeSource, out *AzureFileVolumeSource, c *conversion.Cloner) error {
|
||||
out.SecretName = in.SecretName
|
||||
out.ShareName = in.ShareName
|
||||
out.ReadOnly = in.ReadOnly
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_Binding(in Binding, out *Binding, c *conversion.Cloner) error {
|
||||
if err := DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
|
||||
return err
|
||||
@@ -1828,6 +1836,15 @@ func DeepCopy_api_PersistentVolumeSource(in PersistentVolumeSource, out *Persist
|
||||
} else {
|
||||
out.Flocker = nil
|
||||
}
|
||||
if in.AzureFile != nil {
|
||||
in, out := in.AzureFile, &out.AzureFile
|
||||
*out = new(AzureFileVolumeSource)
|
||||
if err := DeepCopy_api_AzureFileVolumeSource(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2912,6 +2929,15 @@ func DeepCopy_api_VolumeSource(in VolumeSource, out *VolumeSource, c *conversion
|
||||
} else {
|
||||
out.FC = nil
|
||||
}
|
||||
if in.AzureFile != nil {
|
||||
in, out := in.AzureFile, &out.AzureFile
|
||||
*out = new(AzureFileVolumeSource)
|
||||
if err := DeepCopy_api_AzureFileVolumeSource(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.AzureFile = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user