mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #67471 from yue9944882/bugfix/fix-pv-type-assertion
Automatic merge from submit-queue (batch tested with PRs 67399, 67471, 66815, 67301, 55840). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Bugfix pv util type assertion mismatch **Release note**: ```release-note NONE ``` /kind bug /sig api-machinery /priority important-soon /assign liggitt fundamental fixer blocker of #67194
This commit is contained in:
commit
a4a9415374
@ -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