-
Notifications
You must be signed in to change notification settings - Fork 63
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
ContainerPort protocol is a key field, which makes it required for server-side apply #130
Comments
I think keeping this restriction in will hamper the adoption of server-side applies greatly, for example the ingress-nginx config also misses the 'protocol' ports in its config: https://github.com/kubernetes/ingress-nginx/blob/master/deploy/static/provider/cloud-generic.yaml cc @lavalamp |
kubectl apply --server-side currently doesn't work with Port specs that are missing protocol: kubernetes-sigs/structured-merge-diff#130 so we should always specify it.
Thanks @bouk, we're aware of this bug and we do want to fix it, thanks. We have #83 that partially fixes it (still trying to figure out the best solution). /assign @jennybuckley |
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. |
Stale issues rot after 30d 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. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen We care about this more than ever. |
@apelisse: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@bouk: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@bouk: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
/remove-lifecycle rotten |
Despite kubernetes/ingress-nginx#4791, the nginx controller still does not specify the protocol in all its configurations, so this still prevents |
Should be fixed in 1.20! |
As I've deployed my first 1.20.2 cluster today, I retried server-side applying a Service without the protocol field being set and I still have the same issue. @apelisse Do you have a link to the PR that fixed this in 1.20? |
this was narrowly fixed for container port in 1.20. the service port default is addressed in master in kubernetes/kubernetes@dab5112 |
@liggitt What do you think about backporting this to 1.20? |
Hi,
I was playing around with server-side apply and hit into a problem. Say I have a pod like this (very reduced case of course):
If I run
kubectl apply -f pod.yml --server-side
I get the following error:Error from server: failed to create typed patch object: .spec.containers[name="test"].ports: element 0: associative list with keys has an element that omits key field "protocol"
This is unexpected, because ContainerPort specifies the protocol as an optional field, which defaults to
TCP
. I traced this error back to this repository, so I figured this is where it could be resolved.The text was updated successfully, but these errors were encountered: