Skip to content

Commit e299e5f

Browse files
committed
chore: use Kubernetes incluster fqdn for endpoint
access swagger regardless of namespace where snoopdb is installed
1 parent dd103ce commit e299e5f

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
@@ -108,7 +108,7 @@ def download_url_to_path(url, local_path, dl_dict):
108108

109109
def cluster_swagger():
110110
"""Gets the swagger generated by a k8s api server, checking if incluster token is available"""
111-
url = "https://kubernetes/openapi/v2"
111+
url = "https://kubernetes.default.svc/openapi/v2"
112112
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):

0 commit comments

Comments
 (0)