Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
#164 fix in-cluster config (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed May 3, 2018
1 parent 1107003 commit 933b8fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kube_ops_view/cluster_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def __init__(self, api_server_urls: list):
# => assume default kubectl proxy URL
cluster = Cluster(generate_cluster_id(DEFAULT_CLUSTERS), DEFAULT_CLUSTERS)
else:
config = kubernetes.client.configuration
# "load_incluster_config" set defaults in the config class
config = kubernetes.client.configuration.Configuration()
cluster = Cluster(
generate_cluster_id(config.host),
config.host,
Expand Down

0 comments on commit 933b8fc

Please sign in to comment.