Skip to content

Commit

Permalink
Add k8s logging
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Sep 9, 2024
1 parent 5ed8ccc commit 2ebabbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/backends/backend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,9 @@ def check_owner_identity(cluster_name: str) -> None:
err_msg = f'the activated account is {user_identities[0]!r}.'
else:
err_msg = (f'available accounts are {user_identities!r}.')
if cloud.is_same_cloud(clouds.Kubernetes()):
err_msg += (' Check your kubeconfig file and make sure the '
'correct context is available.')
with ux_utils.print_exception_no_traceback():
raise exceptions.ClusterOwnerIdentityMismatchError(
f'{cluster_name!r} ({cloud}) is owned by account '
Expand Down

0 comments on commit 2ebabbd

Please sign in to comment.