-
Notifications
You must be signed in to change notification settings - Fork 532
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
V1ServicePort.targetPort type changed from any to object in 0.10.3 #349
Comments
Thanks for pointing this out. I'm not sure where that came from... I will dig in and see what we need to do to fix it. Note that you can always pass the number as a string (e.g. |
Thanks for responding. Passing as string doesn't pass the type check too, string doesn't conform to object. Probably need to use |
I found a similar issue with ...
"io.k8s.api.networking.v1beta1.IngressBackend": {
"description": "IngressBackend describes all endpoints for a given service and port.",
"properties": {
"serviceName": {
"description": "Specifies the name of the referenced service.",
"type": "string"
},
"servicePort": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString",
"description": "Specifies the port of the referenced service."
}
},
"required": [
"serviceName",
"servicePort"
],
"type": "object"
},
... Specifically, note the |
This is preventing me from being able to upgrade to 0.11.0 as well. Are there any updates as to when this will be resolved? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
This issue is essentially making the node client unusable, cannot set an ingress because servicePort is incorrectly typed as object, cannot use a clusterIP because targetPort is incorrectly typed as object. Is there any update on this?🙏 |
I am seeing the same problem with
|
For any others reading this, this is how I hacked my way around this issue:
|
You are a real herooo 👍 |
@brendandburns I noticed this issue linked in my teams code. I think it should be resolved now that #666 is merged |
An issue I noticed while upgrading.
It used to be
any
, which works fine. Now it'sobject
, where giving a number would cause a type error.https://github.com/kubernetes-client/javascript/blob/master/src/gen/model/v1ServicePort.ts#L37
The text was updated successfully, but these errors were encountered: