diff --git a/api/testtriggers/v1/testtrigger_types.go b/api/testtriggers/v1/testtrigger_types.go index d0732e15..bdb47b87 100644 --- a/api/testtriggers/v1/testtrigger_types.go +++ b/api/testtriggers/v1/testtrigger_types.go @@ -63,6 +63,8 @@ type TestTriggerSpec struct { // +kubebuilder:validation:Type:=string // +kubebuilder:validation:Format:=duration Delay *metav1.Duration `json:"delay,omitempty"` + // whether test trigger is disabled + Disabled bool `json:"disabled,omitempty"` } // TestTriggerResource defines resource for test triggers diff --git a/config/crd/bases/tests.testkube.io_testtriggers.yaml b/config/crd/bases/tests.testkube.io_testtriggers.yaml index ab8375af..574fff55 100644 --- a/config/crd/bases/tests.testkube.io_testtriggers.yaml +++ b/config/crd/bases/tests.testkube.io_testtriggers.yaml @@ -115,6 +115,9 @@ spec: the test be delayed after a trigger is matched format: duration type: string + disabled: + description: whether test trigger is disabled + type: boolean event: description: On which Event for a Resource should an Action be triggered enum: