Don't include volumes in spec if we don't have any. #720
@ -365,6 +365,7 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
|
|||||||
configmap_descriptors[named_volume] = f"./data/{named_volume}"
|
configmap_descriptors[named_volume] = f"./data/{named_volume}"
|
||||||
else:
|
else:
|
||||||
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
||||||
|
if volume_descriptors:
|
||||||
spec_file_content["volumes"] = volume_descriptors
|
spec_file_content["volumes"] = volume_descriptors
|
||||||
if configmap_descriptors:
|
if configmap_descriptors:
|
||||||
spec_file_content["configmaps"] = configmap_descriptors
|
spec_file_content["configmaps"] = configmap_descriptors
|
||||||
|
Loading…
Reference in New Issue
Block a user