Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsPartition ¶
func AsPartition(fault *Fault)
Types ¶
type Condition ¶
type Condition struct { Type ConditionType Status corev1.ConditionStatus Reason string }
type ConditionType ¶
type ConditionType string
ConditionType ...
const ( // ConditionSelected indicates the chaos experiment had correctly selected the target pods // where to inject chaos actions. ConditionSelected ConditionType = "Selected" // ConditionAllInjected indicates the faults have been successfully injected to all target pods. ConditionAllInjected ConditionType = "AllInjected" // ConditionAllRecovered indicates the injected faults have been successfully restored from all target pods. ConditionAllRecovered ConditionType = "AllRecovered" // ConditionPaused indicates the chaos experiment is in the "Paused" step. ConditionPaused ConditionType = "Paused" )
type Controller ¶
Controller reconciles a Reference object
func (*Controller) Finalizer ¶
func (r *Controller) Finalizer() string
func (*Controller) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*Controller) Watchers ¶
func (r *Controller) Watchers() predicate.Funcs
type DesiredPhase ¶
type DesiredPhase string
const ( // RunningPhase target is to make all selected targets (container or pod) into "Injected" phase. RunningPhase DesiredPhase = "Run" // StoppedPhase target is to make all selected targets (container or pod) into "NotInjected" phase. StoppedPhase DesiredPhase = "Stop" )
func (DesiredPhase) Run ¶
func (d DesiredPhase) Run() bool
func (DesiredPhase) Stop ¶
func (d DesiredPhase) Stop() bool
type ExperimentStatus ¶
type ExperimentStatus struct {
DesiredPhase `mapstructure:",omitempty"`
}
type Fault ¶
type Fault = unstructured.Unstructured
Click to show internal directories.
Click to hide internal directories.