Check for clusterdomains status only if sync-dr is configured
@@ -216,13 +216,14 @@ func (m *MigrationController) handle(ctx context.Context, migration *stork_api.M
err.Error())
return nil
}
-
var terminationChannels []chan bool
var err error
var clusterDomains *stork_api.ClusterDomains
+ if !*migration.Spec.IncludeVolumes {
for i := 0; i < domainsMaxRetries; i++ {
clusterDomains, err = m.volDriver.GetClusterDomains()
if err == nil {
+
break
}
time.Sleep(domainsRetryInterval)
@@ -246,6 +247,7 @@ func (m *MigrationController) handle(ctx context.Context, migration *stork_api.M
}
}
}
+ }
switch migration.Status.Stage {
case stork_api.MigrationStageInitial:
