From 35d2b4719fa194eb319cd0356b3bfe6806a0e74f Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Wed, 20 Sep 2023 22:01:15 -0700 Subject: [PATCH 1/3] add OPEN_PORTS as unsupported --- sky/clouds/kubernetes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sky/clouds/kubernetes.py b/sky/clouds/kubernetes.py index 5aa8812921a..7ccb00e1250 100644 --- a/sky/clouds/kubernetes.py +++ b/sky/clouds/kubernetes.py @@ -67,7 +67,9 @@ class Kubernetes(clouds.Cloud): 'supported in ' 'Kubernetes.', clouds.CloudImplementationFeatures.DOCKER_IMAGE: - ('Docker image is not supported in Kubernetes. ') + 'Docker image is not supported in Kubernetes.', + clouds.CloudImplementationFeatures.OPEN_PORTS: + 'Opening ports is not supported in Kubernetes.' } IMAGE_CPU = 'skypilot:cpu-ubuntu-2004' From 359fe9cea8ffcfb96cc63b7ba5e7e72276a69951 Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Wed, 20 Sep 2023 22:11:55 -0700 Subject: [PATCH 2/3] lint --- sky/clouds/kubernetes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sky/clouds/kubernetes.py b/sky/clouds/kubernetes.py index 7ccb00e1250..3b0881954fb 100644 --- a/sky/clouds/kubernetes.py +++ b/sky/clouds/kubernetes.py @@ -66,10 +66,8 @@ class Kubernetes(clouds.Cloud): 'tiers are not ' 'supported in ' 'Kubernetes.', - clouds.CloudImplementationFeatures.DOCKER_IMAGE: - 'Docker image is not supported in Kubernetes.', - clouds.CloudImplementationFeatures.OPEN_PORTS: - 'Opening ports is not supported in Kubernetes.' + clouds.CloudImplementationFeatures.DOCKER_IMAGE: 'Docker image is not supported in Kubernetes.', + clouds.CloudImplementationFeatures.OPEN_PORTS: 'Opening ports is not supported in Kubernetes.' } IMAGE_CPU = 'skypilot:cpu-ubuntu-2004' From c9f690014eb6a53c05f9ccdf81cb7542771c657c Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Fri, 22 Sep 2023 16:44:35 -0700 Subject: [PATCH 3/3] manual lint --- sky/clouds/kubernetes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sky/clouds/kubernetes.py b/sky/clouds/kubernetes.py index 3b0881954fb..d91d2a5ecba 100644 --- a/sky/clouds/kubernetes.py +++ b/sky/clouds/kubernetes.py @@ -66,8 +66,12 @@ class Kubernetes(clouds.Cloud): 'tiers are not ' 'supported in ' 'Kubernetes.', - clouds.CloudImplementationFeatures.DOCKER_IMAGE: 'Docker image is not supported in Kubernetes.', - clouds.CloudImplementationFeatures.OPEN_PORTS: 'Opening ports is not supported in Kubernetes.' + clouds.CloudImplementationFeatures.DOCKER_IMAGE: 'Docker image is not ' + 'supported in ' + 'Kubernetes.', + clouds.CloudImplementationFeatures.OPEN_PORTS: 'Opening ports is not ' + 'supported in ' + 'Kubernetes.' } IMAGE_CPU = 'skypilot:cpu-ubuntu-2004'