Skip to content

Commit

Permalink
Merge pull request #811 from cncf/token-update
Browse files Browse the repository at this point in the history
use new token location in snooputils
  • Loading branch information
zachmandeville authored Oct 3, 2023
2 parents 46e1d90 + 04b167e commit 9cb1176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/snoopdb/postgres/snoopUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9cb1176

Please sign in to comment.