Commit Graph
27 Commits
Author SHA1 Message Date
Ben Banfield-Zanin 1cb6bab744 Support overwriting rather than merging some specific arrays in render-config 2026-01-30 14:03:01 +00:00
Ben Banfield-Zanin 63ea363594 git ls-files | xargs sed -i '/^\/\/ Copyright .* New Vector Ltd/a \/\/ Copyright 2025 Element Creations Ltd' 2025-10-27 09:36:54 +00:00
Ben Banfield-Zanin 75c884dc74 git ls-files | xargs sed -i '/^Copyright .* New Vector Ltd/a Copyright 2025 Element Creations Ltd' 2025-10-27 08:43:19 +00:00
Gaël Goinvic 688e3dc66a matrix-tools: implement marker secret key 2025-05-28 15:16:15 +02:00
Gaël Goinvic 8d74360ec4 matrix-tools: fix lint 2025-03-24 18:10:20 +01:00
Gaël Goinvic 273099b421 Licensing to AGPL-3.0-only 2025-03-20 14:15:02 +01:00
Gaël Goinvic 5f75fc036f matrix-tools: internal command handling refactoring 2025-02-11 17:49:26 +01:00
Gaël Goinvic ad41f9a19e matrix-tools: dont print post processed yaml without debug rendering
enabled
2025-02-10 17:00:18 +01:00
Gaël Goinvic e313825fb0 matrix-tools: merge arrays 2025-02-07 12:42:54 +01:00
Gaël Goinvic 3c411dab9c matrix-tools: add indent 2025-02-07 12:42:52 +01:00
Gaël Goinvic fbe854c8d2 matrix-tools: add quote filter 2025-01-29 16:28:07 +01:00
Gaël Goinvic 6ca59d645e renderer: more explicit error messages 2025-01-28 14:53:44 +01:00
Gaël Goinvic d0a08695c8 Refactor file reading to include proper closure handling
- 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
2025-01-28 14:19:45 +01:00
Gaël Goinvic 85573822ef Refactor config rendering to use Go templates
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
2025-01-28 14:19:45 +01:00
Gaël Goinvic a569de9f0c Refactored file handling in renderer to improve flexibility and readability
- 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
2025-01-28 12:27:41 +01:00
Gaël Goinvic 8e516b691d matrix-tools: remove unnecessary else 2025-01-28 10:53:06 +01:00
Gaël Goinvic c88099ffea matrix-tools : complete override tests 2025-01-28 10:53:06 +01:00
Gaël Goinvic 27f0226bfb matrix-tools: add test with overrides 2025-01-28 10:53:05 +01:00
Gaël Goinvic 8bd4c66a01 Refactor data map types to use any instead of interface{} 2025-01-28 10:53:05 +01:00
Gaël Goinvic 01eb4a2553 hostname substitution: try to substitue with actual test data 2025-01-28 10:53:05 +01:00
Gaël Goinvic 526b0aef08 matrix-tools: fix licenses 2025-01-27 16:46:15 +01:00
Gaël Goinvic 5df1e50590 fix go lint 2025-01-27 16:23:20 +01:00
Gaël Goinvic 0a2b73fe32 add tests for rendering & tcp wait 2025-01-27 16:23:19 +01:00
Gaël Goinvic abecd16a32 matrix-tools: add wait for tcp + hostname injection features 2025-01-27 14:35:18 +01:00
Gaël Goinvic bad1f3660e ci: build matrix-tools image 2025-01-27 12:28:46 +01:00
Gaël Goinvic 071dc4c516 fix reuse licenses 2025-01-27 11:10:32 +01:00
Gaël Goinvic 643957ee24 matrix-tools: initialize renderer features 2025-01-27 11:03:01 +01:00