Add generated kind config #623

Merged
telackey merged 7 commits from dboreham/kind-config into main 2023-11-06 06:21:54 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 0fdb6cdbde - Show all commits

View File

@ -47,7 +47,8 @@ class K8sDeployer(Deployer):
def up(self, detach, services):
# Create the kind cluster
create_cluster(self.kind_cluster_name, )
# HACK: pass in the config file path here
create_cluster(self.kind_cluster_name, "./test-deployment-dir/kind-config.yml")
self.connect_api()
# Ensure the referenced containers are copied into kind
load_images_into_kind(self.kind_cluster_name, self.cluster_info.image_set)

View File

@ -168,7 +168,7 @@ def _generate_kind_port_mappings(parsed_pod_files):
for port_string in ports:
# TODO handle the complex cases
# Looks like: 80 or something more complicated
port_definitions.append(f" - containerPort: {port_string}\n hostPort:{port_string}")
port_definitions.append(f" - containerPort: {port_string}\n hostPort: {port_string}")
return (
"" if len(port_definitions) == 0 else (
" extraPortMappings:\n"