Skip to content

Commit

Permalink
feat: disabled trigger flag (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin authored Jun 25, 2024
1 parent e96c168 commit 77e0cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/testtriggers/v1/testtrigger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/tests.testkube.io_testtriggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 77e0cc1

Please sign in to comment.