mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #51056 from thockin/missing-conversion-peer
Automatic merge from submit-queue (batch tested with PRs 45724, 48051, 46444, 51056, 51605) Add v1 API as a default conversion peer Some of the APIs call do not this out, and a partial build produces wrong results.
This commit is contained in:
commit
8d6160abda
@ -52,9 +52,12 @@ func main() {
|
|||||||
arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
|
arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
|
||||||
|
|
||||||
// Custom args.
|
// Custom args.
|
||||||
|
// TODO: make callers pass this in. It is too opaque here, and any use of
|
||||||
|
// the flag that DOESN'T include these is broken.
|
||||||
customArgs := &generators.CustomArgs{
|
customArgs := &generators.CustomArgs{
|
||||||
ExtraPeerDirs: []string{
|
ExtraPeerDirs: []string{
|
||||||
"k8s.io/kubernetes/pkg/api",
|
"k8s.io/kubernetes/pkg/api",
|
||||||
|
"k8s.io/kubernetes/pkg/api/v1",
|
||||||
"k8s.io/api/core/v1",
|
"k8s.io/api/core/v1",
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1",
|
"k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
"k8s.io/apimachinery/pkg/conversion",
|
"k8s.io/apimachinery/pkg/conversion",
|
||||||
|
Loading…
Reference in New Issue
Block a user