
Automatic merge from submit-queue (batch tested with PRs 51805, 51725, 50925, 51474, 51638) Flexvolume dynamic plugin discovery: Prober unit tests and basic e2e test. **What this PR does / why we need it**: Tests for changes introduced in PR #50031 . As part of the prober unit test, I mocked filesystem, filesystem watch, and Flexvolume plugin initialization. Moved the filesystem event goroutine to watcher implementation. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #51147 **Special notes for your reviewer**: First commit contains added functionality of the mock filesystem. Second commit is the refactor for moving mock filesystem into a common util directory. Third commit is the unit and e2e tests. **Release note**: ```release-note NONE ``` /release-note-none /sig storage /assign @saad-ali @liggitt /cc @mtaufen @chakri-nelluri @wongma7
72 lines
2.3 KiB
Python
72 lines
2.3 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//pkg/util/async:all-srcs",
|
|
"//pkg/util/bandwidth:all-srcs",
|
|
"//pkg/util/config:all-srcs",
|
|
"//pkg/util/configz:all-srcs",
|
|
"//pkg/util/dbus:all-srcs",
|
|
"//pkg/util/ebtables:all-srcs",
|
|
"//pkg/util/env:all-srcs",
|
|
"//pkg/util/file:all-srcs",
|
|
"//pkg/util/filesystem:all-srcs",
|
|
"//pkg/util/flock:all-srcs",
|
|
"//pkg/util/goroutinemap:all-srcs",
|
|
"//pkg/util/hash:all-srcs",
|
|
"//pkg/util/initsystem:all-srcs",
|
|
"//pkg/util/interrupt:all-srcs",
|
|
"//pkg/util/io:all-srcs",
|
|
"//pkg/util/ipconfig:all-srcs",
|
|
"//pkg/util/iptables:all-srcs",
|
|
"//pkg/util/ipvs:all-srcs",
|
|
"//pkg/util/keymutex:all-srcs",
|
|
"//pkg/util/labels:all-srcs",
|
|
"//pkg/util/limitwriter:all-srcs",
|
|
"//pkg/util/maps:all-srcs",
|
|
"//pkg/util/metrics:all-srcs",
|
|
"//pkg/util/mount:all-srcs",
|
|
"//pkg/util/net:all-srcs",
|
|
"//pkg/util/netsh:all-srcs",
|
|
"//pkg/util/node:all-srcs",
|
|
"//pkg/util/oom:all-srcs",
|
|
"//pkg/util/parsers:all-srcs",
|
|
"//pkg/util/pointer:all-srcs",
|
|
"//pkg/util/procfs:all-srcs",
|
|
"//pkg/util/reflector/prometheus:all-srcs",
|
|
"//pkg/util/removeall:all-srcs",
|
|
"//pkg/util/resourcecontainer:all-srcs",
|
|
"//pkg/util/rlimit:all-srcs",
|
|
"//pkg/util/selinux:all-srcs",
|
|
"//pkg/util/slice:all-srcs",
|
|
"//pkg/util/strings:all-srcs",
|
|
"//pkg/util/sysctl:all-srcs",
|
|
"//pkg/util/system:all-srcs",
|
|
"//pkg/util/tail:all-srcs",
|
|
"//pkg/util/taints:all-srcs",
|
|
"//pkg/util/template:all-srcs",
|
|
"//pkg/util/term:all-srcs",
|
|
"//pkg/util/threading:all-srcs",
|
|
"//pkg/util/tolerations:all-srcs",
|
|
"//pkg/util/version:all-srcs",
|
|
"//pkg/util/workqueue/prometheus:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
)
|
|
|
|
sh_test(
|
|
name = "verify-util-pkg",
|
|
size = "small",
|
|
srcs = ["verify-util-pkg.sh"],
|
|
data = glob(["*.go"]),
|
|
)
|