Get user from kubeconfig.

def get_user(self, name):
        """Get user from kubeconfig."""
        users = self.data['users']
        for user in users:
            if user['name'] == name:
                return user
        raise KubeConfError("user name not found.")