mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #106878 from humblec/rbd-1
rbd: initialize ceph monitors slice with an empty value.
This commit is contained in:
commit
8f91d09865
@ -219,7 +219,7 @@ func (p rbdCSITranslator) TranslateCSIPVToInTree(pv *v1.PersistentVolume) (*v1.P
|
||||
return nil, fmt.Errorf("pv is nil or CSI source not defined on pv")
|
||||
}
|
||||
var rbdImageName string
|
||||
var monSlice []string
|
||||
monSlice := []string{""}
|
||||
csiSource := pv.Spec.CSI
|
||||
|
||||
rbdImageName = csiSource.VolumeAttributes[imgNameKey]
|
||||
|
@ -415,7 +415,7 @@ func TestTranslateCSIPvToInTree(t *testing.T) {
|
||||
},
|
||||
PersistentVolumeSource: v1.PersistentVolumeSource{
|
||||
RBD: &v1.RBDPersistentVolumeSource{
|
||||
CephMonitors: nil,
|
||||
CephMonitors: []string{""},
|
||||
RBDPool: "replicapool",
|
||||
RBDImage: "kubernetes-dynamic-pvc-e4111eb6-4088-11ec-b823-0242ac110003",
|
||||
RadosUser: "admin",
|
||||
|
Loading…
Reference in New Issue
Block a user