Skip to content

Commit

Permalink
Add omitempty tag for TriggerGroups type
Browse files Browse the repository at this point in the history
Addresses comment: #1232 (comment)

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
(cherry picked from commit 4a9db17)
  • Loading branch information
dibyom authored and tekton-robot committed Nov 3, 2021
1 parent 5a12a32 commit 70f5497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/triggers/v1beta1/event_listener_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ var _ kmeta.OwnerRefable = (*EventListener)(nil)
// by a list of Triggers.
type EventListenerSpec struct {
ServiceAccountName string `json:"serviceAccountName,omitempty"`
Triggers []EventListenerTrigger `json:"triggers"`
Triggers []EventListenerTrigger `json:"triggers,omitempty"`
// Trigger groups allow for centralized processing of an interceptor chain
TriggerGroups []EventListenerTriggerGroup `json:"triggerGroups"`
TriggerGroups []EventListenerTriggerGroup `json:"triggerGroups,omitempty"`
NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty"`
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
Resources Resources `json:"resources,omitempty"`
Expand Down

0 comments on commit 70f5497

Please sign in to comment.