mirror of https://github.com/knative/func.git
use label selector const
This commit is contained in:
parent
0022829269
commit
2afed9a7d2
|
@ -30,7 +30,7 @@ func NewLister(namespace string) (l *Lister, err error) {
|
|||
}
|
||||
|
||||
func (l *Lister) List() (names []string, err error) {
|
||||
opts := metav1.ListOptions{LabelSelector: "bosonFunction"}
|
||||
opts := metav1.ListOptions{LabelSelector: labelSelector}
|
||||
lst, err := l.client.Services(l.namespace).List(opts)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue