refactor: Split large deployment.yaml template for better maintainability #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
The current
deployment.yamltemplate is 306 lines long and complex, making it hard to maintain and understand. All MCP sidecars are defined inline, creating a monolithic template.Proposed Solution
Split the deployment template into logical components:
Implementation Details
1. Main Container Template
deployment-main.yaml- Core deployment with main container only2. Sidecar Template
deployment-sidecars.yaml- Include all MCP sidecars using helpers3. Reusable Helpers
_sidecar-helpers.tpl- Common patterns:4. Validation Helpers
_validation-helpers.tpl- Input validation:Benefits
Implementation Plan