diff --git a/pkg/volume/plugins.go b/pkg/volume/plugins.go index 20d35dad89c..8eea6f6ac26 100644 --- a/pkg/volume/plugins.go +++ b/pkg/volume/plugins.go @@ -23,7 +23,6 @@ import ( "strings" "sync" - "k8s.io/apimachinery/pkg/util/sets" "k8s.io/klog/v2" "k8s.io/mount-utils" "k8s.io/utils/exec" @@ -420,12 +419,11 @@ type VolumeHost interface { // VolumePluginMgr tracks registered plugins. type VolumePluginMgr struct { - mutex sync.RWMutex - plugins map[string]VolumePlugin - prober DynamicPluginProber - probedPlugins map[string]VolumePlugin - loggedDeprecationWarnings sets.Set[string] - Host VolumeHost + mutex sync.RWMutex + plugins map[string]VolumePlugin + prober DynamicPluginProber + probedPlugins map[string]VolumePlugin + Host VolumeHost } // Spec is an internal representation of a volume. All API volume types translate to Spec. @@ -566,7 +564,6 @@ func (pm *VolumePluginMgr) InitPlugins(plugins []VolumePlugin, prober DynamicPlu defer pm.mutex.Unlock() pm.Host = host - pm.loggedDeprecationWarnings = sets.New[string]() if prober == nil { // Use a dummy prober to prevent nil deference.