add import-restrictions to apiextensions-apiserver/pkg/apis,v1 and v1beta1

This commit is contained in:
Elijah Oyekunle 2020-01-28 10:49:55 +01:00
parent 07e3cca6d0
commit db19fc9427
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
inverseRules:
# Allow Internal packages only in apiextensions-apiserver itself, discourage use elsewhere.
- selectorRegexp: k8s[.]io/apiextensions-apiserver
allowedPrefixes:
- ''
# Forbid use of this package in other k8s.io packages.
- selectorRegexp: k8s[.]io
forbiddenPrefixes:
- ''

View File

@ -0,0 +1,5 @@
inverseRules:
# Allow use of this package in all k8s.io packages.
- selectorRegexp: k8s[.]io
allowedPrefixes:
- ''

View File

@ -0,0 +1,5 @@
inverseRules:
# Allow use of this package in all k8s.io packages.
- selectorRegexp: k8s[.]io
allowedPrefixes:
- ''