Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Sep 15, 2023
1 parent e2bfc66 commit b792a51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions sky/clouds/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ def make_deploy_resources_variables(
# Select image based on whether we are using GPUs or not.
image_id = self.IMAGE_GPU if acc_count > 0 else self.IMAGE_CPU
# Get the container image ID from the service catalog.
# Note that currently we do not support custom images, so this condition
# will always be triggered. In the future we may want to get image_id
# from the resources object if it is set.
if image_id.startswith('skypilot:'):
image_id = service_catalog.get_image_id_from_tag(
image_id, clouds='kubernetes')
# TODO(romilb): Note that currently we do not support custom images,
# so the image_id should start with 'skypilot:'.
# In the future we may want to get image_id from the resources object.
assert image_id.startswith('skypilot:')
image_id = service_catalog.get_image_id_from_tag(
image_id, clouds='kubernetes')

k8s_acc_label_key = None
k8s_acc_label_value = None
Expand Down
2 changes: 1 addition & 1 deletion sky/clouds/service_catalog/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Constants used for service catalog."""
import os

HOSTED_CATALOG_DIR_URL = 'https://raw.githubusercontent.com/romilbhardwaj/skypilot-catalog/k8s_images/catalogs' # TODO - REVERT AFTER CATALOG PR IS MERGED. pylint: disable=line-too-long
HOSTED_CATALOG_DIR_URL = 'https://raw.githubusercontent.com/skypilot-org/skypilot-catalog/master/catalogs' # pylint: disable=line-too-long
CATALOG_SCHEMA_VERSION = 'v5'
LOCAL_CATALOG_DIR = os.path.expanduser('~/.sky/catalogs/')
3 changes: 0 additions & 3 deletions sky/clouds/service_catalog/kubernetes_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@

from typing import Optional

from sky import sky_logging
from sky.clouds.service_catalog import common

logger = sky_logging.init_logger(__name__)

_PULL_FREQUENCY_HOURS = 7

# We keep pull_frequency_hours so we can remotely update the default image paths
Expand Down

0 comments on commit b792a51

Please sign in to comment.