Alejandro Mery
|
6e3bb24b36
|
cluster: further remove wg1 support
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
9810f5c6c1
|
cluster: drop wg1.conf generation
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
8948b6702a
|
Revert "cluster: fix wg1 generation (AllowedIPs)"
This reverts commit f0c09c2176 .
|
4 months ago |
Alejandro Mery
|
593f88e2a3
|
Merge pull request #57 (wg1.conf)
cluster: fix wg1 generation (AllowedIPs)
Reviewed-on: #57
|
4 months ago |
Nagy Károly Gábriel
|
f0c09c2176
|
cluster: fix wg1 generation (AllowedIPs)
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
|
4 months ago |
Alejandro Mery
|
f9462d3e0b
|
Merge pull request (#55)
introduce `jpictl list`, `tools.LazyBuffer` and updated build system
Reviewed-on: #55
|
4 months ago |
Alejandro Mery
|
c20bd3d41f
|
jpictl: introduce initial `jpictl list`
to see the different networks and addresses
currently limited to rings zero and one.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
f0cef6c19f
|
tools: introduce LazyClose()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
05538e6925
|
tools: introduce LazyBuffer abstraction of bytes.Buffer
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
0c21d74c15
|
rings: make unsafe address factories public
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
401603f4be
|
chore: clear lint warnings
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
ac43ee869c
|
build-sys: update build sys to darvaza.org/x's latest
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
4345a17d9a
|
Merge pull request 'cluster: fix wg0.conf generator' (#54) from pr-amery-wg0.conf into main
Reviewed-on: #54
|
4 months ago |
Alejandro Mery
|
01ef75a020
|
cluster: fix wg0.conf generator
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
d0efcbaa74
|
Merge pull request 'cluster: rework `env` output to qualify zones using the region' (#53) from pr-amery-env into main
Reviewed-on: #53
|
4 months ago |
Alejandro Mery
|
7f5d48b2b0
|
cluster: rework `env` output to qualify zones using the region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Nagy Károly Gábriel
|
00b2f8b531
|
Merge pull request 'cluster: migrate to using pkg/rings for Addresses' (#51) from pr-amery-rings into main
Reviewed-on: #51
|
6 months ago |
Alejandro Mery
|
948eff76d3
|
cluster: migrate to using pkg/rings for Addresses
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
187149c129
|
cluster: decouple RingID from WireguardInterfaceID
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
879ee69f07
|
Merge pull request #50
Reviewed-on: #50
|
6 months ago |
Nagy Károly Gábriel
|
932a41a3ac
|
Merge pull request 'cluster: use typed IDs, introduce Region.ID, and pre-compute primary region' (#49) from pr-amery-regions into main
Reviewed-on: #49
|
6 months ago |
Alejandro Mery
|
bcb20ab1e6
|
rings: introduce ring-specific decoders
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
96c59dfe8a
|
rings: introduce a generic DecodeAddress() for all four rings
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
169a1e9602
|
rings: introduce RingID and its values
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
982e16581c
|
cluster: pre-compute Zone's primary region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
cede95e119
|
cluster: run initRegions() before scanZoneIDs()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
14e1c447c9
|
cluster: assign valid rings.RegionID to each primary region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
99dece1e43
|
cluster: use rings.ZoneID and rings.NodeID types
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
6d89e0ea3c
|
rings: fix NodeZeroMax/NodeMax to not accept .255
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
ff8f2c6ea1
|
rings: add String() to RegionID, ZoneID, NodeID
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
83921c1e13
|
build-sys: use revive 1.3.7 instead of master
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Nagy Károly Gábriel
|
e1186975a6
|
Merge pull request 'rings: Prefix and Address factories' (#48) from pr-amery-rings into main
Reviewed-on: #48
|
6 months ago |
Alejandro Mery
|
72a2468a10
|
rings: RingTwoPrefix()
Ring 2 is the service network shared by all kubernetes clusters.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
6142d0f7f0
|
rings: RingThreePrefix()
Ring 3 corresponds to the pods of the kubernetes cluster of a region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
0f177acf57
|
rings: RingZeroPrefix()/RingZeroAddress()
Ring zero corresponds to the backbone that connects all zones.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
394a84c3ab
|
rings: RingOnePrefix()/RingOneAddress()
Ring one designates the (virtual) local network of a zone
within a region.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
52e1195139
|
rings: introduce generic ErrOutOfRange() factory
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
378bab2f96
|
rings: introduce RegionID, ZoneID and NodeID
and a Valid() method to check if their value is within the
valid range.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
f45a8f21f3
|
Merge pull request 'rings: PrefixToRange(), AddrToU32(), AddrFromU32()' (#46)
Reviewed-on: #46
|
6 months ago |
Alejandro Mery
|
686e6f2f73
|
Merge in pull request #47 (chores)
build-sys: update dependencies and fix revive's installation
|
6 months ago |
Alejandro Mery
|
199ef88a65
|
build-sys: update dependencies
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
addf138d36
|
build-sys: fix `revive` installation
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
3e90c7a30b
|
rings: introduce PrefixToRange()
returning the beginning and end of a subnet
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
50436a320c
|
rings: introduce AddrToU32() and AddrFromU32() helpers
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
ac5827898b
|
rings: introduce subpackage to deal with Ring addresses
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
f854d87b16
|
Merge pull request 'env: export REGIONS and ZONE{zoneID}_REGION' (#45) from pr-amery-env-regions into main
Reviewed-on: #45
|
8 months ago |
Alejandro Mery
|
fefbfa16a2
|
env: export ZONE{zoneID}_REGION
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
8 months ago |
Alejandro Mery
|
7986e0fd3b
|
env: add REGIONS list to output
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
8 months ago |
Alejandro Mery
|
3ba721bf7f
|
env: add []string writer
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
8 months ago |
Alejandro Mery
|
e410797413
|
env: use foo= instead of foo="" for empty variables
to improve readability
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
8 months ago |