AuAssert.check(!group.getRoleNameList().isEmpty(), "roles should not be empty");
SoftwareManager softMgr =
softwareManagerCollector
.getSoftwareManager(cluster.getAppManager());
List<String> unsupportedRoles =
softMgr.validateScaling(clusterEntityMgr
.toNodeGroupInfo(clusterName, nodeGroupName));
if (!unsupportedRoles.isEmpty()) {
logger.info("can not resize node group with role: " + unsupportedRoles);
throw ClusterManagerException.ROLES_NOT_SUPPORTED(unsupportedRoles);
}