Enable import-boss check for integration test

Integration tests imported e2e test code and the dependency made two drawbacks:

- Hard to move test/e2e/framework into staging (#74352)
- Need to run integration tests always even if PRs are just changing e2e test code

This enables import-boss check for blocking such dependency.
This commit is contained in:
Kenichi Omichi 2020-03-18 21:23:14 +00:00
parent 933c303592
commit 03c7bdcacc
2 changed files with 15 additions and 1 deletions

View File

@ -30,7 +30,13 @@ kube::golang::setup_env
make -C "${KUBE_ROOT}" WHAT=vendor/k8s.io/code-generator/cmd/import-boss
packages=("k8s.io/kubernetes/pkg/..." "k8s.io/kubernetes/cmd/..." "k8s.io/kubernetes/plugin/..." "k8s.io/kubernetes/test/e2e/framework/...")
packages=(
"k8s.io/kubernetes/pkg/..."
"k8s.io/kubernetes/cmd/..."
"k8s.io/kubernetes/plugin/..."
"k8s.io/kubernetes/test/e2e/framework/..."
"k8s.io/kubernetes/test/integration/..."
)
for d in staging/src/k8s.io/*/; do
if [ -d "$d" ]; then
packages+=("./vendor/${d#"staging/src/"}...")

View File

@ -0,0 +1,8 @@
{
"Rules": [
{
"SelectorRegexp": "k8s[.]io/kubernetes/test/e2e",
"AllowedPrefixes": []
}
]
}