mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
use k8s.io/utils/inotify instead of github.com/go-sigma/inotify
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
This commit is contained in:
parent
28e88e3f19
commit
f4e2907477
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user