Bypass kind cluster create for remote k8s case

This commit is contained in:
David Boreham 2023-11-18 16:20:03 -07:00
parent 8dc23a4eed
commit f1345a5fcf

View File

@ -52,6 +52,7 @@ class K8sDeployer(Deployer):
self.apps_api = client.AppsV1Api()
def up(self, detach, services):
if self.is_kind():
# Create the kind cluster
create_cluster(self.kind_cluster_name, self.deployment_dir.joinpath("kind-config.yml"))
self.connect_api()
@ -92,6 +93,7 @@ class K8sDeployer(Deployer):
def down(self, timeout, volumes):
# Delete the k8s objects
if self.is_kind():
# Destroy the kind cluster
destroy_cluster(self.kind_cluster_name)