config

package
v0.0.0-...-7c8b764 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Currently, there does not appear to be
	// any value in making these configurable
	// so defining them as consts
	IdentLabelKey        = "kube-monkey/identifier"
	EnabledLabelKey      = "kube-monkey/enabled"
	EnabledLabelValue    = "enabled"
	MtbfLabelKey         = "kube-monkey/mtbf"
	KillTypeLabelKey     = "kube-monkey/kill-mode"
	KillValueLabelKey    = "kube-monkey/kill-value"
	KillRandomLabelValue = "random-max-percent"
	KillFixedLabelValue  = "fixed"
	KillAllLabelValue    = "kill-all"
)

Variables

This section is empty.

Functions

func BlacklistEnabled

func BlacklistEnabled() bool

func BlacklistedNamespaces

func BlacklistedNamespaces() sets.String

func ClusterAPIServerHost

func ClusterAPIServerHost() (string, bool)

func DebugEnabled

func DebugEnabled() bool

func DebugForceShouldKill

func DebugForceShouldKill() bool

func DebugScheduleDelay

func DebugScheduleDelay() time.Duration

func DebugScheduleImmediateKill

func DebugScheduleImmediateKill() bool

func DryRun

func DryRun() bool

func EndHour

func EndHour() int

func GracePeriodSeconds

func GracePeriodSeconds() *int64

func Init

func Init() error

func IsValidHour

func IsValidHour(hour int) bool

func RunHour

func RunHour() int

func SetDefaults

func SetDefaults()

func StartHour

func StartHour() int

func Timezone

func Timezone() *time.Location

func ValidateConfigs

func ValidateConfigs() error

func WhitelistEnabled

func WhitelistEnabled() bool

func WhitelistedNamespaces

func WhitelistedNamespaces() sets.String

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL