Add a validator for validating components in the cluster infrastructure.

Closes #1295