.import-restrictions 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. {
  2. "Rules": [
  3. {
  4. "SelectorRegexp": "k8s[.]io/kubernetes/pkg/",
  5. "AllowedPrefixes": [
  6. "k8s.io/kubernetes/pkg/api/legacyscheme",
  7. "k8s.io/kubernetes/pkg/api/service",
  8. "k8s.io/kubernetes/pkg/api/v1/pod",
  9. "k8s.io/kubernetes/pkg/api/v1/resource",
  10. "k8s.io/kubernetes/pkg/api/v1/service",
  11. "k8s.io/kubernetes/pkg/apis/apps",
  12. "k8s.io/kubernetes/pkg/apis/apps/validation",
  13. "k8s.io/kubernetes/pkg/apis/autoscaling",
  14. "k8s.io/kubernetes/pkg/apis/batch",
  15. "k8s.io/kubernetes/pkg/apis/core",
  16. "k8s.io/kubernetes/pkg/apis/core/helper",
  17. "k8s.io/kubernetes/pkg/apis/core/install",
  18. "k8s.io/kubernetes/pkg/apis/core/pods",
  19. "k8s.io/kubernetes/pkg/apis/core/v1",
  20. "k8s.io/kubernetes/pkg/apis/core/v1/helper",
  21. "k8s.io/kubernetes/pkg/apis/core/v1/helper/qos",
  22. "k8s.io/kubernetes/pkg/apis/core/validation",
  23. "k8s.io/kubernetes/pkg/apis/extensions",
  24. "k8s.io/kubernetes/pkg/apis/networking",
  25. "k8s.io/kubernetes/pkg/apis/policy",
  26. "k8s.io/kubernetes/pkg/apis/policy/validation",
  27. "k8s.io/kubernetes/pkg/apis/scheduling",
  28. "k8s.io/kubernetes/pkg/apis/storage/v1/util",
  29. "k8s.io/kubernetes/pkg/capabilities",
  30. "k8s.io/kubernetes/pkg/client/conditions",
  31. "k8s.io/kubernetes/pkg/cloudprovider/providers",
  32. "k8s.io/kubernetes/pkg/controller",
  33. "k8s.io/kubernetes/pkg/controller/deployment/util",
  34. "k8s.io/kubernetes/pkg/controller/nodelifecycle",
  35. "k8s.io/kubernetes/pkg/controller/nodelifecycle/scheduler",
  36. "k8s.io/kubernetes/pkg/controller/service",
  37. "k8s.io/kubernetes/pkg/controller/util/node",
  38. "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/util",
  39. "k8s.io/kubernetes/pkg/controller/volume/scheduling",
  40. "k8s.io/kubernetes/pkg/credentialprovider",
  41. "k8s.io/kubernetes/pkg/credentialprovider/aws",
  42. "k8s.io/kubernetes/pkg/credentialprovider/azure",
  43. "k8s.io/kubernetes/pkg/credentialprovider/gcp",
  44. "k8s.io/kubernetes/pkg/credentialprovider/secrets",
  45. "k8s.io/kubernetes/pkg/features",
  46. "k8s.io/kubernetes/pkg/fieldpath",
  47. "k8s.io/kubernetes/pkg/kubectl",
  48. "k8s.io/kubernetes/pkg/kubectl/apps",
  49. "k8s.io/kubernetes/pkg/kubectl/describe",
  50. "k8s.io/kubernetes/pkg/kubectl/describe/versioned",
  51. "k8s.io/kubernetes/pkg/kubectl/scheme",
  52. "k8s.io/kubernetes/pkg/kubectl/util",
  53. "k8s.io/kubernetes/pkg/kubectl/util/certificate",
  54. "k8s.io/kubernetes/pkg/kubectl/util/deployment",
  55. "k8s.io/kubernetes/pkg/kubectl/util/event",
  56. "k8s.io/kubernetes/pkg/kubectl/util/fieldpath",
  57. "k8s.io/kubernetes/pkg/kubectl/util/podutils",
  58. "k8s.io/kubernetes/pkg/kubectl/util/qos",
  59. "k8s.io/kubernetes/pkg/kubectl/util/rbac",
  60. "k8s.io/kubernetes/pkg/kubectl/util/resource",
  61. "k8s.io/kubernetes/pkg/kubectl/util/slice",
  62. "k8s.io/kubernetes/pkg/kubectl/util/storage",
  63. "k8s.io/kubernetes/pkg/kubelet",
  64. "k8s.io/kubernetes/pkg/kubelet/apis",
  65. "k8s.io/kubernetes/pkg/kubelet/apis/config",
  66. "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1",
  67. "k8s.io/kubernetes/pkg/kubelet/cadvisor",
  68. "k8s.io/kubernetes/pkg/kubelet/certificate",
  69. "k8s.io/kubernetes/pkg/kubelet/certificate/bootstrap",
  70. "k8s.io/kubernetes/pkg/kubelet/checkpoint",
  71. "k8s.io/kubernetes/pkg/kubelet/checkpointmanager",
  72. "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum",
  73. "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors",
  74. "k8s.io/kubernetes/pkg/kubelet/cloudresource",
  75. "k8s.io/kubernetes/pkg/kubelet/cm",
  76. "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager",
  77. "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/containermap",
  78. "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state",
  79. "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/topology",
  80. "k8s.io/kubernetes/pkg/kubelet/cm/cpuset",
  81. "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager",
  82. "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/checkpoint",
  83. "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager",
  84. "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/bitmask",
  85. "k8s.io/kubernetes/pkg/kubelet/cm/util",
  86. "k8s.io/kubernetes/pkg/kubelet/config",
  87. "k8s.io/kubernetes/pkg/kubelet/configmap",
  88. "k8s.io/kubernetes/pkg/kubelet/container",
  89. "k8s.io/kubernetes/pkg/kubelet/dockershim",
  90. "k8s.io/kubernetes/pkg/kubelet/dockershim/cm",
  91. "k8s.io/kubernetes/pkg/kubelet/dockershim/libdocker",
  92. "k8s.io/kubernetes/pkg/kubelet/dockershim/metrics",
  93. "k8s.io/kubernetes/pkg/kubelet/dockershim/network",
  94. "k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni",
  95. "k8s.io/kubernetes/pkg/kubelet/dockershim/network/hostport",
  96. "k8s.io/kubernetes/pkg/kubelet/dockershim/network/kubenet",
  97. "k8s.io/kubernetes/pkg/kubelet/dockershim/network/metrics",
  98. "k8s.io/kubernetes/pkg/kubelet/dockershim/remote",
  99. "k8s.io/kubernetes/pkg/kubelet/envvars",
  100. "k8s.io/kubernetes/pkg/kubelet/eviction",
  101. "k8s.io/kubernetes/pkg/kubelet/eviction/api",
  102. "k8s.io/kubernetes/pkg/kubelet/events",
  103. "k8s.io/kubernetes/pkg/kubelet/images",
  104. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig",
  105. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/checkpoint",
  106. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/checkpoint/store",
  107. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/configfiles",
  108. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/status",
  109. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/codec",
  110. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/files",
  111. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/log",
  112. "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/panic",
  113. "k8s.io/kubernetes/pkg/kubelet/kuberuntime",
  114. "k8s.io/kubernetes/pkg/kubelet/kuberuntime/logs",
  115. "k8s.io/kubernetes/pkg/kubelet/leaky",
  116. "k8s.io/kubernetes/pkg/kubelet/lifecycle",
  117. "k8s.io/kubernetes/pkg/kubelet/logs",
  118. "k8s.io/kubernetes/pkg/kubelet/metrics",
  119. "k8s.io/kubernetes/pkg/kubelet/network/dns",
  120. "k8s.io/kubernetes/pkg/kubelet/nodelease",
  121. "k8s.io/kubernetes/pkg/kubelet/nodestatus",
  122. "k8s.io/kubernetes/pkg/kubelet/oom",
  123. "k8s.io/kubernetes/pkg/kubelet/pleg",
  124. "k8s.io/kubernetes/pkg/kubelet/pluginmanager",
  125. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache",
  126. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/metrics",
  127. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/operationexecutor",
  128. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher",
  129. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1",
  130. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2",
  131. "k8s.io/kubernetes/pkg/kubelet/pluginmanager/reconciler",
  132. "k8s.io/kubernetes/pkg/kubelet/pod",
  133. "k8s.io/kubernetes/pkg/kubelet/preemption",
  134. "k8s.io/kubernetes/pkg/kubelet/prober",
  135. "k8s.io/kubernetes/pkg/kubelet/prober/results",
  136. "k8s.io/kubernetes/pkg/kubelet/qos",
  137. "k8s.io/kubernetes/pkg/kubelet/remote",
  138. "k8s.io/kubernetes/pkg/kubelet/runtimeclass",
  139. "k8s.io/kubernetes/pkg/kubelet/server",
  140. "k8s.io/kubernetes/pkg/kubelet/server/metrics",
  141. "k8s.io/kubernetes/pkg/kubelet/server/portforward",
  142. "k8s.io/kubernetes/pkg/kubelet/server/remotecommand",
  143. "k8s.io/kubernetes/pkg/kubelet/server/stats",
  144. "k8s.io/kubernetes/pkg/kubelet/server/streaming",
  145. "k8s.io/kubernetes/pkg/kubelet/stats",
  146. "k8s.io/kubernetes/pkg/kubelet/stats/pidlimit",
  147. "k8s.io/kubernetes/pkg/kubelet/status",
  148. "k8s.io/kubernetes/pkg/kubelet/secret",
  149. "k8s.io/kubernetes/pkg/kubelet/sysctl",
  150. "k8s.io/kubernetes/pkg/kubelet/types",
  151. "k8s.io/kubernetes/pkg/kubelet/token",
  152. "k8s.io/kubernetes/pkg/kubelet/util",
  153. "k8s.io/kubernetes/pkg/kubelet/util/format",
  154. "k8s.io/kubernetes/pkg/kubelet/util/manager",
  155. "k8s.io/kubernetes/pkg/kubelet/util/store",
  156. "k8s.io/kubernetes/pkg/kubelet/volumemanager",
  157. "k8s.io/kubernetes/pkg/kubelet/volumemanager/cache",
  158. "k8s.io/kubernetes/pkg/kubelet/volumemanager/metrics",
  159. "k8s.io/kubernetes/pkg/kubelet/volumemanager/populator",
  160. "k8s.io/kubernetes/pkg/kubelet/volumemanager/reconciler",
  161. "k8s.io/kubernetes/pkg/kubemark",
  162. "k8s.io/kubernetes/pkg/master/ports",
  163. "k8s.io/kubernetes/pkg/probe",
  164. "k8s.io/kubernetes/pkg/probe/exec",
  165. "k8s.io/kubernetes/pkg/probe/http",
  166. "k8s.io/kubernetes/pkg/probe/tcp",
  167. "k8s.io/kubernetes/pkg/proxy",
  168. "k8s.io/kubernetes/pkg/proxy/apis",
  169. "k8s.io/kubernetes/pkg/proxy/apis/config",
  170. "k8s.io/kubernetes/pkg/proxy/apis/config/scheme",
  171. "k8s.io/kubernetes/pkg/proxy/apis/config/v1alpha1",
  172. "k8s.io/kubernetes/pkg/proxy/apis/config/validation",
  173. "k8s.io/kubernetes/pkg/proxy/config",
  174. "k8s.io/kubernetes/pkg/proxy/healthcheck",
  175. "k8s.io/kubernetes/pkg/proxy/iptables",
  176. "k8s.io/kubernetes/pkg/proxy/ipvs",
  177. "k8s.io/kubernetes/pkg/proxy/metaproxier",
  178. "k8s.io/kubernetes/pkg/proxy/metrics",
  179. "k8s.io/kubernetes/pkg/proxy/userspace",
  180. "k8s.io/kubernetes/pkg/proxy/util",
  181. "k8s.io/kubernetes/pkg/registry/core/service/allocator",
  182. "k8s.io/kubernetes/pkg/registry/core/service/portallocator",
  183. "k8s.io/kubernetes/pkg/scheduler/api",
  184. "k8s.io/kubernetes/pkg/scheduler/framework/plugins/helper",
  185. "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeaffinity",
  186. "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodename",
  187. "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeports",
  188. "k8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources",
  189. "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1",
  190. "k8s.io/kubernetes/pkg/scheduler/listers",
  191. "k8s.io/kubernetes/pkg/scheduler/metrics",
  192. "k8s.io/kubernetes/pkg/scheduler/nodeinfo",
  193. "k8s.io/kubernetes/pkg/scheduler/util",
  194. "k8s.io/kubernetes/pkg/scheduler/volumebinder",
  195. "k8s.io/kubernetes/pkg/security/apparmor",
  196. "k8s.io/kubernetes/pkg/security/podsecuritypolicy/seccomp",
  197. "k8s.io/kubernetes/pkg/security/podsecuritypolicy/sysctl",
  198. "k8s.io/kubernetes/pkg/security/podsecuritypolicy/util",
  199. "k8s.io/kubernetes/pkg/securitycontext",
  200. "k8s.io/kubernetes/pkg/serviceaccount",
  201. "k8s.io/kubernetes/pkg/ssh",
  202. "k8s.io/kubernetes/pkg/util/async",
  203. "k8s.io/kubernetes/pkg/util/bandwidth",
  204. "k8s.io/kubernetes/pkg/util/config",
  205. "k8s.io/kubernetes/pkg/util/configz",
  206. "k8s.io/kubernetes/pkg/util/conntrack",
  207. "k8s.io/kubernetes/pkg/util/ebtables",
  208. "k8s.io/kubernetes/pkg/util/env",
  209. "k8s.io/kubernetes/pkg/util/filesystem",
  210. "k8s.io/kubernetes/pkg/util/flag",
  211. "k8s.io/kubernetes/pkg/util/flock",
  212. "k8s.io/kubernetes/pkg/util/goroutinemap",
  213. "k8s.io/kubernetes/pkg/util/goroutinemap/exponentialbackoff",
  214. "k8s.io/kubernetes/pkg/util/hash",
  215. "k8s.io/kubernetes/pkg/util/ipset",
  216. "k8s.io/kubernetes/pkg/util/iptables",
  217. "k8s.io/kubernetes/pkg/util/ipvs",
  218. "k8s.io/kubernetes/pkg/util/labels",
  219. "k8s.io/kubernetes/pkg/util/node",
  220. "k8s.io/kubernetes/pkg/util/oom",
  221. "k8s.io/kubernetes/pkg/util/parsers",
  222. "k8s.io/kubernetes/pkg/util/pod",
  223. "k8s.io/kubernetes/pkg/util/procfs",
  224. "k8s.io/kubernetes/pkg/util/removeall",
  225. "k8s.io/kubernetes/pkg/util/resizefs",
  226. "k8s.io/kubernetes/pkg/util/rlimit",
  227. "k8s.io/kubernetes/pkg/util/selinux",
  228. "k8s.io/kubernetes/pkg/util/slice",
  229. "k8s.io/kubernetes/pkg/util/sysctl",
  230. "k8s.io/kubernetes/pkg/util/system",
  231. "k8s.io/kubernetes/pkg/util/tail",
  232. "k8s.io/kubernetes/pkg/util/taints",
  233. "k8s.io/kubernetes/pkg/volume",
  234. "k8s.io/kubernetes/pkg/volume/util",
  235. "k8s.io/kubernetes/pkg/volume/util/fs",
  236. "k8s.io/kubernetes/pkg/volume/util/fsquota",
  237. "k8s.io/kubernetes/pkg/volume/util/recyclerclient",
  238. "k8s.io/kubernetes/pkg/volume/util/subpath",
  239. "k8s.io/kubernetes/pkg/volume/util/types",
  240. "k8s.io/kubernetes/pkg/volume/util/volumepathhandler"
  241. ],
  242. "ForbiddenPrefixes": []
  243. },
  244. {
  245. "SelectorRegexp": "k8s[.]io/kubernetes/test/",
  246. "AllowedPrefixes": [
  247. "k8s.io/kubernetes/test/e2e/framework",
  248. "k8s.io/kubernetes/test/e2e/framework/auth",
  249. "k8s.io/kubernetes/test/e2e/framework/ginkgowrapper",
  250. "k8s.io/kubernetes/test/e2e/framework/kubectl",
  251. "k8s.io/kubernetes/test/e2e/framework/log",
  252. "k8s.io/kubernetes/test/e2e/framework/metrics",
  253. "k8s.io/kubernetes/test/e2e/framework/network",
  254. "k8s.io/kubernetes/test/e2e/framework/node",
  255. "k8s.io/kubernetes/test/e2e/framework/pod",
  256. "k8s.io/kubernetes/test/e2e/framework/rc",
  257. "k8s.io/kubernetes/test/e2e/framework/resource",
  258. "k8s.io/kubernetes/test/e2e/framework/service",
  259. "k8s.io/kubernetes/test/e2e/framework/ssh",
  260. "k8s.io/kubernetes/test/e2e/framework/testfiles",
  261. "k8s.io/kubernetes/test/e2e/manifest",
  262. "k8s.io/kubernetes/test/e2e/perftype",
  263. "k8s.io/kubernetes/test/e2e/storage/utils",
  264. "k8s.io/kubernetes/test/e2e/system",
  265. "k8s.io/kubernetes/test/utils",
  266. "k8s.io/kubernetes/test/utils/image"
  267. ],
  268. "ForbiddenPrefixes": []
  269. },
  270. {
  271. "SelectorRegexp": "k8s[.]io/kubernetes/third_party/",
  272. "AllowedPrefixes": [
  273. "k8s.io/kubernetes/third_party/forked/golang/expansion"
  274. ],
  275. "ForbiddenPrefixes": []
  276. },
  277. {
  278. "SelectorRegexp": "k8s[.]io/utils/",
  279. "AllowedPrefixes": [
  280. "k8s.io/utils/buffer",
  281. "k8s.io/utils/exec",
  282. "k8s.io/utils/inotify",
  283. "k8s.io/utils/integer",
  284. "k8s.io/utils/io",
  285. "k8s.io/utils/keymutex",
  286. "k8s.io/utils/mount",
  287. "k8s.io/utils/net",
  288. "k8s.io/utils/nsenter",
  289. "k8s.io/utils/path",
  290. "k8s.io/utils/pointer",
  291. "k8s.io/utils/strings",
  292. "k8s.io/utils/trace"
  293. ],
  294. "ForbiddenPrefixes": []
  295. },
  296. {
  297. "SelectorRegexp": "k8s[.]io/(api/|apimachinery/|apiextensions-apiserver/|apiserver/)",
  298. "AllowedPrefixes": [
  299. ""
  300. ]
  301. },
  302. {
  303. "SelectorRegexp": "k8s[.]io/client-go/",
  304. "AllowedPrefixes": [
  305. ""
  306. ]
  307. }
  308. ]
  309. }