kubectl/pkg/cmd/get
Ondra Kupka cf8aed98eb cli-runtime: Return defined error from Builder
There is a custom error message returned from resource.Builder when
SingleResourceType is set and multiple resources types are specified,
which makes it impossible to check for the condition in code easily.

This patch adds resource.ErrMultipleResourceTypes that is returned
precisely in this case so that it can be checked.

This patch also removes an extra custom error message in kubectl get,
which is actually never reached, because the builder fails before.

Kubernetes-commit: 82896feebbdf1c0809c0fec29988eff15cb02837
2025-08-04 22:48:57 +02:00
..
customcolumn.go Fix Go vet errors for master golang 2024-09-12 18:15:22 +05:30
customcolumn_flags.go sort custom column print flags 2022-03-03 22:31:58 +08:00
customcolumn_flags_test.go Remove ioutil from kubectl 2022-07-30 22:31:16 +09:00
customcolumn_test.go Escape terminal special characters in kubectl (#112553) 2022-10-30 16:29:24 +00:00
get.go cli-runtime: Return defined error from Builder 2025-08-04 22:48:57 +02:00
get_flags.go Removes deprecated kubectl openapi column printing 2023-01-10 15:30:04 -08:00
get_test.go Improve ignore-not-found behavior (#132542) 2025-07-03 01:53:24 +00:00
humanreadable_flags.go Moves kubectl get subcommand to staging 2019-10-29 15:51:00 -07:00
humanreadable_flags_test.go Moves kubectl get subcommand to staging 2019-10-29 15:51:00 -07:00
skip_printer.go Switch TableGenerator/TableConvertor interfaces to metav1 2019-11-26 13:13:25 -05:00
sorter.go Change non-quantity strings to sort alphanumerically, instead of using "Natural Sort", which is confusing for users. 2024-04-24 14:59:37 -04:00
sorter_test.go Use ptr.To instead of deprecated pointer functions 2024-05-20 16:14:54 -04:00
table_printer.go switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00