migrated to external IP allocator
This commit is contained in:
parent
8672452033
commit
e2449b425e
15 changed files with 478 additions and 194 deletions
|
|
@ -48,11 +48,8 @@ func Validate(c *Config) error {
|
|||
if c.HAProxyService == "" {
|
||||
c.HAProxyService = HAProxyService
|
||||
}
|
||||
if len(c.VIP.VirtualIPs) == 0 {
|
||||
return errors.New("missing server.virtualIPs config")
|
||||
}
|
||||
if c.VIP.Gateway == "" {
|
||||
return errors.New("missing server.gateway config")
|
||||
if c.VIP.Prefix == "" {
|
||||
return errors.New("missing server.prefix config")
|
||||
}
|
||||
if c.LeaderHook != "" {
|
||||
if !filepath.IsAbs(c.LeaderHook) {
|
||||
|
|
@ -154,10 +151,9 @@ type Server struct {
|
|||
}
|
||||
|
||||
type VIP struct {
|
||||
VirtualIPs []string `yaml:"virtualIPs"`
|
||||
Gateway string `yaml:"gateway"`
|
||||
Interface string `yaml:"interface,omitempty"`
|
||||
Label string `yaml:"label,omitempty"`
|
||||
Prefix string `yaml:"prefix"`
|
||||
Interface string `yaml:"interface,omitempty"`
|
||||
Label string `yaml:"label,omitempty"`
|
||||
}
|
||||
|
||||
type BasicAuth struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue