-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add label
parameter to cluster and tasks
#3828
Conversation
@karol-kokoszka this PR introduces additional string label for cluster/tasks, but I think that operator team requested it to be a map:
|
We won't introduce any map, the field is expected to serve general purpose. DevOps wants to use it as well to add their labels. |
What's the problem with having a map for DevOps? |
They can use a map for a single key, we can't use a label for a map - we'd collide with a user whenever they'd try to amend it. |
just to let you know that map for us is also ok. |
@zimnx @rzetelskik I don't understand you guys. Why you cannot use JSON ?
There is no functionality in manager to search for clusters using particular key or set of keys basing on this new label. It's still manager client app that must implement the search. |
It's your comment, not ours. We specifically ask for a key-value store there.
As long as the user doesn't fiddle with the label directly, sure. If they do, we lose all of the metadata and no longer know if this cluster/task should be controlled by the operator. And this is the only use case I care about personally here. I don't really understand the pushback - it seem like a pretty standard approach? Grafana, prometheus, kubernetes all seem to use maps for labels. |
Makes sense, but the current implementation (in this PR), just allows to put all or nothing. The plan for 3.2.8 is to release it by 6th of May and the release is driven by #3767 Guys, if the label as a single text field is no go, then we must postpone it for a couple of weeks. |
It's a no go for us. We can wait for it until next release. |
Fixes #3219
cc: @d-helios @zimnx
Please make sure that: