Documentation ¶
Index ¶
- Constants
- func BlacklistEnabled() bool
- func BlacklistedNamespaces() sets.String
- func ClusterAPIServerHost() (string, bool)
- func DebugEnabled() bool
- func DebugForceShouldKill() bool
- func DebugScheduleDelay() time.Duration
- func DebugScheduleImmediateKill() bool
- func DryRun() bool
- func EndHour() int
- func GracePeriodSeconds() *int64
- func Init() error
- func IsValidHour(hour int) bool
- func NotificationsEnabled() bool
- func NotificationsProxy() string
- func NotificationsReportSchedule() bool
- func RunHour() int
- func SetDefaults()
- func StartHour() int
- func Timezone() *time.Location
- func ValidateConfigs() error
- func WhitelistEnabled() bool
- func WhitelistedNamespaces() sets.String
- type Receiver
Constants ¶
View Source
const ( IdentLabelKey = "kube-monkey/identifier" EnabledLabelKey = "kube-monkey/enabled" EnabledLabelValue = "enabled" MtbfLabelKey = "kube-monkey/mtbf" KillTypeLabelKey = "kube-monkey/kill-mode" KillValueLabelKey = "kube-monkey/kill-value" KillRandomMaxLabelValue = "random-max-percent" KillFixedPercentageLabelValue = "fixed-percent" KillFixedLabelValue = "fixed" KillAllLabelValue = "kill-all" )
Variables ¶
This section is empty.
Functions ¶
func BlacklistEnabled ¶
func BlacklistEnabled() bool
func BlacklistedNamespaces ¶
func ClusterAPIServerHost ¶
func DebugEnabled ¶
func DebugEnabled() bool
func DebugForceShouldKill ¶
func DebugForceShouldKill() bool
func DebugScheduleDelay ¶
func DebugScheduleImmediateKill ¶
func DebugScheduleImmediateKill() bool
func GracePeriodSeconds ¶
func GracePeriodSeconds() *int64
func IsValidHour ¶
func NotificationsEnabled ¶ added in v0.4.0
func NotificationsEnabled() bool
func NotificationsProxy ¶ added in v0.4.0
func NotificationsProxy() string
func NotificationsReportSchedule ¶ added in v0.4.0
func NotificationsReportSchedule() bool
func SetDefaults ¶
func SetDefaults()
func ValidateConfigs ¶
func ValidateConfigs() error
func WhitelistEnabled ¶
func WhitelistEnabled() bool
func WhitelistedNamespaces ¶
Types ¶
type Receiver ¶ added in v0.4.0
type Receiver struct { Endpoint string `mapstructure:"endpoint"` Message string `mapstructure:"message"` Headers []string `mapstructure:"headers"` }
func NewReceiver ¶ added in v0.4.0
NewReceiver creates a new Receiver instance
func NotificationsAttacks ¶ added in v0.4.0
func NotificationsAttacks() Receiver
Click to show internal directories.
Click to hide internal directories.