Add generated kind config

This commit is contained in:
David Boreham 2023-11-03 23:27:47 -06:00
parent 16b5321ac2
commit 0fdb6cdbde
2 changed files with 3 additions and 2 deletions

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"