Small fixes
This commit is contained in:
parent
5847cab1c0
commit
a52cd73cdb
@ -19,7 +19,7 @@ from app.deployer import Deployer
|
|||||||
|
|
||||||
class K8sDeployer(Deployer):
|
class K8sDeployer(Deployer):
|
||||||
name: str = "k8s"
|
name: str = "k8s"
|
||||||
|
|
||||||
def __init__(self, compose_files, compose_project_name, compose_env_file) -> None:
|
def __init__(self, compose_files, compose_project_name, compose_env_file) -> None:
|
||||||
config.load_kube_config()
|
config.load_kube_config()
|
||||||
self.client = client.CoreV1Api()
|
self.client = client.CoreV1Api()
|
||||||
|
@ -271,7 +271,6 @@ def init(ctx, config, output, map_ports_to_host):
|
|||||||
for named_volume in named_volumes:
|
for named_volume in named_volumes:
|
||||||
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
||||||
spec_file_content["volumes"] = volume_descriptors
|
spec_file_content["volumes"] = volume_descriptors
|
||||||
print(f"DEBUG spec: {spec_file_content}")
|
|
||||||
|
|
||||||
with open(output, "w") as output_file:
|
with open(output, "w") as output_file:
|
||||||
yaml.dump(spec_file_content, output_file)
|
yaml.dump(spec_file_content, output_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user