Update watch.go

This commit is contained in:
up9-github 2021-04-22 13:19:43 +03:00
parent 99bf92a699
commit 129e7c9488

View File

@ -9,9 +9,6 @@ import (
"k8s.io/apimachinery/pkg/watch"
)
// FilteredWatch starts listening to Kubernetes events and emits modified
// containers/pods. The first result is targets added, the second is targets
// removed
func FilteredWatch(ctx context.Context, watcher watch.Interface, podFilter *regexp.Regexp) (chan *corev1.Pod, chan *corev1.Pod, chan *corev1.Pod, chan error) {
addedChan := make(chan *corev1.Pod)
modifiedChan := make(chan *corev1.Pod)