Skip to content

Commit

Permalink
workaround for build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengping Hu committed Mar 29, 2024
1 parent b869fc4 commit 0cffc5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion binderhub/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class ResourcesHandler(BaseHandler,LoggingConfigurable):
try:
kubernetes.config.load_incluster_config()
except kubernetes.config.ConfigException:
kubernetes.config.load_kube_config()
#kubernetes.config.load_kube_config()
print("load incluster config exception")
api = client.CoreV1Api()

def generate_avail(self):
Expand Down
3 changes: 2 additions & 1 deletion binderhub/spawner_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class SpawnerConfigHandler(BaseHandler):
try:
kubernetes.config.load_incluster_config()
except kubernetes.config.ConfigException:
kubernetes.config.load_kube_config()
#kubernetes.config.load_kube_config()
print("load incluster config exception")
api = client.CoreV1Api()
secrets = api.list_namespaced_secret("binderhub")
secret = next(s for s in secrets.items if s.metadata.name == "binderhub-values")
Expand Down

0 comments on commit 0cffc5d

Please sign in to comment.