ceph: base monitor storage of pvc
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
1 parent
57c663c0c1
commit
4173c5544e
12 files changed
+341
-31
No files matched your search
@@ -82,8 +82,13 @@ func (ps *PodSpecTester) AssertVolumesMeetCephRequirements(
|
||||
switch v.Name {
|
||||
case "ceph-daemon-data":
|
||||
switch daemonType {
|
||||
case config.MonType, config.OsdType:
|
||||
// mons and osds MUST be host path
|
||||
case config.MonType:
|
||||
// mons may be host path or pvc
|
||||
assert.True(ps.t,
|
||||
v.VolumeSource.HostPath != nil || v.VolumeSource.PersistentVolumeClaim != nil,
|
||||
string(daemonType)+" daemon should be host path or pvc:", v)
|
||||
case config.OsdType:
|
||||
// osds MUST be host path
|
||||
assert.NotNil(ps.t, v.VolumeSource.HostPath,
|
||||
string(daemonType)+" daemon should be host path:", v)
|
||||
case config.MgrType, config.MdsType, config.RgwType:
|
||||
|
||||
Reference in new issue
Block a user