mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Add comment how GetPodsForCSIDriver is useful
This commit is contained in:
parent
6eab8a8691
commit
3ff3ed4b6d
@ -38,6 +38,10 @@ type VolumeCache interface {
|
|||||||
DeletePod(logger klog.Logger, podKey cache.ObjectName)
|
DeletePod(logger klog.Logger, podKey cache.ObjectName)
|
||||||
|
|
||||||
// GetPodsForCSIDriver returns all pods that use volumes with the given CSI driver.
|
// GetPodsForCSIDriver returns all pods that use volumes with the given CSI driver.
|
||||||
|
// This is useful when a CSIDrive changes its spec.seLinuxMount and the controller
|
||||||
|
// needs to reevaluate all pods that use volumes with this driver.
|
||||||
|
// The controller doesn't need to track in-tree volume plugins, because they don't
|
||||||
|
// change their SELinux support dynamically.
|
||||||
GetPodsForCSIDriver(driverName string) []cache.ObjectName
|
GetPodsForCSIDriver(driverName string) []cache.ObjectName
|
||||||
|
|
||||||
// SendConflicts sends all current conflicts to the given channel.
|
// SendConflicts sends all current conflicts to the given channel.
|
||||||
|
Loading…
Reference in New Issue
Block a user