-
Notifications
You must be signed in to change notification settings - Fork 163
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
name label added to namespace in not prefixed with capsule.clastix.io #754
Comments
@prometherion I can work on this issue. Please assign it to me. |
Hey @sagar-jadhav. This change would be backward-incompatible, and may cause problems for users who are relying on this label on different objects. My opinion is that If really needed, a second label with capsule.clastix.io prefix can be added, but I don’t actually think that it is a big problem to have a label without prefix. |
The first thing I'm thinking of is the However, you're totally right: we should mark this as deprecated in the upcoming releases so users know in advance prior to the update. The Although supporting several old Kubernetes versions, I think we can give for granted we wanna support only the latest 3 latest releases of Kubernetes (at the current time of writing, 1.27, 1.26, and 1.25) so we just need to drop that label, document it as a breaking change and we're done. |
@prometherion in |
Nice finding, @sagar-jadhav. We have to coordinate with the capsule-proxy release, then. |
@prometherion I will open an PR in capsule-proxy to use But How to mark |
I've just released |
I'm now working on migration to capsulev1beta2 API, so was looking into capsule-proxy code. |
The With #738 we plan to drop this odd situation and rely only on the label selector: are we still on the same page, Max? |
@prometherion Ah, I see. I was confused by the name of the issue, regarding the remaining of the label. If it will be dropped together with regex support and capsule-proxy update then I think everything will be fine. Btw, i can take a task for updating capsule-proxy if needed :) |
@MaxFedotov Sure you can take up the task to make relevant changes int the capsule-proxy :) cc: @prometherion |
@oliverbaehler @MaxFedotov @bsctl rather than marking that label with a Capsule one, TBH, I would ensure the well-known This one has been introduced from Kubernetes 1.22, since we're supporting also previous versions of Kubernetes, we just need to be sure it's there. For the proxy, it will be easier to target this. |
Bug description
Namespace has the label
name
added by Capsule controller which is not prefixed bycapsule.clastix.io
How to reproduce
Create a Tenant
oil
as a cluster adminCreate a namespace
oil-db
as a Alice userDescribe the namespace
oil-db
as a Alice userExpected behavior
name
label should be prefixed withcapsule.clastix.io
in theoil-db
namespace as it is added by Capsule controllerAdditional context
The text was updated successfully, but these errors were encountered: