Skip to content

Commit

Permalink
change kind name to small-case
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Feb 10, 2024
1 parent cf73757 commit 3aca2ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/egctl/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func fetchStatusBodies(resourcesList client.ObjectList, resourceType string, qui
nameField := item.FieldByName("Name")
if typedName {
kindField := item.FieldByName("Kind")
name = kindField.String() + "/" + nameField.String()
name = strings.ToLower(kindField.String()) + "/" + nameField.String()
} else {
name = nameField.String()
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/egctl/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ btls foobar2 test-status-2 test reason 2
allNamespaces: false,
typedName: true,
outputs: `NAME TYPE STATUS REASON
EnvoyPatchPolicy/epp foobar2 test-status-2 test reason 2
envoypatchpolicy/epp foobar2 test-status-2 test reason 2
foobar1 test-status-1 test reason 1
`,
expect: true,
Expand Down

0 comments on commit 3aca2ce

Please sign in to comment.