-
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
Label tasks and clusters #3934
Label tasks and clusters #3934
Conversation
Also, remove deprecated tags field.
@karol-kokoszka This PR is ready for review! @annastuchlik could you take a look just at the last commit |
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.
Nice ! Few small comments.
It allows for specifying label diff that should be used for labeling clusters/tasks. It's important that sctool users are required to pass only the label diff, so that they don't overwrite labels used by other users or operator.
So that all tasks can use the --label flag.
So that labels are visible in the output of 'sctool tasks'.
So that labels are visible in the output of 'sctool info'.
a693d7d
to
ba52cd5
Compare
So that labels are visible in the output of 'sctool cluster list'.
ba52cd5
to
dc9ce85
Compare
@karol-kokoszka This PR is ready for re-review! |
@Michal-Leszczynski Thanks! Good to go. It's approved already. |
@annastuchlik could you take a look at dc9ce85? |
This PR adds a possibility of labeling cluster/tasks with the
--label
flag.I decided to implement the approach with a single flag, which has the special syntax for defining labels to be removed (similar to the kubctl label).
Fixes #3219