Add SecretNames field to BackupPVC config

Add a SecretNames field to the BackupPVC type to allow users to specify
secrets that need to be copied from the source PVC namespace to the
Velero namespace before creating the backup PVC. This is needed for CSI
drivers that require namespace-scoped secrets for volume provisioning,
such as encrypted volumes with KMS.

Fixes #9879

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
Shubham Pampattiwar
2026-08-18 10:28:27 -07:00
parent 763f3a1db4
commit 110b38ecde
+6
View File
@@ -59,6 +59,12 @@ type BackupPVC struct {
// Annotations permits setting annotations for the backupPVC
Annotations map[string]string `json:"annotations,omitempty"`
// SecretNames is a list of secret names to copy from the source PVC namespace
// to the Velero namespace before creating the backupPVC. The secrets are deleted
// after the DataUpload completes. This is needed for CSI drivers that require
// namespace-scoped secrets for volume provisioning (e.g., encrypted volumes).
SecretNames []string `json:"secretNames,omitempty"`
}
type RestorePVC struct {