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

Ingress servicePort as object? #413

Closed
mateothegreat opened this issue Feb 14, 2020 · 1 comment
Closed

Ingress servicePort as object? #413

mateothegreat opened this issue Feb 14, 2020 · 1 comment

Comments

@mateothegreat
Copy link

mateothegreat commented Feb 14, 2020

Per https://github.com/kubernetes-client/javascript/blob/master/src/gen/model/networkingV1beta1IngressBackend.ts#L38 the backend's servicePort is set as object .. shouldn't this be a number or string or am I missing something?

Passing in an arbitrary object returns from the api:

v1beta1.IngressBackend.ServicePort: unmarshalerDecoder: json: cannot unmarshal object into Go value of type int32,

@brendandburns
Copy link
Contributor

This is a duplicate of #370

There's some weirdness in how the swagger is converted to typescript where object is being substituted for number.

If you pass a string or a number it should work correctly.

I need to dig into the code gen and/or the openapi spec to figure out what's going wrong, but I haven't had the cycles.

I'm closing this in favor of #370 since it's the same issue. Please use /reopen if you want to reopen this issue for any reason.

(and if you have cycles to dig into why this is happening PRs or investigations are very welcome)

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

2 participants