From 715f04b2ed78e6bbac140166ed946742433b7212 Mon Sep 17 00:00:00 2001 From: yue9944882 <291271447@qq.com> Date: Thu, 16 Aug 2018 11:15:08 +0800 Subject: [PATCH] should cast va instead of pv --- plugin/pkg/auth/authorizer/node/graph_populator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/auth/authorizer/node/graph_populator.go b/plugin/pkg/auth/authorizer/node/graph_populator.go index bd33f18a574..dcb7b732cfb 100644 --- a/plugin/pkg/auth/authorizer/node/graph_populator.go +++ b/plugin/pkg/auth/authorizer/node/graph_populator.go @@ -212,7 +212,7 @@ func (g *graphPopulator) deleteVolumeAttachment(obj interface{}) { if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok { obj = tombstone.Obj } - attachment, ok := obj.(*api.PersistentVolume) + attachment, ok := obj.(*storagev1beta1.VolumeAttachment) if !ok { glog.Infof("unexpected type %T", obj) return