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

fix: wrong targetPort type preventing service api calls #425

Closed
wants to merge 1 commit into from

Conversation

sudopaeg
Copy link

@sudopaeg sudopaeg commented Apr 6, 2020

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 6, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jhkimac
To complete the pull request process, please assign mbohlool
You can assign the PR to them by writing /assign @mbohlool in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

Welcome @jhkimac!

It looks like this is your first PR to kubernetes-client/javascript 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-client/javascript has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 6, 2020
@sudopaeg
Copy link
Author

sudopaeg commented Apr 6, 2020

/assign @mbohlool

@drubin
Copy link
Contributor

drubin commented Apr 6, 2020

Hi, @jhkimac Thanks so much for this contribution!

Sadly we can't accept this as is, as this code is automatically generated from the openApi spec. So we need to fix it upstream in the generator or in the openApi spec.

See https://github.com/kubernetes-client/javascript#re-generating-code which calls https://github.com/kubernetes-client/javascript/blob/master/generate-client.sh

How does this fix it compared to the object value?

/assign @drubin

@sudopaeg
Copy link
Author

sudopaeg commented Apr 6, 2020

Hi @drubin, I will try it out after a take a bit of rest. In the meantime, I have also found similar behavior in V1Container's V1Container.livenessProbe.httpGet.port, type enforcing object instead of number. I cannot find this problem in the openApi spec (or I am just too sleepy) at the moment. Will update after tomorrow.

@brendandburns
Copy link
Contributor

This is discussed in #349 there's something weird going on with the Swagger and the code generator. It has to do with the way that IntOrString is represented in Swagger, and also what looks like it might be a bug in the code generator.

I've take a few attempts at fixing this, but it hasn't gone anywhere.

As @drubin says, we can't manually edit the code generated files.

@brendandburns
Copy link
Contributor

Closing this PR since we can't merge it. Please continue discussion as needed in #349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants