Merge pull request #6062 from blackpiglet/5862_fix

Make Velero not exits when EnableCSI is on and CSI snapshot not installed
This commit is contained in:
Daniel Jiang
2023-04-04 15:52:48 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -588,6 +588,7 @@ func (s *server) getCSIVolumeSnapshotListers() (vsLister snapshotv1listers.Volum
case apierrors.IsNotFound(err):
// CSI is enabled, but the required CRDs aren't installed, so halt.
s.logger.Warnf("The '%s' feature flag was specified, but CSI API group [%s] was not found.", velerov1api.CSIFeatureFlag, snapshotv1api.SchemeGroupVersion.String())
err = nil
case err == nil:
wrapper := NewCSIInformerFactoryWrapper(s.csiSnapshotClient)