-
Notifications
You must be signed in to change notification settings - Fork 3.4k
identity: remove labels on CID #39552
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
Conversation
b5fbcb1
to
331a4df
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for digging into this!
331a4df
to
5e3c86a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM code-wise, but is this a breaking change for folks somehow consuming labels on CiliumIdentity? Does it need to be mentioned in the docs somewhere?
/test |
I don't have a strong opinion, I can add it if you have strong opinion on it. CiliumIdentity is kind of an implementation detail ;) |
This seems extremely reasonable! I agree that there could be someone relying on this, but I don't see it as published API. That said, we should probably add a release note and not backport this, on the off chance that is relied on. (There may be some |
As we don't use labels from CiliumIdentities, let's remove them. Labels have restriction of 63 characters and when someone created a serviceaccount with name longer than 63, we were trying to add it to labels of CiliumIdentity. This resulted in failure of creating CID and failure to start pod. We only keep namespace label as it's used when listing ciliumidentities through kubectl. Fixes: #16579 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
5e3c86a
to
e528f3e
Compare
Done. |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for the docs, thanks!
@marseel given it's labeled as |
@julianwiedmann too low severity.
|
As we don't use labels from CiliumIdentities, let's remove them.
Labels have restriction of 63 characters and when someone created a
serviceaccount with name longer than 63, we were trying to add it to
labels of CiliumIdentity. This resulted in failure of creating CID and
failure to start pod.
We only keep namespace label as it's used when listing ciliumidentities
through kubectl, example:
Fixes: #16579