in standalone/aws_eks_k8s_client.py [0:0]
def apply_aws_auth_config_map(session,region,account_id, cluster_name,cfg_map_user_name, cfg_map_role_name, cluster_role_name):
api_client = get_k8s_api_client(session,region,account_id, cluster_name)
v1 = client.CoreV1Api(api_client)
print("accessing k8s api through client: " )
# Get all the pods
#res = v1.list_namespaced_pod("default")
#print("pods ="+str(res))
#list existing config maps in kube-system namespace
#config_map_read = v1.list_namespaced_config_map(namespace="kube-system")
#print("\n\nget config map:" + str(config_map_read))
configmapObj = construct_configmap_object(account_id,cfg_map_user_name, cfg_map_role_name, cluster_role_name)
#print("\n***************")
print("\n aws auth configMap:" + str(configmapObj))
apply_configmap(v1, configmapObj)
print("\nConfig map created...")