-
Notifications
You must be signed in to change notification settings - Fork 17
/
configs.go
18 lines (16 loc) · 1007 Bytes
/
configs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main
import "time"
// Configs struct deals with env configuration
type Configs struct {
Interval time.Duration `env:"ROLLER_INTERVAL" envDefault:"30s"`
CheckDelay int `env:"ROLLER_CHECK_DELAY" envDefault:"30"`
Drain bool `env:"ROLLER_DRAIN" envDefault:"true"`
DrainForce bool `env:"ROLLER_DRAIN_FORCE" envDefault:"true"`
IncreaseMax bool `env:"ROLLER_CAN_INCREASE_MAX" envDefault:"false"`
IgnoreDaemonSets bool `env:"ROLLER_IGNORE_DAEMONSETS" envDefault:"true"`
DeleteLocalData bool `env:"ROLLER_DELETE_LOCAL_DATA" envDefault:"false"`
OriginalDesiredOnTag bool `env:"ROLLER_ORIGINAL_DESIRED_ON_TAG" envDefault:"false"`
ASGS []string `env:"ROLLER_ASG,required" envSeparator:","`
KubernetesEnabled bool `env:"ROLLER_KUBERNETES" envDefault:"true"`
Verbose bool `env:"ROLLER_VERBOSE" envDefault:"false"`
}