mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #58353 from juanvallejo/jvallejo/usability-fix-label
Automatic merge from submit-queue (batch tested with PRs 61487, 58353, 61078, 61219, 60792). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. distinguish which labels belong to resource **Release note**: ```release-note NONE ``` Usability improvement for `kubectl label ... --list` when listing labels for more than one resource. Append resource kind/name before its set of labels. **Before** ``` $ kubectl label dc myapp test-deployment-config label1=test --list app=myapp label1=test label1=test ``` **After** ``` $ kubectl label dc myapp test-deployment-config label1=test --list Listing labels for DeploymentConfig/myapp: label1=test app=myapp Listing labels for DeploymentConfig/test-deployment-config: label1=test ```
This commit is contained in:
@@ -310,7 +310,7 @@ func NewKubectlCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cob
|
||||
{
|
||||
Message: "Settings Commands:",
|
||||
Commands: []*cobra.Command{
|
||||
NewCmdLabel(f, out),
|
||||
NewCmdLabel(f, out, err),
|
||||
NewCmdAnnotate(f, out),
|
||||
NewCmdCompletion(out, ""),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user