skypilot-nightly 1.0.0.dev20241127__py3-none-any.whl → 1.0.0.dev20241128__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sky/__init__.py +2 -2
- sky/clouds/kubernetes.py +3 -2
- sky/resources.py +22 -1
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/METADATA +1 -1
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/RECORD +9 -9
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/top_level.txt +0 -0
sky/__init__.py
CHANGED
@@ -5,7 +5,7 @@ from typing import Optional
|
|
5
5
|
import urllib.request
|
6
6
|
|
7
7
|
# Replaced with the current commit when building the wheels.
|
8
|
-
_SKYPILOT_COMMIT_SHA = '
|
8
|
+
_SKYPILOT_COMMIT_SHA = '68723df97c7c981887ba9100c510aca953f45c11'
|
9
9
|
|
10
10
|
|
11
11
|
def _get_git_commit():
|
@@ -35,7 +35,7 @@ def _get_git_commit():
|
|
35
35
|
|
36
36
|
|
37
37
|
__commit__ = _get_git_commit()
|
38
|
-
__version__ = '1.0.0.
|
38
|
+
__version__ = '1.0.0.dev20241128'
|
39
39
|
__root_dir__ = os.path.dirname(os.path.abspath(__file__))
|
40
40
|
|
41
41
|
|
sky/clouds/kubernetes.py
CHANGED
@@ -41,6 +41,8 @@ class Kubernetes(clouds.Cloud):
|
|
41
41
|
SKY_SSH_KEY_SECRET_NAME = 'sky-ssh-keys'
|
42
42
|
SKY_SSH_JUMP_NAME = 'sky-ssh-jump-pod'
|
43
43
|
|
44
|
+
LEGACY_SINGLETON_REGION = 'kubernetes'
|
45
|
+
|
44
46
|
# Limit the length of the cluster name to avoid exceeding the limit of 63
|
45
47
|
# characters for Kubernetes resources. We limit to 42 characters (63-21) to
|
46
48
|
# allow additional characters for creating ingress services to expose ports.
|
@@ -54,7 +56,6 @@ class Kubernetes(clouds.Cloud):
|
|
54
56
|
_DEFAULT_MEMORY_CPU_RATIO = 1
|
55
57
|
_DEFAULT_MEMORY_CPU_RATIO_WITH_GPU = 4 # Allocate more memory for GPU tasks
|
56
58
|
_REPR = 'Kubernetes'
|
57
|
-
_LEGACY_SINGLETON_REGION = 'kubernetes'
|
58
59
|
_CLOUD_UNSUPPORTED_FEATURES = {
|
59
60
|
# TODO(romilb): Stopping might be possible to implement with
|
60
61
|
# container checkpointing introduced in Kubernetes v1.25. See:
|
@@ -630,7 +631,7 @@ class Kubernetes(clouds.Cloud):
|
|
630
631
|
instance_type)
|
631
632
|
|
632
633
|
def validate_region_zone(self, region: Optional[str], zone: Optional[str]):
|
633
|
-
if region == self.
|
634
|
+
if region == self.LEGACY_SINGLETON_REGION:
|
634
635
|
# For backward compatibility, we allow the region to be set to the
|
635
636
|
# legacy singleton region.
|
636
637
|
# TODO: Remove this after 0.9.0.
|
sky/resources.py
CHANGED
@@ -45,7 +45,7 @@ class Resources:
|
|
45
45
|
"""
|
46
46
|
# If any fields changed, increment the version. For backward compatibility,
|
47
47
|
# modify the __setstate__ method to handle the old version.
|
48
|
-
_VERSION =
|
48
|
+
_VERSION = 20
|
49
49
|
|
50
50
|
def __init__(
|
51
51
|
self,
|
@@ -1607,4 +1607,25 @@ class Resources:
|
|
1607
1607
|
self._cluster_config_overrides = state.pop(
|
1608
1608
|
'_cluster_config_overrides', None)
|
1609
1609
|
|
1610
|
+
if version < 20:
|
1611
|
+
# Pre-0.7.0, we used 'kubernetes' as the default region for
|
1612
|
+
# Kubernetes clusters. With the introduction of support for
|
1613
|
+
# multiple contexts, we now set the region to the context name.
|
1614
|
+
# Since we do not have information on which context the cluster
|
1615
|
+
# was run in, we default it to the current active context.
|
1616
|
+
legacy_region = clouds.Kubernetes().LEGACY_SINGLETON_REGION
|
1617
|
+
original_cloud = state.get('_cloud', None)
|
1618
|
+
original_region = state.get('_region', None)
|
1619
|
+
if (isinstance(original_cloud, clouds.Kubernetes) and
|
1620
|
+
original_region == legacy_region):
|
1621
|
+
current_context = (
|
1622
|
+
kubernetes_utils.get_current_kube_config_context_name())
|
1623
|
+
state['_region'] = current_context
|
1624
|
+
# Also update the image_id dict if it contains the old region
|
1625
|
+
if isinstance(state['_image_id'], dict):
|
1626
|
+
if legacy_region in state['_image_id']:
|
1627
|
+
state['_image_id'][current_context] = (
|
1628
|
+
state['_image_id'][legacy_region])
|
1629
|
+
del state['_image_id'][legacy_region]
|
1630
|
+
|
1610
1631
|
self.__dict__.update(state)
|
{skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
sky/__init__.py,sha256=
|
1
|
+
sky/__init__.py,sha256=2L-9v3lb9LYIISg7RyvgLCwJOcEwS09h2pQ6YwaxXWY,5882
|
2
2
|
sky/admin_policy.py,sha256=hPo02f_A32gCqhUueF0QYy1fMSSKqRwYEg_9FxScN_s,3248
|
3
3
|
sky/authentication.py,sha256=kACHmiZgWgRpYd1wx1ofbXRMErfMcFmWrkw4a9NxYrY,20988
|
4
4
|
sky/check.py,sha256=D3Y3saIFAYVvPxuBHnVgJEO0fUVDxgjwuMBaO-D778k,9472
|
@@ -10,7 +10,7 @@ sky/exceptions.py,sha256=E3C2Ejcc8RUDAUQn7ar_Jr97C_AxD2rKKMmJOfLJ9d0,8965
|
|
10
10
|
sky/execution.py,sha256=RsVYs_Fkt8OJUJemz49mJLKE5iZaOvNHCTPcnQ_ngNQ,27522
|
11
11
|
sky/global_user_state.py,sha256=ob3jvtG_yMPGvLlVScgeJ9pqk3FP4jhfEixw8WzFwho,29682
|
12
12
|
sky/optimizer.py,sha256=GjvKQIBtY3NlULzau_9tfa7V2KYVJRrmNrjKVIWCPIQ,59753
|
13
|
-
sky/resources.py,sha256=
|
13
|
+
sky/resources.py,sha256=4T-zQK0OSLC1z5-sLFluEQJ_Y8CAJX3jb4ZSPedwy1s,70352
|
14
14
|
sky/sky_logging.py,sha256=oLmTmwkuucIto3LHXLJfMcyRpYSkmZAZa5XzQPA5IHk,4434
|
15
15
|
sky/skypilot_config.py,sha256=E3g65cX3P3dT9b5N0GgFBG6yB0FXwIGpisKoozmJmWU,9094
|
16
16
|
sky/status_lib.py,sha256=J7Jb4_Dz0v2T64ttOdyUgpokvl4S0sBJrMfH7Fvo51A,1457
|
@@ -48,7 +48,7 @@ sky/clouds/cudo.py,sha256=mglcsoYhdWwgkVgFcoZLE0M_UCXOJkvW6nITufPd_BQ,13118
|
|
48
48
|
sky/clouds/fluidstack.py,sha256=u2I6jXEtTqgqRWi2EafMsKqc8VkUq1cR6CSDUvk72_U,12407
|
49
49
|
sky/clouds/gcp.py,sha256=RH3MMdgR3FWPiwm7rFrJ5oebtTcSUVoh7UfQMc_6U4A,54704
|
50
50
|
sky/clouds/ibm.py,sha256=0ArRTQx1_DpTNGByFhukzFedEDzmVjBsGiiques1bQ0,21447
|
51
|
-
sky/clouds/kubernetes.py,sha256=
|
51
|
+
sky/clouds/kubernetes.py,sha256=ozXABwLpZBm7mr342GC_OODq4pvttZWz-CQ9bdcNA28,31544
|
52
52
|
sky/clouds/lambda_cloud.py,sha256=42AmcN2X_wdBMuAw606nR_pQCBAy5QFiAo711_WRqDE,12672
|
53
53
|
sky/clouds/oci.py,sha256=OzGWoU3DiMbFujMQLXgCr94Oqb9EyP0CsM4gMYOeU9s,26553
|
54
54
|
sky/clouds/paperspace.py,sha256=0UxOcv_NaLY5hrFoAA_ZienclZUOqzf0yxXXZu4jXG0,10896
|
@@ -275,9 +275,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_job.yaml,sha256=k0TBoQ4zgf79-sVkixKSGYFHQ7Z
|
|
275
275
|
sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488oMQvhRZWwsj9vBbPUg,3812
|
276
276
|
sky/utils/kubernetes/rsync_helper.sh,sha256=h4YwrPFf9727CACnMJvF3EyK_0OeOYKKt4su_daKekw,1256
|
277
277
|
sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=RFLJ3k7MR5UN4SKHykQ0lV9SgXumoULpKYIAt1vh-HU,6560
|
278
|
-
skypilot_nightly-1.0.0.
|
279
|
-
skypilot_nightly-1.0.0.
|
280
|
-
skypilot_nightly-1.0.0.
|
281
|
-
skypilot_nightly-1.0.0.
|
282
|
-
skypilot_nightly-1.0.0.
|
283
|
-
skypilot_nightly-1.0.0.
|
278
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
279
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/METADATA,sha256=R6yAGWMUNHZVRUTdxPPL8LyIR-E4Iky0yLC5izUcV1Q,20222
|
280
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
281
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
282
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
283
|
+
skypilot_nightly-1.0.0.dev20241128.dist-info/RECORD,,
|
File without changes
|
{skypilot_nightly-1.0.0.dev20241127.dist-info → skypilot_nightly-1.0.0.dev20241128.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|