- Add file closure handling in main.go
- Update ReadFiles function to return close functions
- Modify template rendering to use >- for multi-line strings
- Add matrixTools configuration in pytest-synapse-values.yaml
- Correct variable name in synapse_statefulset.yaml
RenderConfig now uses Go templates for variable replacement instead of custom prefixes. This simplifies implementation and allows for more complex template functions like file reading and string replacement.
- Use Go templates for variable interpolation
- Define template functions: readfile, hostname, replace
- Remove custom secret and hostname handling logic
- Update tests to use new template syntax
- Refactor renderer.go for cleaner code structure
- Introduced `ReadFiles` function to handle file opening
- Updated `RenderConfig` to accept `io.Reader` instead of filenames
- Removed direct file access logic from `RenderConfig`
- Ensured error handling is consistent across all paths