fix(deployment): Missed the command from compose file #135

Merged
metal3d merged 1 commits from issue-133 into develop 2025-07-12 22:10:22 +00:00
Owner

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 the AddContainer method to include the Command field from the service 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
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`](diffhunk://#diff-d980d24f8bd990a1d2918af6dd78c2fff5bf931de30e8a81d1c5f800e78e1402R139): Updated the `AddContainer` method to include the `Command` field from the `service` configuration when creating containers. Testing improvements: * [`generator/deployment_test.go`](diffhunk://#diff-918af45463145df72129335ed9302dfd5fbebf1d99a79c40930051ff694291c8R498-R533): 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
Sign in to join this conversation.
No description provided.