package common
import "k8s.io/kubernetes/pkg/controller/volume/common"
Index ¶
- Constants
- func AddIndexerIfNotPresent(indexer cache.Indexer, indexName string, indexFunc cache.IndexFunc) error
- func AddPodPVCIndexerIfNotPresent(indexer cache.Indexer) error
- func PodPVCIndexFunc() func(obj interface{}) ([]string, error)
Constants ¶
const ( // PodPVCIndex is the lookup name for the index function, which is to index by pod pvcs. PodPVCIndex = "pod-pvc-index" )
Functions ¶
func AddIndexerIfNotPresent ¶
func AddIndexerIfNotPresent(indexer cache.Indexer, indexName string, indexFunc cache.IndexFunc) error
AddIndexerIfNotPresent adds the index function with the name into the cache indexer if not present
func AddPodPVCIndexerIfNotPresent ¶
AddPodPVCIndexerIfNotPresent adds the PodPVCIndexFunc.
func PodPVCIndexFunc ¶
PodPVCIndexFunc creates an index function that returns PVC keys (= namespace/name) for given pod. This includes the PVCs that might be created for generic ephemeral volumes.
Source Files ¶
common.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 hours ago –
Tools for package owners.