Skip to content

Commit d901df7

Browse files
committed
remove loggedDeprecationWarnings from VolumePluginMgr
1 parent 5bf1e95 commit d901df7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pkg/volume/plugins.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"strings"
2323
"sync"
2424

25-
"k8s.io/apimachinery/pkg/util/sets"
2625
"k8s.io/klog/v2"
2726
"k8s.io/mount-utils"
2827
"k8s.io/utils/exec"
@@ -414,12 +413,11 @@ type VolumeHost interface {
414413

415414
// VolumePluginMgr tracks registered plugins.
416415
type VolumePluginMgr struct {
417-
mutex sync.RWMutex
418-
plugins map[string]VolumePlugin
419-
prober DynamicPluginProber
420-
probedPlugins map[string]VolumePlugin
421-
loggedDeprecationWarnings sets.Set[string]
422-
Host VolumeHost
416+
mutex sync.RWMutex
417+
plugins map[string]VolumePlugin
418+
prober DynamicPluginProber
419+
probedPlugins map[string]VolumePlugin
420+
Host VolumeHost
423421
}
424422

425423
// Spec is an internal representation of a volume. All API volume types translate to Spec.
@@ -560,7 +558,6 @@ func (pm *VolumePluginMgr) InitPlugins(plugins []VolumePlugin, prober DynamicPlu
560558
defer pm.mutex.Unlock()
561559

562560
pm.Host = host
563-
pm.loggedDeprecationWarnings = sets.New[string]()
564561

565562
if prober == nil {
566563
// Use a dummy prober to prevent nil deference.

0 commit comments

Comments
 (0)