Skip to content

Commit

Permalink
import-restrictions.yaml: allow k8s.io/utils for all staging repos
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Feb 18, 2019
1 parent cc64f23 commit 352009a
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions staging/publishing/import-restrictions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
- k8s.io/kubernetes/pkg/fieldpath
- k8s.io/kubernetes/pkg/util
- k8s.io/api/core/v1
- k8s.io/utils/pointer
- k8s.io/klog
- k8s.io/utils

# the following are temporary and should go away. Think twice (or more) before adding anything here.
# Main goal: pkg/apis should be as self-contained as possible.
- k8s.io/kubernetes/pkg/apis/apps
- k8s.io/kubernetes/pkg/api/legacyscheme
- k8s.io/kubernetes/pkg/api/testapi
- k8s.io/api/apps/v1
- k8s.io/utils
ignoredSubTrees:
- "./pkg/apis/core/validation"

Expand All @@ -27,18 +28,21 @@
- k8s.io/api/core/v1
- k8s.io/cli-runtime/pkg/genericclioptions/printers
- k8s.io/cli-runtime/pkg/genericclioptions/resource
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/apimachinery/"
allowedImports:
- k8s.io/apimachinery
- k8s.io/kube-openapi
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/api/"
allowedImports:
- k8s.io/api
- k8s.io/apimachinery
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/code-generator/"
ignoredSubTrees:
Expand All @@ -48,6 +52,7 @@
- k8s.io/code-generator
- k8s.io/kube-openapi
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/component-base/"
allowedImports:
Expand All @@ -72,7 +77,9 @@
- k8s.io/apimachinery
- k8s.io/client-go
- k8s.io/klog
- baseImportPath: "./vendor/k8s.io/client-go/tools/"
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/client-go/tools/"
excludeTests: true
ignoredSubTrees:
- "./vendor/k8s.io/client-go/tools/cache/testing"
Expand All @@ -95,8 +102,8 @@
- k8s.io/client-go
- k8s.io/component-base
- k8s.io/kube-openapi
- k8s.io/utils
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/metrics/"
allowedImports:
Expand All @@ -105,6 +112,7 @@
- k8s.io/client-go
- k8s.io/metrics
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/kube-aggregator/"
allowedImports:
Expand All @@ -116,6 +124,7 @@
- k8s.io/kube-aggregator
- k8s.io/kube-openapi
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/sample-apiserver/"
allowedImports:
Expand All @@ -126,6 +135,7 @@
- k8s.io/component-base
- k8s.io/sample-apiserver
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/apiextensions-apiserver/"
allowedImports:
Expand All @@ -136,6 +146,7 @@
- k8s.io/client-go
- k8s.io/component-base
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/kube-openapi/"
allowedImports:
Expand All @@ -150,6 +161,7 @@
- k8s.io/cli-runtime
- k8s.io/client-go
- k8s.io/sample-cli-plugin
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/kube-controller-manager/"
allowedImports:
Expand Down Expand Up @@ -177,12 +189,14 @@
- k8s.io/api
- k8s.io/apimachinery
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/cluster-bootstrap/"
allowedImports:
- k8s.io/api
- k8s.io/apimachinery
- k8s.io/cluster-bootstrap
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/cloud-provider/"
allowedImports:
Expand All @@ -199,6 +213,7 @@
- k8s.io/apimachinery
- k8s.io/client-go
- k8s.io/node-api
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/csi-api/"
allowedImports:
Expand All @@ -208,6 +223,7 @@
- k8s.io/client-go
- k8s.io/csi-api
- k8s.io/klog
- k8s.io/utils

- baseImportPath: "./vendor/k8s.io/csi-translation-lib/"
allowedImports:
Expand All @@ -216,3 +232,4 @@
- k8s.io/klog
- k8s.io/cloud-provider
- k8s.io/csi-translation-lib
- k8s.io/utils

0 comments on commit 352009a

Please sign in to comment.