diff --git a/internal/cmd/egctl/status.go b/internal/cmd/egctl/status.go index a3df290a1fc..3a23b36afe4 100644 --- a/internal/cmd/egctl/status.go +++ b/internal/cmd/egctl/status.go @@ -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() } diff --git a/internal/cmd/egctl/status_test.go b/internal/cmd/egctl/status_test.go index 5c7bc209e59..ad1fd80b8bc 100644 --- a/internal/cmd/egctl/status_test.go +++ b/internal/cmd/egctl/status_test.go @@ -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, diff --git a/site/content/en/latest/user/egctl.md b/site/content/en/latest/user/egctl.md index c0c4c6206c3..3c612274046 100644 --- a/site/content/en/latest/user/egctl.md +++ b/site/content/en/latest/user/egctl.md @@ -775,19 +775,19 @@ eg-product Accepted True Accepted ~ egctl x status all -A NAME TYPE STATUS REASON -GatewayClass/eg-marketing Accepted True Accepted -GatewayClass/eg-product Accepted True Accepted +gatewayclass/eg-marketing Accepted True Accepted +gatewayclass/eg-product Accepted True Accepted NAMESPACE NAME TYPE STATUS REASON -marketing Gateway/eg Programmed True Programmed +marketing gateway/eg Programmed True Programmed Accepted True Accepted -product Gateway/eg Programmed True Programmed +product gateway/eg Programmed True Programmed Accepted True Accepted NAMESPACE NAME TYPE STATUS REASON -marketing HTTPRoute/backend ResolvedRefs True ResolvedRefs +marketing httproute/backend ResolvedRefs True ResolvedRefs Accepted True Accepted -product HTTPRoute/backend ResolvedRefs True ResolvedRefs +product httproute/backend ResolvedRefs True ResolvedRefs Accepted True Accepted ```