genconversion: add k8s.io/api/core/v1
@@ -39,8 +39,9 @@ func main() {
// These are the packages containing types and conversion functions used by the packages we want to generate for
supportingPackages := sets.NewString(
- "k8s.io/kubernetes/pkg/api/v1",
+ "k8s.io/api/core/v1",
"k8s.io/kubernetes/pkg/api",
+ "k8s.io/kubernetes/pkg/api/v1",
"k8s.io/apimachinery/pkg/apis/meta/v1",
"k8s.io/apimachinery/pkg/apis/meta/internalversion",
"k8s.io/apimachinery/pkg/runtime",
@@ -76,7 +77,7 @@ func main() {
var include generator.Packages
for _, pkg := range pkgs {
foundPackages.Insert(pkg.Path())
- if strings.HasPrefix(pkg.Path(), "k8s.io/") {
+ if strings.Contains(pkg.Path(), "vendor/k8s.io/") {
continue
}
include = append(include, pkg)
