Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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:
|
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