Fix kind mode and add k8s deployment test #704

Merged
telackey merged 2 commits from dboreham/add-kind-deploy-test into main 2024-01-16 22:55:58 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit a5d9dba6c3 - Show all commits

View File

@ -111,7 +111,7 @@ class K8sDeployer(Deployer):
print("PVCs created:")
print(f"{pvc_resp}")
# Process compose files into a Deployment
deployment = self.cluster_info.get_deployment(image_pull_policy = None if self.is_kind() else "Always")
deployment = self.cluster_info.get_deployment(image_pull_policy=None if self.is_kind() else "Always")
# Create the k8s objects
if opts.o.debug:
print(f"Sending this deployment: {deployment}")
@ -205,7 +205,7 @@ class K8sDeployer(Deployer):
name=ingress.metadata.name, namespace=self.k8s_namespace
)
except client.exceptions.ApiException as e:
check_delete_exception(e)
_check_delete_exception(e)
if self.is_kind():
# Destroy the kind cluster

View File

@ -23,6 +23,7 @@ from stack_orchestrator.opts import opts
from stack_orchestrator.deploy.deploy_util import parsed_pod_files_map_from_file_names
from stack_orchestrator.deploy.deployer import DeployerException
def _run_command(command: str):
if opts.o.debug:
print(f"Running: {command}")