private Set<ClusterSpec.Id> adminClusterIds(VespaModel model) {
        return model.allocatedHosts().getHosts().stream()
                .map(hostSpec -> hostSpec.membership().orElseThrow().cluster())
                .filter(cluster -> cluster.type() == ClusterSpec.Type.admin)
                .map(ClusterSpec::id)
                .collect(Collectors.toCollection(() -> new LinkedHashSet<>()));
    }
Checks that the generated model does not have resources that exceeds the given quota.

@author ogronnesby
config-model/src/main/java/com/yahoo/vespa/model/application/validation/QuotaValidator.java