You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.Wrapf(errorToReturn, "action failed after %d attempts", attempts)
596
602
}
603
+
604
+
// checkTargetProviders checks that all the providers installed in the source cluster exists in the target cluster as well (with a version >= of the current version).
returnerrors.Wrapf(err, "unable to parse version %q for the %s provider in the source cluster", sourceProvider.Version, sourceProvider.InstanceName())
628
+
}
629
+
630
+
// Check corresponding providers in the target cluster and gets the latest version installed.
631
+
varmaxTargetVersion*version.Version
632
+
for_, targetProvider:=rangetoProviders.Items {
633
+
// Skips other providers.
634
+
ifsourceProvider.Name!=targetProvider.Name {
635
+
continue
636
+
}
637
+
638
+
// If we are moving objects in all the namespaces, skip all the providers with a different watching namespace.
639
+
// NB. This introduces a constraints for move all namespaces, that the configuration of source and target provider MUST match (except for the version);
640
+
// however this is acceptable because clusterctl supports only two models of multi-tenancy (n-Infra, n-Core).
errList=append(errList, errors.Errorf("provider %s watching namespace %s not found in the target cluster", sourceProvider.Name, watching))
665
+
continue
666
+
}
667
+
668
+
if!maxTargetVersion.AtLeast(sourceVersion) {
669
+
errList=append(errList, errors.Errorf("provider %s in the target cluster is older than in the source cluster (source: %s, target: %s)", sourceProvider.Name, sourceVersion.String(), maxTargetVersion.String()))
0 commit comments