Skip to content

Commit

Permalink
Update k8s.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur authored Jan 21, 2025
1 parent 4a4bc15 commit 261f485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wts/auth_plugins/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def get_username_from_ip(ip):
try:
kubernetes.config.load_incluster_config()
except Exception:
flask.current_app.logger.info("Error loading incluster k8s config.. Returning None")
return None
v1 = kubernetes.client.CoreV1Api()
ret = v1.list_pod_for_all_namespaces(
Expand Down

0 comments on commit 261f485

Please sign in to comment.