Don't include volumes in spec if we don't have any. (#720)
Publish / Build and publish (push) Successful in 51s Details
Deploy Test / Run deploy test suite (push) Successful in 3m3s Details
Webapp Test / Run webapp test suite (push) Successful in 3m6s Details
Smoke Test / Run basic test suite (push) Successful in 4m56s Details

pull/727/head v1.1.0-b398050-202401312111
Thomas E Lackey 2024-01-31 15:11:32 -06:00 committed by GitHub
parent 12ec1bec43
commit b398050787
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -365,7 +365,8 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
configmap_descriptors[named_volume] = f"./data/{named_volume}"
else:
volume_descriptors[named_volume] = f"./data/{named_volume}"
spec_file_content["volumes"] = volume_descriptors
if volume_descriptors:
spec_file_content["volumes"] = volume_descriptors
if configmap_descriptors:
spec_file_content["configmaps"] = configmap_descriptors