apiextensions: factor out predicate iterator in validation
apiextensions: factor out predicate iterator in validation

Kubernetes-commit: 9be78b2b069c889650d61a1b58bd1daa5d680349

kubernetes/apiextensions-apiserver,kubernetes/apiextensions-apiserver