Skip to content

Commit

Permalink
chore(Probes): Probe enhancements for cmdProbe as a source (#398)
Browse files Browse the repository at this point in the history
* updatating chaosengine specs for cmdProbe

Signed-off-by: Oum Kale <oumkale@chaosnative.com>

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
  • Loading branch information
oumkale committed Jul 14, 2022
1 parent 66fee1f commit 725f093
Show file tree
Hide file tree
Showing 4 changed files with 3,604 additions and 10 deletions.
22 changes: 21 additions & 1 deletion api/litmuschaos/v1alpha1/chaosengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,31 @@ type CmdProbeInputs struct {

// SourceDetails contains source details of the cmdProbe
type SourceDetails struct {
// Image of the source pod
// Image for the source pod
Image string `json:"image,omitempty"`
// HostNetwork define the hostNetwork of the external pod
// it supports boolean values and default value is false
HostNetwork bool `json:"hostNetwork,omitempty"`
// Args for the source pod
Args []string `json:"args,omitempty"`
// ENVList contains ENV passed to the source pod
ENVList []corev1.EnvVar `json:"env,omitempty"`
// Labels for the source pod
Labels map[string]string `json:"labels,omitempty"`
// Annotations for the source pod
Annotations map[string]string `json:"annotations,omitempty"`
// Command for the source pod
Command []string `json:"command,omitempty"`
// ImagePullPolicy for the source pod
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
// Privileged for the source pod
Privileged bool `json:"privileged,omitempty"`
// NodeSelector for the source pod
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// Volumes for the source pod
Volumes []corev1.Volume `json:"volumes,omitempty"`
// VolumesMount for the source pod
VolumesMount []corev1.VolumeMount `json:"volumeMount,omitempty"`
}

//PromProbeInputs contains all the inputs required for prometheus probe
Expand Down
60 changes: 57 additions & 3 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

0 comments on commit 725f093

Please sign in to comment.