mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
support fibre channel volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
@@ -551,6 +551,26 @@ func deepCopy_api_ExecAction(in ExecAction, out *ExecAction, c *conversion.Clone
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_api_FCVolumeSource(in FCVolumeSource, out *FCVolumeSource, c *conversion.Cloner) error {
|
||||
if in.TargetWWNs != nil {
|
||||
out.TargetWWNs = make([]string, len(in.TargetWWNs))
|
||||
for i := range in.TargetWWNs {
|
||||
out.TargetWWNs[i] = in.TargetWWNs[i]
|
||||
}
|
||||
} else {
|
||||
out.TargetWWNs = nil
|
||||
}
|
||||
if in.Lun != nil {
|
||||
out.Lun = new(int)
|
||||
*out.Lun = *in.Lun
|
||||
} else {
|
||||
out.Lun = nil
|
||||
}
|
||||
out.FSType = in.FSType
|
||||
out.ReadOnly = in.ReadOnly
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_api_GCEPersistentDiskVolumeSource(in GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, c *conversion.Cloner) error {
|
||||
out.PDName = in.PDName
|
||||
out.FSType = in.FSType
|
||||
@@ -1267,6 +1287,14 @@ func deepCopy_api_PersistentVolumeSource(in PersistentVolumeSource, out *Persist
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
if in.FC != nil {
|
||||
out.FC = new(FCVolumeSource)
|
||||
if err := deepCopy_api_FCVolumeSource(*in.FC, out.FC, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.FC = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2155,6 +2183,14 @@ func deepCopy_api_VolumeSource(in VolumeSource, out *VolumeSource, c *conversion
|
||||
} else {
|
||||
out.DownwardAPI = nil
|
||||
}
|
||||
if in.FC != nil {
|
||||
out.FC = new(FCVolumeSource)
|
||||
if err := deepCopy_api_FCVolumeSource(*in.FC, out.FC, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.FC = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2235,6 +2271,7 @@ func init() {
|
||||
deepCopy_api_EventList,
|
||||
deepCopy_api_EventSource,
|
||||
deepCopy_api_ExecAction,
|
||||
deepCopy_api_FCVolumeSource,
|
||||
deepCopy_api_GCEPersistentDiskVolumeSource,
|
||||
deepCopy_api_GitRepoVolumeSource,
|
||||
deepCopy_api_GlusterfsVolumeSource,
|
||||
|
||||
Reference in New Issue
Block a user