Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NetworkChaosGVK = schema.GroupVersionKind{ Group: "chaos-mesh.org", Version: "v1alpha1", Kind: "NetworkChaos", } PodChaosGVK = schema.GroupVersionKind{ Group: "chaos-mesh.org", Version: "v1alpha1", Kind: "PodChaos", } IOChaosGVK = schema.GroupVersionKind{ Group: "chaos-mesh.org", Version: "v1alpha1", Kind: "IOChaos", } KernelChaosGVK = schema.GroupVersionKind{ Group: "chaos-mesh.org", Version: "v1alpha1", Kind: "KernelChaos", } TimeChaosGVK = schema.GroupVersionKind{ Group: "chaos-mesh.org", Version: "v1alpha1", Kind: "TimeChaos", } )
Functions ¶
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 GenericFault ¶ added in v1.0.22
type GenericFault = unstructured.Unstructured
Source Files
¶
Click to show internal directories.
Click to hide internal directories.