Skip to content
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

Merged
merged 10 commits into from
Jul 23, 2024
Merged

Conversation

Michal-Leszczynski
Copy link
Collaborator

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

@Michal-Leszczynski Michal-Leszczynski marked this pull request as ready for review July 18, 2024 15:50
@Michal-Leszczynski
Copy link
Collaborator Author

Michal-Leszczynski commented Jul 18, 2024

@karol-kokoszka This PR is ready for review!

@annastuchlik could you take a look just at the last commit a693d7d dc9ce85 which consists of the docs related changes?

Copy link
Collaborator

@karol-kokoszka karol-kokoszka left a 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.

pkg/command/flag/type.go Show resolved Hide resolved
pkg/command/cluster/clusteradd/cmd.go Outdated Show resolved Hide resolved
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'.
@Michal-Leszczynski Michal-Leszczynski force-pushed the ml/task-and-cluster-labels branch from a693d7d to ba52cd5 Compare July 22, 2024 16:05
@Michal-Leszczynski Michal-Leszczynski force-pushed the ml/task-and-cluster-labels branch from ba52cd5 to dc9ce85 Compare July 23, 2024 07:38
@Michal-Leszczynski
Copy link
Collaborator Author

@karol-kokoszka This PR is ready for re-review!

@karol-kokoszka
Copy link
Collaborator

@Michal-Leszczynski Thanks! Good to go. It's approved already.

@Michal-Leszczynski
Copy link
Collaborator Author

@annastuchlik could you take a look at dc9ce85?

@Michal-Leszczynski Michal-Leszczynski merged commit 3c78950 into master Jul 23, 2024
57 checks passed
@Michal-Leszczynski Michal-Leszczynski deleted the ml/task-and-cluster-labels branch July 23, 2024 18:34
@karol-kokoszka karol-kokoszka mentioned this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give possibility for labeling the clusters added to SM
2 participants