Alejandro Mery
401603f4be
chore: clear lint warnings
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
4 months ago
Alejandro Mery
99dece1e43
cluster: use rings.ZoneID and rings.NodeID types
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
5 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>
9 months ago
Alejandro Mery
892d849740
cluster: introduce Machine.Inactive flag
...
if a Machine is Inactive, it won't be included on the DNS
aliases for the zone or it's regions.
v2:
- Machine.Active() renamed to Machine.IsActive()
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
727fd67bc6
jpictl: add --domain/-D and --scan-dir/-d options
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
b8e1b321e5
jpictl: add `-S` flag to ignore the config file and always scan
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0c5429a681
jpictl: move verbosity handling to the log module
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
052f89152c
jpictl/dns: introduce add command to register new machines
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
440dcde50a
jpictl: introduce `jpictl dns show` command
...
to list dns entries
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c578990f8c
jpictl: refactor dns command initialization
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
99ae34e98c
chore: update darvaza.org/core to v0.10.0
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5d82de5535
jpictl: introduce `jpictl dns sync` to update public DNS records
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c33d0dab16
jpictl: refactor dns.Manager factory to support Provider data
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
eba0340e32
jpictl: introduce `jpictl dns write` command
...
it renders BIND config to describe the public view of the cluster
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
e9f9d474dc
jpictl: fix verbosity handling
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a0cc698a39
jpictl: introduce --config-file/-f as alternative to scanning m/
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
d0b0698c10
cluster: make domain, basedir and cluster name public fields
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
24059dc9ee
cluster: rename Zones to Cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5abb4c2f92
cluster: rename pkg/zones to pkg/cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Nagy Károly Gábriel
f6766547f9
jpictl: fixup the verbosity flag to obey line limit
...
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
1 year ago
Alejandro Mery
204f3a49a1
drop toml support
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Nagy Károly Gábriel
d1198328f6
jpictl: introduce log verbosity flag
...
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
1 year ago
Alejandro Mery
45447275a7
zones: introduce WithLogger() scan option
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a655603343
env: export FSID
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Nagy Károly Gábriel
3d5a766161
jpictl: introduce `gateway` command
...
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
1 year ago
Alejandro Mery
6e46d23b45
jpictl: only load Machine.PublicAddresses for `jpictl dump`
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
6ee848e6ca
jpictl: introduce `-e` for `jpictl env` to export variables
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
864eb02f9d
zones: turn Zones.WriteEnv() into Zones.Env().WriteTo()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
dfbb358187
jpictl: introduce `write` command rewriting all config files
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
26c49dff72
jpictl: refactor zones loading
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
202f2e6dfc
jpictl: change `dump` to default to YAML output
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
45b25c63d4
jpictl: refactor `dump` to support TOML, JSON and YAML
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0c0cba6fb5
jpictl: introduce `env` command
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
ee63e80f77
zones: add resolver and domain
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1b9ce9f688
jpictl: add `dump` command with toml output
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
f714210b37
jpictl: initial cmd placeholder
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago