use label selector const

This commit is contained in:
Luke K 2020-04-27 15:03:14 +00:00
parent 0022829269
commit 2afed9a7d2
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
1 changed files with 1 additions and 1 deletions

View File

@ -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