cluster: introduce Machine.Inactive flag #38
Reference in New Issue
Block a user
Delete Branch "pr-amery-dns-ignore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
reflected on disk as
noneon a file namedregionthese machines won't be included in the regional or zonal aliases
see comments
@@ -15,6 +15,7 @@ type Machine struct {ID intName string `json:"-" yaml:"-"`Inactive bool `json:"inactive,omitempty" yaml:"inactive,omitempty"`Please name the field
ActiveActivebreaks zero-value rules, everything would become inactive by default@@ -46,0 +48,4 @@func (m *Machine) Active() bool {return !m.Inactive}@@ -85,0 +99,4 @@for _, r := range data {switch r {case "none":m.Inactive = trueplease see above s/Inactive/Active/ and switch logic.
@@ -33,3 +33,3 @@z.ForEachMachine(func(p *Machine) bool {term = fn(p)if p.Active() {@karasz it's currently called Inactive to deal with the zero value. Active by default, otherwise indicated.
Machine.Active()renamed toMachine.IsActive()LGTM