Skip to content

Commit

Permalink
fix: describe works without Eventing
Browse files Browse the repository at this point in the history
  • Loading branch information
matejvasek authored and lance committed Sep 10, 2020
1 parent 284b77f commit 6c16e65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion knative/describer.go
Expand Up @@ -2,6 +2,7 @@ package knative

import (
"fmt"
"k8s.io/apimachinery/pkg/api/errors"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -73,7 +74,8 @@ func (describer *Describer) Describe(name string) (description faas.Description,
}

triggers, err := eventingClient.Triggers(namespace).List(metav1.ListOptions{})
if err != nil {
// IsNotFound -- Eventing is probably not installed on the cluster
if err != nil && !errors.IsNotFound(err) {
return
}

Expand Down

0 comments on commit 6c16e65

Please sign in to comment.