Wait the namespace deletion completed before removing the CRDs (#4007)

Wait the namespace deletion completed before removing the CRDs when uninstalling the velero

Fixes #3974

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2021-08-17 23:55:22 +08:00
committed by GitHub
parent 8da679aa31
commit 31a8e5080c
3 changed files with 64 additions and 49 deletions

View File

@@ -408,7 +408,7 @@ func veleroInstall(ctx context.Context, veleroImage string, veleroNamespace stri
}
func veleroUninstall(ctx context.Context, client kbclient.Client, installVelero bool, veleroNamespace string) error {
return uninstall.Run(ctx, client, veleroNamespace, true)
return uninstall.Run(ctx, client, veleroNamespace)
}
func veleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string) error {