mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Add a comment why PVC indexer is used
This commit is contained in:
parent
3ff3ed4b6d
commit
cf7a2c7d35
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,8 @@ func NewController(
|
|||
c.csiTranslator = csiTranslator
|
||||
c.cmpm = csimigration.NewPluginManager(csiTranslator, utilfeature.DefaultFeatureGate)
|
||||
|
||||
// Index pods by its PVC keys. Then we don't need to iterate all pods every time to find
|
||||
// pods which reference given PVC.
|
||||
err = common.AddPodPVCIndexerIfNotPresent(c.podIndexer)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not initialize SELinux warning controller: %w", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue