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 }