Skip to content

Commit

Permalink
Config for unreachable machines on dead hosts is incomplete (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra authored Aug 13, 2024
1 parent 12c9d21 commit 7de2582
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ type Machine struct {
Config *MachineConfig `json:"config,omitempty"`
Events []*MachineEvent `json:"events,omitempty"`
Checks []*MachineCheckStatus `json:"checks,omitempty"`
HostStatus HostStatus `json:"host_status,omitempty" enums:"ok,unknown,unreachable"`
LeaseNonce string `json:"nonce,omitempty"`
HostStatus HostStatus `json:"host_status,omitempty" enums:"ok,unknown,unreachable"`

// When `host_status` isn't "ok", the config can't be fully retrieved and has to be rebuilt from multiple sources
// to form an partial configuration, not suitable to clone or recreate the original machine
IncompleteConfig *MachineConfig `json:"incomplete_config,omitempty"`
}

func (m *Machine) FullImageRef() string {
Expand Down

0 comments on commit 7de2582

Please sign in to comment.