-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
types.go
51 lines (40 loc) · 1.29 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package ipfailover
import (
"github.com/openshift/origin/pkg/cmd/util/variable"
configcmd "github.com/openshift/origin/pkg/config/cmd"
)
const (
// DefaultName is the default IP Failover resource name.
DefaultName = "ipfailover"
// DefaultType is the default IP Failover type.
DefaultType = "keepalived"
// DefaultServicePort is the default service port.
DefaultServicePort = 1985
// DefaultWatchPort is the default IP Failover watched port number.
DefaultWatchPort = 80
// DefaultSelector is the default resource selector.
DefaultSelector = "ipfailover=<name>"
// DefaultIptablesChain is the default iptables chain on which to add
// a rule that accesses 224.0.0.18 (if none exists).
DefaultIptablesChain = "INPUT"
// DefaultInterface is the default network interface.
DefaultInterface = "eth0"
)
// IPFailoverConfigCmdOptions are options supported by the IP Failover admin command.
type IPFailoverConfigCmdOptions struct {
Action configcmd.BulkAction
Type string
ImageTemplate variable.ImageTemplate
Credentials string
ServicePort int
Selector string
Create bool
ServiceAccount string
// Failover options.
VirtualIPs string
IptablesChain string
NetworkInterface string
WatchPort int
VRRPIDOffset int
Replicas int32
}