Files
velero/internal
Shubham Pampattiwar 56b6ba6b10 Add image volume type support to volume policies
The Kubernetes image volume type (GA in k8s 1.31) was not recognized by
Velero's volume type detection logic, causing volume policies with
volumeTypes condition set to "image" to be silently ignored. This led
to failed fs-backups when defaultVolumesToFsBackup was enabled, since
image volumes have no host path for the node agent to back up.

Add the "image" SupportedVolume constant and detection in
getVolumeTypeFromVolume() so that volume policies can properly match
and skip image volumes.

Fixes velero-io/velero#9977

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2026-07-08 11:36:17 -07:00
..