mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-19 04:26:45 +00:00
fix: incorrect capsule label comparison in PVC webhook
This commit is contained in:
committed by
Dario Tranchitella
parent
45ad56c586
commit
51b23d16dc
@@ -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()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user