Skip to content

Commit cb9d62f

Browse files
author
Gabriele Santomaggio
committed
fix storage class
1 parent cd2123e commit cb9d62f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/rabbitmq_pod_create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func configureVolumesMap(cr *opv1alpha.RabbitMQ) []v1.VolumeMount {
7272
}
7373
if cr.Spec.PersistentVolume.StorageClass != "" {
7474
volumeMounts = append(volumeMounts, v1.VolumeMount{
75-
Name: cr.Spec.PersistentVolume.StorageClass,
75+
Name: cr.Spec.PersistentVolume.Name,
7676
MountPath: "/var/lib/rabbitmq/",
7777
})
7878
}

controllers/rabbitmq_pod_create_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ var _ = Describe("RabbitMQ Pod Create ", func() {
218218
SubPathExpr: "",
219219
},
220220
v1.VolumeMount{
221-
Name: storageClass,
221+
Name: "pvname",
222222
ReadOnly: false,
223223
MountPath: "/var/lib/rabbitmq/",
224224
SubPath: "",

0 commit comments

Comments
 (0)