Only allow importing gengo/v2

The old gengo shouldn't be used any longer.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt 2024-09-03 17:55:05 +02:00
parent e954415912
commit 6a11b61066
No known key found for this signature in database
GPG Key ID: 1CC5FA453662A71D

View File

@ -54,7 +54,7 @@
- "./staging/src/k8s.io/code-generator/examples"
- "./staging/src/k8s.io/code-generator/cmd/defaulter-gen/output_tests"
allowedImports:
- k8s.io/gengo
- k8s.io/gengo/v2
- k8s.io/code-generator
- k8s.io/kube-openapi
- k8s.io/klog
@ -180,7 +180,7 @@
- baseImportPath: "./vendor/k8s.io/kube-openapi"
allowedImports:
- k8s.io/kube-openapi
- k8s.io/gengo
- k8s.io/gengo/v2
- k8s.io/klog
- k8s.io/utils