Skip to content

Commit

Permalink
UPSTREAM: <drop>: add missing import restrictions
Browse files Browse the repository at this point in the history
when we run verify-import-boss.sh it fails with the following error

errors in package "k8s.io/kubernetes/cmd/kubeadm/app/phases/bootstraptoken/node":
the following imports did not match any allowed prefix:
  gopkg.in/yaml.v3
  k8s.io/kube-openapi/pkg/validation/spec

note: this should be an upstream fix, not sure why we don't see this
error in upstream, does upstream not run this job in verify?
investigate and take proper action for this commit
  • Loading branch information
tkashem committed May 26, 2022
1 parent a8f5fb9 commit 3af2f68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/kubeadm/.import-restrictions
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rules:
- k8s.io/kube-openapi/pkg/schemaconv
- k8s.io/kube-openapi/pkg/handler3
- k8s.io/kube-openapi/pkg/spec3
- k8s.io/kube-openapi/pkg/validation/spec
- selectorRegexp: k8s[.]io/kube-proxy/
allowedPrefixes:
- k8s.io/kube-proxy/config/v1alpha1
Expand All @@ -19,3 +20,4 @@ rules:
- gopkg.in/inf.v0
- gopkg.in/square/go-jose.v2
- gopkg.in/yaml.v2
- gopkg.in/yaml.v3

0 comments on commit 3af2f68

Please sign in to comment.