Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions api/litmuschaos/v1alpha1/chaosengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,18 @@ type RunnerInfo struct {
// ExperimentList defines information about chaos experiments defined in the chaos engine
// These experiments are "pulled" as versioned charts from a "hub"
type ExperimentList struct {
//Name of the chaos experiment
// Name of the chaos experiment
Name string `json:"name"`
//Holds properties of an experiment listed in the engine
// Holds properties of an experiment listed in the engine
Spec ExperimentAttributes `json:"spec"`
// Image of the runner pod
Image string `json:"image,omitempty"`
// ImagePullPolicy for runner pod
ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
// Command for runner
Command []string `json:"command,omitempty"`
// Args of runner
Args []string `json:"args,omitempty"`
}

// ExperimentAttributes defines attributes of experiments
Expand Down Expand Up @@ -458,6 +466,12 @@ type ExperimentComponents struct {
StatusCheckTimeouts StatusCheckTimeout `json:"statusCheckTimeouts,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// SecurityContext holds security configuration that will be applied to a container
SecurityContext SecurityContext `json:"securityContext,omitempty"`
// HostPID is need to be provided in the chaos pod
HostPID bool `json:"hostPID,omitempty"`
// HostFileVolume defines the host directory/file to be mounted
HostFileVolumes []HostFile `json:"hostFileVolumes,omitempty"`
}

// StatusCheckTimeout contains Delay and timeouts for the status checks
Expand Down
4 changes: 2 additions & 2 deletions api/litmuschaos/v1alpha1/chaosresult_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
ResultPhaseRunning ResultPhase = "Running"
// ResultPhaseCompleted is phase of chaosresult which is in completed state
ResultPhaseCompleted ResultPhase = "Completed"
// Retained For Backward Compatibility: ResultPhaseCompletedWithError is phase of chaosresult when probe is failed in 3.0beta5
// ResultPhaseCompletedWithError Retained For Backward Compatibility: ResultPhaseCompletedWithError is phase of chaosresult when probe is failed in 3.0beta5
ResultPhaseCompletedWithError ResultPhase = "Completed_With_Error"
// ResultPhaseCompletedWithProbeFailure is phase of chaosresult when probe is failed from 3.0beta6
ResultPhaseCompletedWithProbeFailure ResultPhase = "Completed_With_Probe_Failure"
Expand Down Expand Up @@ -100,7 +100,7 @@ type TargetDetails struct {
ChaosStatus string `json:"chaosStatus,omitempty"`
}

// ProbeStatus defines information about the status and result of the probes
// ProbeStatuses ProbeStatus defines information about the status and result of the probes
type ProbeStatuses struct {
// Name defines the name of probe
Name string `json:"name,omitempty"`
Expand Down
16 changes: 16 additions & 0 deletions api/litmuschaos/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading