mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
parent
933c303592
commit
03c7bdcacc
@ -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/"}...")
|
||||
|
8
test/integration/.import-restrictions
Normal file
8
test/integration/.import-restrictions
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"Rules": [
|
||||
{
|
||||
"SelectorRegexp": "k8s[.]io/kubernetes/test/e2e",
|
||||
"AllowedPrefixes": []
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user