mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
implement Ceph FS volume plugin and add to e2e volume test
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
@@ -86,6 +86,29 @@ func deepCopy_v1_Capabilities(in Capabilities, out *Capabilities, c *conversion.
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_CephFSVolumeSource(in CephFSVolumeSource, out *CephFSVolumeSource, c *conversion.Cloner) error {
|
||||
if in.Monitors != nil {
|
||||
out.Monitors = make([]string, len(in.Monitors))
|
||||
for i := range in.Monitors {
|
||||
out.Monitors[i] = in.Monitors[i]
|
||||
}
|
||||
} else {
|
||||
out.Monitors = nil
|
||||
}
|
||||
out.User = in.User
|
||||
out.SecretFile = in.SecretFile
|
||||
if in.SecretRef != nil {
|
||||
out.SecretRef = new(LocalObjectReference)
|
||||
if err := deepCopy_v1_LocalObjectReference(*in.SecretRef, out.SecretRef, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.SecretRef = nil
|
||||
}
|
||||
out.ReadOnly = in.ReadOnly
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_CinderVolumeSource(in CinderVolumeSource, out *CinderVolumeSource, c *conversion.Cloner) error {
|
||||
out.VolumeID = in.VolumeID
|
||||
out.FSType = in.FSType
|
||||
@@ -1192,6 +1215,14 @@ func deepCopy_v1_PersistentVolumeSource(in PersistentVolumeSource, out *Persiste
|
||||
} else {
|
||||
out.Cinder = nil
|
||||
}
|
||||
if in.CephFS != nil {
|
||||
out.CephFS = new(CephFSVolumeSource)
|
||||
if err := deepCopy_v1_CephFSVolumeSource(*in.CephFS, out.CephFS, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2138,6 +2169,14 @@ func deepCopy_v1_VolumeSource(in VolumeSource, out *VolumeSource, c *conversion.
|
||||
} else {
|
||||
out.Cinder = nil
|
||||
}
|
||||
if in.CephFS != nil {
|
||||
out.CephFS = new(CephFSVolumeSource)
|
||||
if err := deepCopy_v1_CephFSVolumeSource(*in.CephFS, out.CephFS, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2175,6 +2214,7 @@ func init() {
|
||||
deepCopy_v1_AWSElasticBlockStoreVolumeSource,
|
||||
deepCopy_v1_Binding,
|
||||
deepCopy_v1_Capabilities,
|
||||
deepCopy_v1_CephFSVolumeSource,
|
||||
deepCopy_v1_CinderVolumeSource,
|
||||
deepCopy_v1_ComponentCondition,
|
||||
deepCopy_v1_ComponentStatus,
|
||||
|
||||
Reference in New Issue
Block a user