'Retrieves the system admin'

def get_system_admin(self, kubeconfig):

    with open(kubeconfig, 'r') as kubeconfig_file:
        config = yaml.load(kubeconfig_file)
        for user in config['users']:
            if user['name'].startswith('system:admin'):
                return user['name']
    raise Exception(('Unable    to    find    system:admin    in:    ' + kubeconfig))
