Skip to content

Commit

Permalink
Merge pull request #80689 from Pothulapati/inotify
Browse files Browse the repository at this point in the history
Switch to k8s.io/utils/inotify
  • Loading branch information
k8s-ci-robot committed Aug 8, 2019
2 parents 19e85a9 + e3c21d6 commit 6d49d69
Show file tree
Hide file tree
Showing 10 changed files with 416 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/kubelet/app/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ go_library(
"//vendor/k8s.io/utils/exec:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/sigma/go-inotify:go_default_library",
"//vendor/k8s.io/utils/inotify:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//pkg/windows/service:go_default_library",
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubelet/app/server_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ limitations under the License.
package app

import (
"github.com/sigma/go-inotify"
"k8s.io/klog"
"k8s.io/utils/inotify"
)

func watchForLockfileContention(path string, done chan struct{}) error {
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ require (
github.com/robfig/cron v1.1.0
github.com/russross/blackfriday v1.5.2
github.com/seccomp/libseccomp-golang v0.9.1 // indirect
github.com/sigma/go-inotify v0.0.0-20181102212354-c87b6cf5033d
github.com/sigma/go-inotify v0.0.0-20181102212354-c87b6cf5033d // indirect
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
github.com/spf13/afero v1.2.2
github.com/spf13/cobra v0.0.4
Expand Down
1 change: 1 addition & 0 deletions vendor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ filegroup(
"//vendor/k8s.io/utils/buffer:all-srcs",
"//vendor/k8s.io/utils/clock:all-srcs",
"//vendor/k8s.io/utils/exec:all-srcs",
"//vendor/k8s.io/utils/inotify:all-srcs",
"//vendor/k8s.io/utils/integer:all-srcs",
"//vendor/k8s.io/utils/io:all-srcs",
"//vendor/k8s.io/utils/keymutex:all-srcs",
Expand Down
23 changes: 23 additions & 0 deletions vendor/k8s.io/utils/inotify/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/k8s.io/utils/inotify/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/k8s.io/utils/inotify/PATENTS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/k8s.io/utils/inotify/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d49d69

Please sign in to comment.