Skip to content

Commit c93ba4e

Browse files
authored
Merge pull request kubernetes#124817 from carlory/cleanup-VolumePluginMgr
remove loggedDeprecationWarnings from VolumePluginMgr
2 parents 33c64b3 + d901df7 commit c93ba4e

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
@@ -23,7 +23,6 @@ import (
2323
"strings"
2424
"sync"
2525

26-
"k8s.io/apimachinery/pkg/util/sets"
2726
"k8s.io/klog/v2"
2827
"k8s.io/mount-utils"
2928
"k8s.io/utils/exec"
@@ -420,12 +419,11 @@ type VolumeHost interface {
420419

421420
// VolumePluginMgr tracks registered plugins.
422421
type VolumePluginMgr struct {
423-
mutex sync.RWMutex
424-
plugins map[string]VolumePlugin
425-
prober DynamicPluginProber
426-
probedPlugins map[string]VolumePlugin
427-
loggedDeprecationWarnings sets.Set[string]
428-
Host VolumeHost
422+
mutex sync.RWMutex
423+
plugins map[string]VolumePlugin
424+
prober DynamicPluginProber
425+
probedPlugins map[string]VolumePlugin
426+
Host VolumeHost
429427
}
430428

431429
// 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
566564
defer pm.mutex.Unlock()
567565

568566
pm.Host = host
569-
pm.loggedDeprecationWarnings = sets.New[string]()
570567

571568
if prober == nil {
572569
// Use a dummy prober to prevent nil deference.

0 commit comments

Comments
 (0)