Kubernetes 的 Go 客户端

Kubernetes 的 Go 客户端。(Go client for Kubernetes.)

Github星跟蹤圖

client-go

Go clients for talking to a kubernetes cluster.

We recommend using the v0.x.y tags for Kubernetes releases >= v1.17.0 and
kubernetes-1.x.y tags for Kubernetes releases < v1.17.0.
See INSTALL.md for detailed installation instructions.
go get k8s.io/client-go@master works, but will fetch master, which may be less stable than a tagged release.

BuildStatus Widget
GoReport Widget
GoDocWidget

Table of Contents

What's included

  • The kubernetes package contains the clientset to access Kubernetes API.
  • The discovery package is used to discover APIs supported by a Kubernetes API server.
  • The dynamic package contains a dynamic client that can perform generic operations on arbitrary Kubernetes API objects.
  • The plugin/pkg/client/auth packages contain optional authentication plugins for obtaining credentials from external sources.
  • The transport package is used to set up auth and start a connection.
  • The tools/cache package is useful for writing controllers.

Versioning

  • For each v1.x.y Kubernetes release, the major version (first digit)
    would remain 0.

  • Bugfixes will result in the patch version (third digit) changing. PRs that are
    cherry-picked into an older Kubernetes release branch will result in an update
    to the corresponding branch in client-go, with a corresponding new tag
    changing the patch version.

Branches and tags.

We will create a new branch and tag for each increment in the minor version
number. We will create only a new tag for each increment in the patch
version number. See semver for definitions of major,
minor, and patch.

The HEAD of the master branch in client-go will track the HEAD of the master
branch in the main Kubernetes repo.

Compatibility: your code <-> client-go

The v0.x.y tags indicate that go APIs may change in incompatible ways in
different versions.

See INSTALL.md for guidelines on requiring a specific
version of client-go.

Compatibility: client-go <-> Kubernetes clusters

Since Kubernetes is backwards compatible with clients, older client-go
versions will work with many different Kubernetes cluster versions.

We will backport bugfixes--but not new features--into older versions of
client-go.

Compatibility matrix

概覽

名稱與所有者kubernetes/client-go
主編程語言Go
編程語言Go (語言數: 1)
平台Docker, Kubernetes, Linux
許可證Apache License 2.0
發布數1310
最新版本名稱v0.30.0 (發布於 2024-04-17 17:27:02)
第一版名稱v1.4.0 (發布於 )
創建於2016-08-25 00:19:38
推送於2024-05-07 01:30:44
最后一次提交2024-05-06 16:18:31
星數8.6k
關注者數175
派生數2.9k
提交數4.3k
已啟用問題?
問題數1109
打開的問題數39
拉請求數104
打開的拉請求數1
關閉的拉請求數109
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部