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

NetworkPolicyPort fails at numerical ports #115

Closed
kadwanev opened this issue Nov 13, 2017 · 4 comments
Closed

NetworkPolicyPort fails at numerical ports #115

kadwanev opened this issue Nov 13, 2017 · 4 comments

Comments

@kadwanev
Copy link

Any attempt at saving a V1NetworkPolicyPort fails with:
Invalid value: \"80\": must contain at least one letter or number (a-z, 0-9)

It looks like this value should be an IntOrString type rather than a string so that the rendered json would be of int type when required and string type otherwise.

kadwanev added a commit to kadwanev/kubernetes-client-java that referenced this issue Nov 13, 2017
This commit is not meant to be merged directly but the required generated result that is needed
@brendandburns
Copy link
Contributor

I think we need to regenerate code, now that kubernetes-client/gen#30 has merged.

@kadwanev
Copy link
Author

Is that something I can do locally to verify the fix in my case?

@brendandburns
Copy link
Contributor

The (rather terse) instructions are here:

https://github.com/kubernetes-client/java#update-client

If that isn't clear, let me know and I will improve the docs. the gen repo is:

https://github.com/kubernetes-client/gen

@Rafaesp
Copy link

Rafaesp commented Nov 17, 2017

I get
Exception in thread "main" io.kubernetes.client.ApiException: Unprocessable Entity at io.kubernetes.client.ApiClient.handleResponse(ApiClient.java:882) at io.kubernetes.client.ApiClient.execute(ApiClient.java:798) at io.kubernetes.client.apis.NetworkingV1Api.createNamespacedNetworkPolicyWithHttpInfo(NetworkingV1Api.java:164) at io.kubernetes.client.apis.NetworkingV1Api.createNamespacedNetworkPolicy(NetworkingV1Api.java:148) at es.rafa.kubetest.App.main(App.java:70)

This the same issue, right? How can I see that detailed description of the error?

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

3 participants