fix: incorrect capsule label comparison in PVC webhook

This commit is contained in:
Max Fedotov
2023-06-27 19:10:03 +02:00
committed by Dario Tranchitella
parent 45ad56c586
commit 51b23d16dc
+1 -1
View File
@@ -77,7 +77,7 @@ func (p PV) OnCreate(client client.Client, decoder *admission.Decoder, recorder
return utils.ErroredResponse(NewMissingTenantPVLabelsError(pv.GetName()))
}
if value != p.capsuleLabel {
if value != tnt.Name {
return utils.ErroredResponse(NewCrossTenantPVMountError(pv.GetName()))
}