-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
generate kube -s: do not insert annotations for the bind in the service yaml #11929
Comments
@baude PTAL |
Seems this is a duplicate of #11930 |
This ticket is about the useless anotation, the other ticket is about targetPort:0. |
It's useless for Kube, but it's necessary for preserving this information for |
The annotation is included in the Pod and in the Service object. I mean, that it is sufficient to include the annotation only in the Pod object. |
Ahh, fair. |
Interested in opening a PR to fix it? |
I am not interested. |
would changing where it is in the stanza be a breaking change though? |
Kubernetes fails to deal with an annotation that has a space in it. Trim these strings to remove spaces. Fixes: containers#11929 Signed-off-by: Brent Baude <[email protected]> [NO TESTS NEEDED]
This ticket is not about the syntactically invalid annotation. This ticket is about the unnecessary annotation in the Service yaml output. |
Not if nothing uses it. |
I use the latest podman - commit 171f7b8 - and I see no difference in the output of |
Kubernetes fails to deal with an annotation that has a space in it. Trim these strings to remove spaces. Fixes: containers#11929 Signed-off-by: Brent Baude <[email protected]> [NO TESTS NEEDED]
I run a podman container as described at https://mail.aegee.org/cgit/aegee-ldap/tree/readme.md#n13 . Then call
podman generate kube -s busy_mclaren
. The output is:Apart from the fact, that the annotation is syntactically not accepted by
kubelet apply -f
, such annotations have nothing to do with the Service and therefore shall not be emitted.The text was updated successfully, but these errors were encountered: