convert .import-restrictions to yaml

yaml has comments, so we can explain why we have certain rules or
certain prefixes

for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
This commit is contained in:
Aaron Crickenberger
2020-04-22 15:41:00 -07:00
parent 7814f3aaf7
commit f306a0dbb4
12 changed files with 437 additions and 529 deletions

View File

@@ -1,11 +1,5 @@
{
"Rules": [
{
"SelectorRegexp": "k8s[.]io/kubernetes",
"AllowedPrefixes": [
"k8s.io/kubernetes/pkg/cloudprovider/providers"
],
"ForbiddenPrefixes": []
}
]
}
rules:
# prevent any k8s.io/kubernetes imports outside of this package
- selectorRegexp: k8s[.]io/kubernetes
allowedPrefixes:
- k8s.io/kubernetes/pkg/cloudprovider/providers