Basic webapp deployer stack. (#722)

This commit is contained in:
2024-02-02 19:05:15 -07:00
committed by GitHub
parent 6629017d6a
commit 2fcd416e29
6 changed files with 32 additions and 13 deletions
@@ -360,11 +360,10 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
for named_volume in named_volumes["rw"]:
volume_descriptors[named_volume] = f"./data/{named_volume}"
for named_volume in named_volumes["ro"]:
if "k8s" in deployer_type:
if "config" in named_volume:
configmap_descriptors[named_volume] = f"./data/{named_volume}"
else:
volume_descriptors[named_volume] = f"./data/{named_volume}"
if "k8s" in deployer_type and "config" in named_volume:
configmap_descriptors[named_volume] = f"./data/{named_volume}"
else:
volume_descriptors[named_volume] = f"./data/{named_volume}"
if volume_descriptors:
spec_file_content["volumes"] = volume_descriptors
if configmap_descriptors: