Revert "Revert "Add optional validation to kubecfg/kubectl.""

This reverts commit 6590c66dd47f6aee671687493700bcf038d89725.
Make validation optional, handle YAML
Merge pull request #2621 from brendandburns/kubecfg

Add validation back in