mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-07 21:59:15 +00:00
machine: make each machine the source of truth for its configuration, sync it to cluster store
This commit is contained in:
1 parent
0c42a7df65
commit
23d6b4409a
16 files changed
+1107
-868
No files matched your search
@@ -3,6 +3,7 @@ package machine
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/netip"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
@@ -25,6 +26,8 @@ type State struct {
|
||||
Name string
|
||||
// Network specifies the network configuration for this machine.
|
||||
Network *network.Config
|
||||
// PublicIP is this machine's advertised public IP for ingress. Zero value if unset.
|
||||
PublicIP netip.Addr `json:",omitempty"`
|
||||
// MinStoreVersion is the cluster store version this machine must reach before participating.
|
||||
// Per-actor vector (Corrosion actor UUID → max applied db_version) captured from an existing
|
||||
// member at join time. Cleared once reached.
|
||||
|
||||
Reference in new issue
Block a user