mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-24 16:16:09 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user