func (cf *Configuration) List(clientset *client.ConfigSet) (*servingv1.ConfigurationList, error) {
	return clientset.Serving.ServingV1().Configurations(cf.Namespace).List(context.Background(), metav1.ListOptions{})
}
List returns k8s list object
package configuration
import (
	"context"
	"fmt"
	"time"
	"github.com/triggermesh/tm/pkg/client"
	"github.com/triggermesh/tm/pkg/printer"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/util/duration"
	servingv1 "knative.dev/serving/pkg/apis/serving/v1"
)
func (cf *Configuration) GetTable(list *servingv1.ConfigurationList) printer.Table {
	table := printer.Table{
		Headers: []string{
			"Namespace",
			"Name",
			"Age",
			"Ready",
			"Reason",
		},
		Rows: make([][]string, 0, len(list.Items)),
	}
	for _, item := range list.Items {
		table.Rows = append(table.Rows, cf.row(&item))
	}
	return table
}
func (cf *Configuration) row(item *servingv1.Configuration) []string {
	name := item.Name
	namespace := item.Namespace
	age := duration.HumanDuration(time.Since(item.GetCreationTimestamp().Time))
	ready := fmt.Sprintf("%v", item.IsReady())
	readyCondition := item.Status.GetCondition(servingv1.ConfigurationConditionReady)
	reason := ""
	if readyCondition != nil {
		reason = readyCondition.Reason
	}
	row := []string{
		namespace,
		name,
		age,
		ready,
		reason,
	}
	return row
}