cli-runtime: include group in resource-not-found error message (#140759)
- cli-runtime: include group in resource-not-found error message
Signed-off-by: Abhishek Pareek makeittotop@users.noreply.github.com
- cli-runtime: align resource-not-found error with helpers.go pattern
Per review feedback on kubernetes/kubernetes#140759: use a switch covering group+version, group-only, version-only. Also drops the added unit test as requested.
- cli-runtime: drop stray whitespace diff in builder_test.go
Per review feedback on kubernetes/kubernetes#140759: revert the leftover blank-line changes from the removed test so this file has no unrelated diff.
Signed-off-by: Abhishek Pareek makeittotop@users.noreply.github.com Co-authored-by: Abhishek Pareek makeittotop@users.noreply.github.com
Kubernetes-commit: da21aa3d3454e7f257db039ef7c22b6f375b2011
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
cli-runtime
Set of helpers for creating kubectl commands, as well as kubectl plugins.
Purpose
This library is a shared dependency for clients to work with Kubernetes API infrastructure which allows to maintain kubectl compatible behavior. Its first consumer is
k8s.io/kubectl.Compatibility
There are NO compatibility guarantees for this repository. It is in direct support of Kubernetes, so branches will track Kubernetes and be compatible with that repo. As we more cleanly separate the layers, we will review the compatibility guarantee.
Where does it come from?
cli-runtimeis synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/cli-runtime. Code changes are made in that location, merged intok8s.io/kubernetesand later synced here.Things you should NOT do
pkgin this repo. Those are driven fromk8s.io/kubernetes/staging/src/k8s.io/cli-runtime.kubectl.