目录
abhishek pareek

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

2天前1422次提交

⚠️ This is an automatically published staged repository for Kubernetes.
Contributions, including issues and pull requests, should be made to the main Kubernetes repository: https://github.com/kubernetes/kubernetes.
This repository is read-only for importing, and not used for direct contributions.
See CONTRIBUTING.md for more details.

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-runtime is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/cli-runtime. Code changes are made in that location, merged into k8s.io/kubernetes and later synced here.

Things you should NOT do

  1. Add API types to this repo. This is for the helpers, not for the types.
  2. Directly modify any files under pkg in this repo. Those are driven from k8s.io/kubernetes/staging/src/k8s.io/cli-runtime.
  3. Expect compatibility. This repo is direct support of Kubernetes and the API isn’t yet stable enough for API guarantees.
  4. Add any type that only makes sense only for kubectl.
关于
8.3 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号