mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
should cast va instead of pv
This commit is contained in:
parent
76e9fdaa72
commit
715f04b2ed
@ -212,7 +212,7 @@ func (g *graphPopulator) deleteVolumeAttachment(obj interface{}) {
|
|||||||
if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok {
|
if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok {
|
||||||
obj = tombstone.Obj
|
obj = tombstone.Obj
|
||||||
}
|
}
|
||||||
attachment, ok := obj.(*api.PersistentVolume)
|
attachment, ok := obj.(*storagev1beta1.VolumeAttachment)
|
||||||
if !ok {
|
if !ok {
|
||||||
glog.Infof("unexpected type %T", obj)
|
glog.Infof("unexpected type %T", obj)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user