Temporaily run DedicatedClusterControllerClusterMigrator in dev in cd
@@ -20,6 +20,7 @@ import com.yahoo.vespa.service.monitor.ServiceMonitor;
import java.time.Duration;
import java.util.List;
+import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;
/**
@@ -64,7 +65,8 @@ public class NodeRepositoryMaintenance extends AbstractComponent {
maintainers.add(new AutoscalingMaintainer(nodeRepository, metricsDb, deployer, metric, defaults.autoscalingInterval));
maintainers.add(new ScalingSuggestionsMaintainer(nodeRepository, metricsDb, defaults.scalingSuggestionsInterval, metric));
maintainers.add(new SwitchRebalancer(nodeRepository, defaults.switchRebalancerInterval, metric, deployer));
- if (zone.environment() == Environment.staging || zone.environment() == Environment.perf || zone.environment() == Environment.prod)
+ if (Set.of(Environment.staging, Environment.perf, Environment.prod).contains(zone.environment())
+ || (zone.system().isCd() && zone.environment() == Environment.dev)) // TODO: Temporarily when testing the feature
maintainers.add(new DedicatedClusterControllerClusterMigrator(deployer, metric, nodeRepository, defaults.dedicatedClusterControllerMigratorInterval, flagSource, orchestrator));
provisionServiceProvider.getLoadBalancerService(nodeRepository)
