Add Velero-installed namespace to exlucde list for scale test.

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
pull/8968/head
Xun Jiang 2025-05-22 14:31:39 +08:00 committed by Xun Jiang/Bruce Jiang
parent 7db3eeac58
commit e736376d69
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ func (m *MultiNSBackup) Init() error {
for _, excludeNamespace := range namespaces.Items {
*m.NSExcluded = append(*m.NSExcluded, excludeNamespace.Name)
}
// Add Velero installed namespace into the exclude list.
*m.NSExcluded = append(*m.NSExcluded, m.VeleroCfg.VeleroNamespace)
m.BackupArgs = []string{
"create", "--namespace", m.VeleroCfg.VeleroNamespace, "backup", m.BackupName,