From f4e2907477b93007f6684471fa689f6d7b95edca Mon Sep 17 00:00:00 2001 From: Tarun Pothulapati Date: Sun, 28 Jul 2019 19:28:56 +0530 Subject: [PATCH] use k8s.io/utils/inotify instead of github.com/go-sigma/inotify Signed-off-by: Tarun Pothulapati --- cmd/kubelet/app/server_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubelet/app/server_linux.go b/cmd/kubelet/app/server_linux.go index 6f84afd9dfc..94b9105a283 100644 --- a/cmd/kubelet/app/server_linux.go +++ b/cmd/kubelet/app/server_linux.go @@ -17,7 +17,7 @@ limitations under the License. package app import ( - "github.com/sigma/go-inotify" + "k8s.io/utils/inotify" "k8s.io/klog" ) @@ -27,7 +27,7 @@ func watchForLockfileContention(path string, done chan struct{}) error { klog.Errorf("unable to create watcher for lockfile: %v", err) return err } - if err = watcher.AddWatch(path, inotify.IN_OPEN|inotify.IN_DELETE_SELF); err != nil { + if err = watcher.AddWatch(path, inotify.InOpen|inotify.InDeleteSelf); err != nil { klog.Errorf("unable to watch lockfile: %v", err) return err }