Commit Graph
60 Commits
Author SHA1 Message Date
Ben Banfield-Zanin c8303c96c4 gofmt -w matrix-tools 2025-10-09 14:37:07 +01:00
Gaël Goinvic bc7069a364 matrix-tools: refactor subcommands 2025-07-02 14:07:01 +02:00
Gaël Goinvic 6430e826ef filter completed pods 2025-06-11 11:06:09 +02:00
Gaël Goinvic 4598ca2105 make max retries configurable 2025-06-09 16:03:08 +02:00
Gaël Goinvic e74e627495 fix retries text logic 2025-06-09 16:03:08 +02:00
Gaël Goinvic d65659255c fix allPodsDown logic 2025-06-09 16:03:08 +02:00
Gaël Goinvic 36da3c174e Actively wait for pods to be gone 2025-06-09 16:03:08 +02:00
Gaël Goinvic a23ba9280b matrix-tools: explicitely exclude synapse check config 2025-06-06 18:18:05 +02:00
Gaël Goinvic c3cd3cf153 syn2mas: fail if pods are still up after statefulset are all down 2025-06-06 17:43:21 +02:00
Gaël Goinvic d3c1474022 matrix-tools: test syn2mas args 2025-06-05 17:40:35 +02:00
Gaël Goinvic 5038143cf9 matrix-tools: log more during upgrade 2025-06-05 15:16:44 +02:00
Gaël Goinvic 6c2c2ddcc0 add syn2mas role binding 2025-06-05 15:16:43 +02:00
Gaël Goinvic bbc5d947c7 matrix-tools: add syn2mas capabilities 2025-06-05 15:16:43 +02:00
Gaël Goinvic 6c2906b9e0 matrix-tools: semi-collon help message 2025-05-28 17:04:39 +02:00
Gaël Goinvic 9f8d8a8636 matrix-tools: deployment-markers - set step a individual parameter 2025-05-28 15:16:45 +02:00
Gaël Goinvic dfaf92b7b1 matrix-tools: separate allowedValues using semi colon 2025-05-28 15:16:44 +02:00
Gaël Goinvic 666a1ff2d4 marker: fix err messages 2025-05-28 15:16:44 +02:00
Gaël Goinvic 5d8acf38a9 matrix-tools: fix tests of args parsing 2025-05-28 15:16:44 +02: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 99d6baf13a matrix-tools: replace -debug with env var 2025-02-07 12:42:55 +01:00
Gaël Goinvic e313825fb0 matrix-tools: merge arrays 2025-02-07 12:42:54 +01:00
Gaël Goinvic f878e8a219 mas: and integration env file 2025-02-07 12:42:53 +01:00
Gaël Goinvic d08559b249 matrix-authentication-service: fix pytest manifests checks 2025-02-07 12:42:52 +01:00
Gaël Goinvic 3c411dab9c matrix-tools: add indent 2025-02-07 12:42:52 +01:00
Gaël Goinvic 42d5c15106 matrix-tools: handle MAS private keys 2025-02-07 12:42:52 +01:00
Gaël Goinvic e2c23dda01 signing_key: force a new Rand 2025-02-06 11:43:57 +01:00
Gaël Goinvic 42a75063a0 matrix-tools: add dedicated signing key secrets 2025-02-06 11:30:56 +01:00
Gaël Goinvic 139714670a matrix-tools: base64 serialization is handled by go lib 2025-02-06 11:30:56 +01:00
Gaël Goinvic 8c56657ac7 ci: remove synapse signing key 2025-02-06 11:30:55 +01:00
Gaël Goinvic 106a8490f4 matrix-tools: add signing key feature 2025-02-06 11:30:55 +01:00
Gaël Goinvic 11972394cd matrix-tools: better logging 2025-02-05 10:52:57 +01:00
Gaël Goinvic f8c531975c matrix-tools: ensure we can create empty secret 2025-02-04 17:03:11 +01:00
Gaël Goinvic 064c169a8f Refactor secret generation to include labels and improve validation
- Add secret labels parameter to GenerateSecret function
- Update secret creation and update logic to use new parameter
- Validate if secret is managed by matrix-tools-init-secrets before updating
- Adjust test cases to reflect new functionality
- Refactor test case structure for clarity
2025-02-04 17:03:10 +01:00
Gaël Goinvic 1807b674ba matrix-tools: add generate-secrets command 2025-02-04 17:03:10 +01:00
Gaël Goinvic 5e672fcd50 add secret generation package 2025-02-04 17:03:10 +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 4e25b21135 args: use flags package 2025-01-28 10:53:05 +01:00