Skip to content

Commit

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

Signed-off-by: Dibyo Mukherjee <[email protected]>
  • Loading branch information
dibyom authored and tekton-robot committed Oct 25, 2021
1 parent eebe7e3 commit 4a9db17
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 4a9db17

Please sign in to comment.