Alejandro Mery
|
982e16581c
|
cluster: pre-compute Zone's primary region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
cede95e119
|
cluster: run initRegions() before scanZoneIDs()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
14e1c447c9
|
cluster: assign valid rings.RegionID to each primary region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
99dece1e43
|
cluster: use rings.ZoneID and rings.NodeID types
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
6d89e0ea3c
|
rings: fix NodeZeroMax/NodeMax to not accept .255
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
ff8f2c6ea1
|
rings: add String() to RegionID, ZoneID, NodeID
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 months ago |
Alejandro Mery
|
83921c1e13
|
build-sys: use revive 1.3.7 instead of master
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 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
|
4 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>
|
4 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>
|
4 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>
|
4 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>
|
4 months ago |
Alejandro Mery
|
52e1195139
|
rings: introduce generic ErrOutOfRange() factory
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 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>
|
4 months ago |
Alejandro Mery
|
f45a8f21f3
|
Merge pull request 'rings: PrefixToRange(), AddrToU32(), AddrFromU32()' (#46)
Reviewed-on: #46
|
4 months ago |
Alejandro Mery
|
686e6f2f73
|
Merge in pull request #47 (chores)
build-sys: update dependencies and fix revive's installation
|
4 months ago |
Alejandro Mery
|
199ef88a65
|
build-sys: update dependencies
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
addf138d36
|
build-sys: fix `revive` installation
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
3e90c7a30b
|
rings: introduce PrefixToRange()
returning the beginning and end of a subnet
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
50436a320c
|
rings: introduce AddrToU32() and AddrFromU32() helpers
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
ac5827898b
|
rings: introduce subpackage to deal with Ring addresses
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 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
|
6 months ago |
Alejandro Mery
|
fefbfa16a2
|
env: export ZONE{zoneID}_REGION
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
7986e0fd3b
|
env: add REGIONS list to output
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
3ba721bf7f
|
env: add []string writer
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 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>
|
6 months ago |
Nagy Károly Gábriel
|
3fdbb6f867
|
Merge pull request 'cluster: introduce RegionIterator, Zone.ForEachRegion and decouple getRegion from finishRegion' (#43) from pr-amery-regioniter into main
Reviewed-on: #43
|
6 months ago |
Alejandro Mery
|
0158dc3a3c
|
cluster: add recursive RegionIterator to Zone
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
9226cf2dfd
|
cluster: introduce RegionIterator
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
173dba0c3b
|
cluster: decouple getRegion() from finishRegion()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Nagy Károly Gábriel
|
3a2a20a611
|
Merge pull request 'cluster: introduce Region.Cluser and m/{region}/k8s_token to store a cluster's token' (#42) from pr-amery-k8s_token into main
Reviewed-on: #42
|
6 months ago |
Alejandro Mery
|
019143820f
|
cluster: remove k8s_token files from zones on write if found
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
d3bbe6d270
|
cluster: introduce Region.Cluster and m/{region}/k8s_token
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
7125e28b74
|
cluster: extend usage of the ZoneRegionsFileName constant
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Nagy Károly Gábriel
|
7f5ac151c8
|
Merge pull request 'wireguard: switch from gcfg to asciigoat.org/ini/basic' (#8) from pr-amery-wireguard-ini into main
Reviewed-on: #8
|
6 months ago |
Nagy Károly Gábriel
|
28bcaa2838
|
Merge pull request 'jpictl: add --version and version command' (#44) from pr-amery-version into main
Reviewed-on: #44
|
6 months ago |
Nagy Károly Gábriel
|
3cafb1a4e2
|
Merge pull request 'ceph: prevent osd label update on startup' (#41) from pr-amery-ceph into main
Reviewed-on: #41
|
6 months ago |
Alejandro Mery
|
09bec11506
|
jpictl: add --version and version command
from `git describe` using go:generate and embed
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
14686ff5a8
|
ceph: prevent osd label update on startup
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
3c24e24d71
|
wireguard: switch from gcfg to asciigoat.org/ini/basic
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
45dc2291bf
|
Merge pull request 'remove unused arguments and update dependencies' (#40) from pr-amery-chores into main
Reviewed-on: #40
|
6 months ago |
Alejandro Mery
|
b019d303d4
|
chore: update dependencies
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
f64f4e08fe
|
cluster: remove unused variables on scan option factories
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
cf09cfa743
|
Merge pull request 'cluster: handle regions on filesystem' (#39)
Reviewed-on: #39
|
11 months ago |
Alejandro Mery
|
00cf3959a2
|
cluster: load regions when scanning a directory
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
11 months ago |
Alejandro Mery
|
0db3e18227
|
cluster: introduce SyncRegions() to write regions file
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
11 months ago |
Alejandro Mery
|
0094450ca8
|
cluster: fix regions/zones mapping when the region exists
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
11 months ago |
Alejandro Mery
|
a910bba406
|
Merge pull request 'cluster: introduce Machine.Inactive flag' (#38)
Reviewed-on: #38
|
11 months ago |
Alejandro Mery
|
5ef6d45ef7
|
Merge pull request 'jpictl: fix cloud.yaml unmarshalling' (#32)
Reviewed-on: #32
|
11 months ago |
Alejandro Mery
|
99998dc7e8
|
cluster: mark Machine as Inactive if the "region" file contains "none"
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
11 months ago |