52 Commits

Author SHA1 Message Date
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
Philip Laine
4e1b2d704e Add validation of mirror configuration on start 2023-07-31 22:45:15 +02:00
Philip Laine
ac7f6a3ed0 Add option to disable resolving latest tags 2023-07-29 12:48:35 +02:00
Philip Laine
8a6ce1f937 Add configuration for resolve retry and timeout 2023-06-28 22:59:31 +02:00
Philip Laine
df0002c9bb Refactor registry implementation to not require separate handler 2023-06-28 21:59:22 +02:00
Philip Laine
192b611aec Add Add retry mirroring to new peer if current peer fails 2023-06-28 14:25:35 +02:00
Philip Laine
4dbbbef76d Move mirror configuration to specific OCI implementation 2023-06-12 13:05:49 +02:00
Philip Laine
f7380a3482 Remove image filter configuration 2023-06-12 12:38:28 +02:00
Philip Laine
be8abf812c Refactor oci integration 2023-06-09 16:52:15 +02:00
Philip Laine
01140838c6 Change to using channels package 2023-05-17 23:11:47 +02:00
Philip Laine
f235db782e Clean up main argument names 2023-03-17 13:41:43 +01:00
Philip Laine
f33417f4a0 Move mirror configuration to run as a init container 2023-03-16 11:05:48 +01:00
Philip Laine
d5ea0241d4 Include error from defer in returned error 2023-03-12 20:39:15 +01:00
Philip Laine
8fa939b9dd Filter tracked images to only included mirrored registries 2023-03-10 00:15:47 +01:00
Philip Laine
fba2322473 Implement support for using fallback node port service if local Spegel is not reachable 2023-02-10 14:21:30 +01:00
Philip Laine
1deb986759 Fix vet error 2023-02-06 13:56:35 +01:00
Philip Laine
38501aa8dd Add argument descriptions 2023-02-06 09:23:22 +01:00
Philip Laine
17af745477 Move mirror configuration to run after registry is setup 2023-01-31 23:40:40 +01:00
Philip Laine
f275595192 Move main logic to run function 2023-01-31 23:17:06 +01:00
Philip Laine
0a9db7beeb Swtich to using DHT to discover layers 2023-01-26 18:48:02 +01:00
Philip Laine
56e9b0bc15 Change shutdown grace period 2023-01-25 23:52:50 +01:00
Philip Laine
fc66bee030 Clean up olric storage 2023-01-25 22:03:32 +01:00
Philip Laine
c5b6b24cdb Reimplement embedded olric store 2023-01-25 19:08:33 +01:00
Philip Laine
d989b62bfc Refactor discover package 2023-01-25 15:05:40 +01:00
Philip Laine
b6fd45c393 Create helm chart for spegel 2023-01-25 13:14:41 +01:00
Philip Laine
7c6c11efe6 Update TODO 2023-01-25 11:23:30 +01:00
Philip Laine
b137d9a0d0 Implement image filtering 2023-01-25 00:50:32 +01:00
Philip Laine
cade281129 Fix termination to listen to the correct signal handler 2023-01-24 16:56:17 +01:00