Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Core] Support launching a new cluster from an existing cluster's disk #2098
[Core] Support launching a new cluster from an existing cluster's disk #2098
Changes from 6 commits
f447e0f
419a002
38d4693
5f003ee
3360d34
c12fda0
5c2c3db
9cd39de
8625d7f
9c2b965
9091d92
b8f2c88
14a3a99
2b1e2be
6df687d
ce6bf86
cf0f066
2651b18
f3776f7
f1c98f7
4a778d9
20e7da5
30205fd
4427e47
e8f2bd6
2073c70
b549691
8b2a94a
3514029
8d9baa3
b5276bd
254de30
e1e53e7
7b85601
ee59b10
4954fcb
f6c77a5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Although we checked the existance of the cluster in the caller. There might be some case where user manually terminates the original cluster, causing an issue. Added a condition for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the 3 if clauses should be placed under an "if not cluster_exists:". Not feeling strongly, just felt that may be more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we can move the CLONE_DISK stage up before the if above, so that we can still have the two original if in
if not cluster_exists
. The downside with this is that, it can be a little bit confusing when the order of the stages should beCLONE_DISK -> OPTIMIZE -> PROVISION ...
, but now it is easier to read it asCLONE_DISK -> PROVISION -> OPTIMIZE -> PROVISION...
.