private static Predicate<Node> makePredicate(Version version) {
        Objects.requireNonNull(version, "version cannot be null");
        if (version.isEmpty()) return node -> true;
        return node -> node.status().osVersion().matches(version);
    }
Filter nodes by their OS version.

@author mpolden
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/filter/NodeOsVersionFilter.java