From 04b167e77eb692f549f579786adadc13eb14e716 Mon Sep 17 00:00:00 2001 From: zachmandeville Date: Tue, 3 Oct 2023 15:46:34 +1300 Subject: [PATCH] use new token location in snooputils Signed-off-by: zachmandeville --- apps/snoopdb/postgres/snoopUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/snoopdb/postgres/snoopUtils.py b/apps/snoopdb/postgres/snoopUtils.py index 886e83da..ae222250 100644 --- a/apps/snoopdb/postgres/snoopUtils.py +++ b/apps/snoopdb/postgres/snoopUtils.py @@ -109,7 +109,7 @@ def download_url_to_path(url, local_path, dl_dict): def cluster_swagger(): """Gets the swagger generated by a k8s api server, checking if incluster token is available""" url = "https://kubernetes/openapi/v2" - in_cluster_tokenfile = "/run/secrets/kubernetes.io/serviceaccount/token" + in_cluster_tokenfile = "/opt/token.txt" tokenfile = "/token.txt" if os.path.isfile(in_cluster_tokenfile) and os.access(in_cluster_tokenfile, os.R_OK): token = Path(in_cluster_tokenfile).read_text()