mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fix deleteVolume
`ok` is not in same variable socpe
This commit is contained in:
parent
bdeeb9db90
commit
524f0da769
@ -303,7 +303,7 @@ func (ctrl *PersistentVolumeController) deleteVolume(obj interface{}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ok || volume == nil || volume.Spec.ClaimRef == nil {
|
if volume == nil || volume.Spec.ClaimRef == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user