Skip to content

Commit

Permalink
chore(k8sprobe): Adding label-selector field in k8sprobe (#269) (#270)
Browse files Browse the repository at this point in the history
Signed-off-by: shubhamchaudhary <[email protected]>
  • Loading branch information
uditgaurav authored Sep 18, 2020
1 parent 7ac84dd commit c5e67ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deploy/chaos_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ spec:
type: string
fieldSelector:
type: string
labelSelector:
type: string
expectedResult:
type: string
runProperties:
Expand Down
2 changes: 2 additions & 0 deletions deploy/crds/chaosengine_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ spec:
type: string
fieldSelector:
type: string
labelSelector:
type: string
expectedResult:
type: string
runProperties:
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/litmuschaos/v1alpha1/chaosengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ type K8sCommand struct {
Resource string `json:"resource,omitempty"`
// namespace of the resource
Namespace string `json:"namespace,omitempty"`
// fieldselector to get the details
// fieldselector to get the resource using fields selector
FieldSelector string `json:"fieldSelector,omitempty"`
// labelselector to get the resource using labels selector
LabelSelector string `json:"labelSelector,omitempty"`
}

//CmdProbeInputs contains all the inputs required for cmd probe
Expand Down

0 comments on commit c5e67ff

Please sign in to comment.