mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #8564 from GoogleCloudPlatform/revert-8404-messageEmptyKind
Revert "Enhance error message from kubectl when 'kind' is empty"
This commit is contained in:
commit
d85dc7b2ea
@ -46,9 +46,6 @@ func (m *Mapper) InfoForData(data []byte, source string) (*Info, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get type info from %q: %v", source, err)
|
||||
}
|
||||
if kind == "" {
|
||||
return nil, fmt.Errorf("kind not set in %q", source)
|
||||
}
|
||||
mapping, err := m.RESTMapping(kind, version)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to recognize %q: %v", source, err)
|
||||
|
Loading…
Reference in New Issue
Block a user