Ben Banfield-Zanin
ea99b2e4c7
Merge pull request #134 from element-hq/bbz/fix-dev-build-shas
...
Correct the SHA used in dev builds to match the commit sha
2025-01-28 14:13:06 +00:00
Gaël Goinvic
1b9727fb03
Merge pull request #131 from element-hq/gaelg/render-config-with-secrets
...
Render config with secrets : Build a dedicated image
2025-01-28 15:12:29 +01:00
Gaël Goinvic
1da26e57b5
matrix tools 0.1.0
2025-01-28 14:59:25 +01:00
Ben Banfield-Zanin
1f8348a689
Correct the SHA used in dev builds to match the commit sha
2025-01-28 13:59:08 +00:00
Gaël Goinvic
6ca59d645e
renderer: more explicit error messages
2025-01-28 14:53:44 +01:00
Gaël Goinvic
fcbcab19e0
update matrix-tools to 0.0.2
2025-01-28 14:29:51 +01:00
Gaël Goinvic
f71d51d75f
pytest: fix var match regex
matrix-tools-0.0.2
2025-01-28 14:21:24 +01:00
Gaël Goinvic
c6bf073dec
synapse: fix hostname replace missing 3rd parameter
2025-01-28 14:19:46 +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
dd96462512
Merge pull request #133 from element-hq/gaelg/well-known-support
...
Add support for .well-known/matrix/support in Well Known Delegation
2025-01-28 11:44:46 +01:00
Gaël Goinvic
21a67b0d74
Add support for .well-known/matrix/support in Well Known Delegation
...
- Add new support configuration to well-known delegation
- Modify schema to accommodate support configuration
- Update templates to include support file
- Update tests to verify support configuration handling
2025-01-28 11:24:24 +01:00
Gaël Goinvic
54f1bf62e2
matrix-tools: use published 0.0.1 image
2025-01-28 11:00:20 +01:00
Gaël Goinvic
10813be854
ci: fix image tag
2025-01-28 10:53:06 +01:00
Gaël Goinvic
8e516b691d
matrix-tools: remove unnecessary else
2025-01-28 10:53:06 +01:00
Gaël Goinvic and Ben Banfield-Zanin
a3669bfda4
synapse init: Complete docs
...
Co-authored-by: Ben Banfield-Zanin <[email protected] >
2025-01-28 10:53:06 +01:00
Gaël Goinvic
b05390dbb8
move documentations to env vars
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
eee4018093
docker bake: dont force tag
2025-01-28 10:53:05 +01:00
Gaël Goinvic
4e25b21135
args: use flags package
2025-01-28 10:53:05 +01:00
Gaël Goinvic
400b66af2e
fix CA and certs missing Authority Key Identifier
2025-01-28 10:53:05 +01:00
Gaël Goinvic
c836bd8b68
synapse: remove render_config_with_secrets.py
2025-01-27 16:46:15 +01:00
Gaël Goinvic
526b0aef08
matrix-tools: fix licenses
2025-01-27 16:46:15 +01:00
Gaël Goinvic
a1575ad40a
fixup lint
2025-01-27 16:46:14 +01:00
Gaël Goinvic
c28b199467
add newsfragments for the matrix-tools feature
2025-01-27 16:46:14 +01:00
Gaël Goinvic
5df1e50590
fix go lint
2025-01-27 16:23:20 +01:00
Gaël Goinvic
4a73a30efd
add golang path to github_path
2025-01-27 16:23:20 +01:00
Gaël Goinvic
7b3a7a55aa
print path
2025-01-27 16:23:20 +01:00
Gaël Goinvic
764f9ca1db
test the go binary in CI
2025-01-27 16:23:20 +01:00
Gaël Goinvic
565bdfcdd6
add golang to ci runner image
2025-01-27 16:23:20 +01:00
Gaël Goinvic
ad6902f72f
remove unnecessary debug prints
2025-01-27 16:23:20 +01:00
Gaël Goinvic
596356301d
matrix-tools: improve tcp connection wait handling
2025-01-27 16:23:19 +01:00
Gaël Goinvic
81cb64e447
move args to internal pkg
2025-01-27 16:23:19 +01:00
Gaël Goinvic
e33701e44d
add tests for args parsing
2025-01-27 16:23:19 +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
5a0ac6a7a3
print yaml instead of json
2025-01-27 12:44:13 +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
Gaël Goinvic
c79714377d
Merge pull request #130 from element-hq/gaelg/name-towncrier
...
towncrier: properly name the changelog and cleanup newsfragment after release
2025-01-24 12:59:00 +01:00
Gaël Goinvic
34a28963ce
ci: ignore deleted files in check newsfragments
2025-01-24 12:19:06 +01:00
Gaël Goinvic
9c267c3f06
fix CHANGELOG license + title
2025-01-24 12:19:06 +01:00
Gaël Goinvic
5fa5c36b8c
exclude gitkeep from newsfragments
2025-01-24 12:19:06 +01:00
Gaël Goinvic
51c6a78fcb
add towncrier newsfragments
2025-01-24 12:19:06 +01:00
Gaël Goinvic
d7d4ffa8cf
cleanup newsfragment after release
2025-01-24 12:19:05 +01:00