etcd-operator/spec.go

13 строки
433 B
Go

package main
type Spec struct {
// Size is the expected size of the etcd cluster.
// The controller will eventually make the size of the running
// cluster equal to the expected size.
// The vaild range of the size is from 1 to 7.
Size int `json:"size"`
// AntiAffinity determines if the controller tries to avoid putting
// the etcd members in the same cluster onto the same node.
AntiAffinity bool `json:"antiAffinity"`
}