fix(deployment): Missed the command from compose file #135
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-133"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request enhances the handling and testing of container commands in the deployment generator. The changes include adding support for specifying commands in service configurations and introducing a new test to validate this functionality.
Enhancements to container command handling:
generator/deployment.go
: Updated theAddContainer
method to include theCommand
field from theservice
configuration when creating containers.Testing improvements:
generator/deployment_test.go
: Added a new test,TestCheckCommand
, to verify that commands specified in the service configuration are correctly included in the generated deployment YAML. The test ensures the command structure matches expectations and validates the number and content of command elements.Fixes #133