Skip to content

Commit 9cb1176

Browse files
Merge pull request #811 from cncf/token-update
use new token location in snooputils
2 parents 46e1d90 + 04b167e commit 9cb1176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/snoopdb/postgres/snoopUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def download_url_to_path(url, local_path, dl_dict):
109109
def cluster_swagger():
110110
"""Gets the swagger generated by a k8s api server, checking if incluster token is available"""
111111
url = "https://kubernetes/openapi/v2"
112-
in_cluster_tokenfile = "/run/secrets/kubernetes.io/serviceaccount/token"
112+
in_cluster_tokenfile = "/opt/token.txt"
113113
tokenfile = "/token.txt"
114114
if os.path.isfile(in_cluster_tokenfile) and os.access(in_cluster_tokenfile, os.R_OK):
115115
token = Path(in_cluster_tokenfile).read_text()

0 commit comments

Comments
 (0)