Skip to content

Commit e0127b4

Browse files
authored
Update informer.ts
1 parent 14b6d48 commit e0127b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/informer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export function makeInformer<T extends KubernetesObject>(
4444
path: string,
4545
listPromiseFn: ListPromise<T>,
4646
labelSelector?: string,
47+
fieldSelector?: string,
4748
): Informer<T> & ObjectCache<T> {
4849
const watch = new Watch(kubeconfig);
49-
return new ListWatch<T>(path, watch, listPromiseFn, false, labelSelector);
50+
return new ListWatch<T>(path, watch, listPromiseFn, false, labelSelector, fieldSelector);
5051
}

0 commit comments

Comments
 (0)