Document PVLabeler as deprecated

This has no callers outside of the deprecated PersistentVolumeLabel
admission controller, and it does not appear to be intended for
implementation by external cloud provider implementations. The CSI
topology feature, while not an exact equivalent, fulfils a very similar
role. Indicate this.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-07-06 11:34:50 +01:00
parent 8f79a3d91e
commit f2fa6d5f6b

View File

@ -285,6 +285,7 @@ type Zones interface {
}
// PVLabeler is an abstract, pluggable interface for fetching labels for volumes
// DEPRECATED: PVLabeler is deprecated in favor of CSI topology feature.
type PVLabeler interface {
GetLabelsForVolume(ctx context.Context, pv *v1.PersistentVolume) (map[string]string, error)
}