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
[GCP] Support private IPs for GCP #2819
[GCP] Support private IPs for GCP #2819
Changes from 12 commits
557d859
82f8e35
4851a9f
5a18820
217ed84
e07a67c
25b7a64
3d7d182
c94ba58
ad8ffad
23e0493
3a0fe91
1885529
40d913c
3fdbdc9
80c3de9
08c7213
3350a1b
569101f
ee727be
6c28e8f
423b83c
c0731e2
9675edd
b90df17
304fc9e
b8cd23b
51ad80f
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.
See comment in skypilot_config. Feels safer to avoid overwriting.
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.
Is it safe? It feels hard to reason about. Any ways to avoid this?
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.
When the controller is launching a task, it should use the task-specific
skypilot_config
decided bySKYPILOT_CONFIG
env var, and we have to update the proxy command setting in that config.Added a docstr to for calling this with cautious.
If needed we can save the new
config
in a new config_file and reset theos.environ['SKYPILOT_CONFIG']
to the new config_file and set_dict
to the newconfig
.I don't think this will make much difference than directly overwrite the original config file. Wdyt?
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.
unsafe_overwrite_config_file_on_controller
or something like that?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.
The previous way was done before the controller is actually UP (failover may happen), which means we don't know which cloud the controller will use when we run
sky.launch
for the controller. The current way replaces the config on the controller, so it has the latest information about the controller itself.Yes, renaming it sounds good to me.
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.
See comment in skypilot_config. Feels safer to avoid overwriting.