From 110b38ecde18690a54241014b5f0d7b4fdf32bb6 Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Mon, 15 Jun 2026 11:32:36 -0700 Subject: [PATCH] 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 --- pkg/types/node_agent.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/types/node_agent.go b/pkg/types/node_agent.go index 42fe06f58..88e7fe336 100644 --- a/pkg/types/node_agent.go +++ b/pkg/types/node_agent.go @@ -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 {