Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIG listManagedInstances fails to be added #74

Open
nsilve opened this issue Sep 19, 2022 · 0 comments
Open

MIG listManagedInstances fails to be added #74

nsilve opened this issue Sep 19, 2022 · 0 comments

Comments

@nsilve
Copy link

nsilve commented Sep 19, 2022

Description

When we are trying to add listManagedInstances, an error is returned

$ make                                                                                                                                                                                                                                go run pkg/cloud/gen/main.go > pkg/cloud/gen.go
panic: template: interface:34:9: executing "interface" at <.Methods>: error calling Methods: method "InstanceGroupManagers"."ListManagedInstances": paged return type "InstanceGroupManagersListManagedInstancesResponse" does not have a .Items field

goroutine 1 [running]:
main.genTypes({0x2641ba0, 0xc0001103f0})
        /Users/nsilve/IdeaProjects/github/k8s-cloud-provider/pkg/cloud/gen/main.go:1069 +0x187
main.main()
        /Users/nsilve/IdeaProjects/github/k8s-cloud-provider/pkg/cloud/gen/main.go:1447 +0xcc
exit status 2
make: *** [gen] Error 1

because for paged responses an Items field is expected but listManagedInstances returns a managedInstances one.

@nsilve nsilve changed the title IGM listManagedInstances fails to be added MIG listManagedInstances fails to be added Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant