Add label support for kubectl describe

Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
This commit is contained in:
hurf
2015-06-12 15:08:28 +08:00
parent 2c5d40a69e
commit fa0efe3927
5 changed files with 29 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ func TestDescribeUnknownSchemaObject(t *testing.T) {
t.Errorf("unexpected describer: %#v", d)
}
if buf.String() != fmt.Sprintf("%s\n", d.Output) {
if buf.String() != fmt.Sprintf("%s\n\n", d.Output) {
t.Errorf("unexpected output: %s", buf.String())
}
}