Philip Laine
153e54ecba
Enforce use of request contexts and fix response closing
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-06-05 16:11:25 +02:00
Philip Laine
83a0a47d40
Rename OCI client to store
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-05-08 12:58:07 +02:00
Philip Laine
d04f97befe
Implement unit tests for cleanup logic
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-27 12:51:15 +02:00
Philip Laine
4849dc00d5
Remove use of Afero in Containerd config
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-27 11:30:29 +02:00
Philip Laine
67ecc08279
Perist libp2p key to disk when data directory is set
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-26 13:48:35 +02:00
Philip Laine
ade0f64250
Add support for a static bootstrapper
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-26 11:43:47 +02:00
Philip Laine
ca0c839c66
Set default values for address arguments
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-26 11:26:30 +02:00
Philip Laine
de7e796082
Refactor registry config to align with router config
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-19 14:41:02 +02:00
Philip Laine
8d58484fd6
Add delete hook to cleanup configuration form host when chart in uninstalled
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-17 20:20:41 +02:00
Philip Laine
1168ad84c6
Remove local address check when resolving peers
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-04-15 20:07:19 +02:00
Philip Laine
e267f04f17
Remove Kubernetes bootstrapper
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-03-22 09:21:26 +01:00
Philip Laine
34ac563e39
Add debug view to help validating Spegel
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-03-20 12:43:07 +01:00
Philip Laine
8b15d80a3c
Add basic authentication support
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-03-06 19:54:14 +01:00
Philip Laine
f5106777c5
Implement support to disable registry filtering
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-02-25 23:20:33 +01:00
Philip Laine
4fb7505f03
Rename append mirrors to prepend existing
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-02-25 13:10:07 +01:00
Philip Laine
57db00f66f
Fix p2p router close panic and add tests
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-01-17 14:29:20 +01:00
Philip Laine
56c70cc05c
Refactor and add tests for p2p ready
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-01-17 13:10:55 +01:00
Philip Laine
484856cfc1
Switch to using headless service for bootstrapping
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2025-01-10 20:35:46 +01:00
Philip Laine
2b9b709d0b
Add allocs to pprof endpoints
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2024-12-06 13:46:39 +01:00
Philip Laine
819c04957c
Remove throttling from blobs
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2024-10-07 22:02:48 +02:00
Philip Laine
1583633faa
extend tests for mux
2024-06-19 16:40:47 +02:00
Philip Laine
56d820bb38
Change default resolve timeout to 20ms
2024-06-09 13:55:40 +02:00
Philip Laine
c18e3e5ad7
Enable perfsprint linter and fix errors
2024-05-14 23:15:28 +02:00
Philip Laine
3d7571fb00
Enable ireturn linter and fix errors
2024-05-14 22:53:12 +02:00
Philip Laine
251d0d3c9a
Enable goimports linter and fix errors
2024-05-14 22:35:53 +02:00
stenh0use
0b8ee78311
Fix http-bootstrap-addr env variable
2024-04-27 15:38:26 -04:00
Philip Laine
8ac5469c94
Replace zapr with slog
2024-04-20 13:18:05 +02:00
Philip Laine
e4c8475545
Add optional Containerd local content store
2024-04-13 11:50:04 +02:00
Philip Laine
9b6022415e
Add pprof endpoints to enable profiling
2024-04-12 11:25:39 +02:00
Philip Laine
fc84c2dd45
Replace XenitAB Kubernetes pkg with internal package
2024-04-10 11:06:43 +02:00
Philip Laine
ae5473f9d9
Add option to append mirror configuration instead of overwriting
2024-04-09 16:57:22 +02:00
Philip Laine
89602d10f8
Replace Gin with std lib http
2024-04-05 19:34:44 +02:00
Philip Laine
531b354c72
Fix http bootstrapper arg annotation
2024-04-03 21:17:37 +02:00
Philip Laine
a99e931847
Update org imports from xenitab to spegel-org
2024-04-01 20:35:05 +02:00
Kai Hulme
f76e78855e
Add envvar configuration support
2024-03-21 15:10:43 +00:00
Philip Laine
8a5978f0d1
Remove state track retry on error
2024-03-01 12:16:13 +01:00
Philip Laine
ceb46d24fe
Add support for io throttling
2024-02-29 16:13:01 +01:00
Philip Laine
5dcd5f33a8
Change registry configuration to options
2024-02-05 14:35:08 +01:00
Philip Laine
98e4fa09b1
Add support for a custom http transport when proxying requests
2024-02-05 11:52:32 +01:00
Philip Laine
38697ed362
Add HTTP bootstrapper
2024-02-01 12:13:46 +01:00
Philip Laine
1782706846
Move remaining packages to pkg
2024-01-23 12:00:54 +01:00
Philip Laine
8f94b087f0
Refactor bootstrap to exit on error
2024-01-19 18:38:45 +01:00
Philip Laine
e200ae252b
Move metrics definitions to separate package
2024-01-18 11:38:21 +01:00
Lukasz Raczylo
aa5d3190bc
Realign the structs in attempt to minimise memory usage.
...
Results:
```
spegel/internal/routing/bootstrap.go:20:29: struct with 88 pointer bytes could be 64
spegel/internal/routing/mock.go:8:17: struct with 32 pointer bytes could be 8
spegel/pkg/oci/containerd.go:371:15: struct with 24 pointer bytes could be 16
spegel/internal/registry/registry.go:38:15: struct with 64 pointer bytes could be 40
spegel/main.go:38:18: struct with 200 pointer bytes could be 168
spegel/internal/registry/registry_test.go:65:13: struct with 64 pointer bytes could be 48
spegel/pkg/oci/containerd_test.go:24:13: struct with 64 pointer bytes could be 56
spegel/pkg/oci/containerd_test.go:249:13: struct with 64 pointer bytes could be 56
spegel/pkg/oci/containerd_test.go:281:13: struct of size 96 could be 88
spegel/pkg/oci/image_test.go:12:13: struct with 80 pointer bytes could be 72
```
2023-12-29 11:46:32 +00:00
Philip Laine
49826387b5
Move oci package to pkg
2023-12-11 22:11:51 +01:00
Philip Laine
88c1817597
Enable misspell linter
2023-11-09 10:45:57 +01:00
Philip Laine
a1400d257c
Set klog logger to standerdize output format
2023-10-27 16:58:58 +02:00
Philip Laine
37d0b3fe42
Modify error handling in state tracking to avoid exiting
2023-08-17 21:55:09 +02:00
Philip Laine
199cc09427
Add option to disable resolve
2023-08-17 21:33:57 +02:00
Philip Laine
706b1fd82d
Remove X-Spegel-External header
2023-08-10 17:35:29 +02:00