Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sky status -r updates the owner of the cluster #1809

Merged
merged 3 commits into from
Mar 24, 2023
Merged

Conversation

Michaelvll
Copy link
Collaborator

We now allow sky status -r update the owner of the cluster, so that the user can be easier to migrate the existing cluster to the new identity setting.

Tested (run the relevant ones):

  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

@Michaelvll Michaelvll marked this pull request as ready for review March 24, 2023 17:29
@@ -1770,6 +1770,7 @@ def check_owner_identity(cluster_name: str) -> None:
'allow the operation as the two identities are likely to have '
'the same access to the cluster, but please be aware that '
'this is not guaranteed.')
if i != 0 or len(owner_identity) != len(current_user_identity):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment on why these conditions?

also “this is not guaranteed “ seems vague; rephrase possible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Added. PTAL. : )

sky/backends/backend_utils.py Outdated Show resolved Hide resolved
@Michaelvll Michaelvll merged commit fae047f into master Mar 24, 2023
@Michaelvll Michaelvll deleted the patch-identity branch March 24, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants