Skip to content

Commit 768e1b1

Browse files
NageshbansalAlvaroGG0
authored andcommitted
Support taints and tolerations for source cmd Probe (#483)
* Support tolerations for source cmd Probe Signed-off-by: nagesh bansal <[email protected]> Signed-off-by: Alvaro Gutierrez <[email protected]>
1 parent 6f1586e commit 768e1b1

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

api/litmuschaos/v1alpha1/chaosengine_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ type SourceDetails struct {
302302
Privileged bool `json:"privileged,omitempty"`
303303
// NodeSelector for the source pod
304304
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
305+
// Tolerations for the source pod
306+
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
305307
// Volumes for the source pod
306308
Volumes []corev1.Volume `json:"volumes,omitempty"`
307309
// VolumesMount for the source pod

api/litmuschaos/v1alpha1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/chaos_crds.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,29 @@ spec:
576576
type: string
577577
description: NodeSelector for the source pod
578578
type: object
579+
tolerations:
580+
description: Tolerations for the source pod
581+
items:
582+
description: The pod with this Toleration tolerates any taint matches the <key,value,effect> using the matching operator <operator>.
583+
properties:
584+
effect:
585+
description: Effect to match. Empty means all effects.
586+
type: string
587+
key:
588+
description: Taint key the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
589+
type: string
590+
operator:
591+
description: Operators are Exists or Equal. Defaults to Equal.
592+
type: string
593+
tolerationSeconds:
594+
description: Period of time the toleration tolerates the taint.
595+
format: int64
596+
type: integer
597+
value:
598+
description: If the operator is Exists, the value should be empty, otherwise just a regular string.
599+
type: string
600+
type: object
601+
type: array
579602
privileged:
580603
description: Privileged for the source pod
581604
type: boolean

deploy/crds/chaosengine_crd.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,29 @@ spec:
575575
type: string
576576
description: NodeSelector for the source pod
577577
type: object
578+
tolerations:
579+
description: Tolerations for the source pod
580+
items:
581+
description: The pod with this Toleration tolerates any taint matches the <key,value,effect> using the matching operator <operator>.
582+
properties:
583+
effect:
584+
description: Effect to match. Empty means all effects.
585+
type: string
586+
key:
587+
description: Taint key the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
588+
type: string
589+
operator:
590+
description: Operators are Exists or Equal. Defaults to Equal.
591+
type: string
592+
tolerationSeconds:
593+
description: Period of time the toleration tolerates the taint.
594+
format: int64
595+
type: integer
596+
value:
597+
description: If the operator is Exists, the value should be empty, otherwise just a regular string.
598+
type: string
599+
type: object
600+
type: array
578601
privileged:
579602
description: Privileged for the source pod
580603
type: boolean

0 commit comments

Comments
 (0)