mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 19:58:17 +00:00
Add a comment why PVC indexer is used
This commit is contained in:
@@ -128,6 +128,8 @@ func NewController(
|
|||||||
c.csiTranslator = csiTranslator
|
c.csiTranslator = csiTranslator
|
||||||
c.cmpm = csimigration.NewPluginManager(csiTranslator, utilfeature.DefaultFeatureGate)
|
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)
|
err = common.AddPodPVCIndexerIfNotPresent(c.podIndexer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not initialize SELinux warning controller: %w", err)
|
return nil, fmt.Errorf("could not initialize SELinux warning controller: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user