Skip to content

Commit

Permalink
Set Default of IsMultiNS to false in EL reconciler
Browse files Browse the repository at this point in the history
Setting Default of IsMultiNS to false instead of true. IsMultiNS is
set to true only when we get Selectors
  • Loading branch information
khrm authored and tekton-robot committed Nov 23, 2020
1 parent b7d089d commit 5a08634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/reconciler/v1alpha1/eventlistener/eventlistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ func getContainer(el *v1alpha1.EventListener) corev1.Container {
scheme = corev1.URISchemeHTTP
}

isMultiNS := true
if len(el.Spec.NamespaceSelector.MatchNames) == 0 {
isMultiNS = false
isMultiNS := false
if len(el.Spec.NamespaceSelector.MatchNames) != 0 {
isMultiNS = true
}

return corev1.Container{
Expand Down

0 comments on commit 5a08634

Please sign in to comment.