test/e2e/credentials/test_set_creds.py
def check_sa_exists(service_account):
    '''Check if the specified service account existing.'''
    sa_list = client.CoreV1Api().list_namespaced_service_account(namespace=KSERVE_TEST_NAMESPACE)
    sa_name_list = []
    for item in range(0, len(sa_list.items) - 1):
        sa_name_list.append(sa_list.items[item].metadata.name)
    if service_account in sa_name_list:
        return True
    return False
Check if the specified service account existing.
Check if the specified service account existing.
Check if the specified service account existing .
def check_sa_exists(service_account):
    sa_list = client.CoreV1Api().list_namespaced_service_account(namespace=KSERVE_TEST_NAMESPACE)
    sa_name_list = []
    for item in range(0, len(sa_list.items) - 1):
        sa_name_list.append(sa_list.items[item].metadata.name)
    if service_account in sa_name_list:
        return True
    return False
def check_sa_exists ( service_account ) : sa_list = client . CoreV1Api ( ) . list_namespaced_service_account ( namespace = KSERVE_TEST_NAMESPACE ) sa_name_list = [ ] for item in range ( 0 , len ( sa_list . items ) - 1 ) : sa_name_list . append ( sa_list . items [ item ] . metadata . name ) if service_account in sa_name_list : return True return False
Check if the specified service account existing.
Check if the specified service account existing .
'''Check if the specified service account existing.'''
service_account