[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5075":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},5075,"client-go","kubernetes\u002Fclient-go","kubernetes","Go client for Kubernetes.",null,"Go",9836,3029,168,0,4,11,31,12,82.6,"Apache License 2.0",false,"master",[24],"k8s-staging","2026-06-12 04:00:24","> ⚠️ **This is an automatically published [staged repository](https:\u002F\u002Fgit.k8s.io\u002Fkubernetes\u002Fstaging#external-repository-staging-area) for Kubernetes**.   \n> Contributions, including issues and pull requests, should be made to the main Kubernetes repository: [https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkubernetes](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkubernetes).  \n> This repository is read-only for importing, and not used for direct contributions.  \n> See [CONTRIBUTING.md](.\u002FCONTRIBUTING.md) for more details.\n\n# client-go\n\nGo clients for talking to a [kubernetes](http:\u002F\u002Fkubernetes.io\u002F) cluster.\n\nWe recommend using the `v0.x.y` tags for Kubernetes releases >= `v1.17.0` and\n`kubernetes-1.x.y` tags for Kubernetes releases \u003C `v1.17.0`.\n\nThe fastest way to add this library to a project is to run `go get k8s.io\u002Fclient-go@latest` with go1.16+.\nSee [INSTALL.md](\u002FINSTALL.md) for detailed installation instructions and troubleshooting.\n\n[![GoDocWidget]][GoDocReference]\n\n[GoDocWidget]: https:\u002F\u002Fgodoc.org\u002Fk8s.io\u002Fclient-go?status.svg\n[GoDocReference]:https:\u002F\u002Fgodoc.org\u002Fk8s.io\u002Fclient-go \n\n## Table of Contents\n\n- [What's included](#whats-included)\n- [Versioning](#versioning)\n  - [Compatibility: your code \u003C-> client-go](#compatibility-your-code---client-go)\n  - [Compatibility: client-go \u003C-> Kubernetes clusters](#compatibility-client-go---kubernetes-clusters)\n  - [Compatibility matrix](#compatibility-matrix)\n  - [Why do the 1.4 and 1.5 branch contain top-level folder named after the version?](#why-do-the-14-and-15-branch-contain-top-level-folder-named-after-the-version)\n- [Kubernetes tags](#kubernetes-tags)\n- [How to get it](#how-to-get-it)\n- [How to use it](#how-to-use-it)\n- [Dependency management](#dependency-management)\n- [Contributing code](#contributing-code)\n\n### What's included\n\n* The `kubernetes` package contains the clientset to access Kubernetes API.\n* The `discovery` package is used to discover APIs supported by a Kubernetes API server.\n* The `dynamic` package contains a dynamic client that can perform generic operations on arbitrary Kubernetes API objects.\n* The `plugin\u002Fpkg\u002Fclient\u002Fauth` packages contain optional authentication plugins for obtaining credentials from external sources.\n* The `transport` package is used to set up auth and start a connection.\n* The `tools\u002Fcache` package is useful for writing controllers.\n\n### Versioning\n\n- For each `v1.x.y` Kubernetes release, the major version (first digit)\nwould remain `0`.\n\n- Bugfixes will result in the patch version (third digit) changing. PRs that are\ncherry-picked into an older Kubernetes release branch will result in an update\nto the corresponding branch in `client-go`, with a corresponding new tag\nchanging the patch version.\n\n#### Branches and tags.\n\nWe will create a new branch and tag for each increment in the minor version\nnumber. We will create only a new tag for each increment in the patch\nversion number. See [semver](http:\u002F\u002Fsemver.org\u002F) for definitions of major,\nminor, and patch.\n\nThe HEAD of the master branch in client-go will track the HEAD of the master\nbranch in the main Kubernetes repo.\n\n#### Compatibility: your code \u003C-> client-go\n\nThe `v0.x.y` tags indicate that go APIs may change in incompatible ways in\ndifferent versions.\n\nSee [INSTALL.md](INSTALL.md) for guidelines on requiring a specific\nversion of client-go.\n\n#### Compatibility: client-go \u003C-> Kubernetes clusters\n\nSince Kubernetes is backwards compatible with clients, older `client-go`\nversions will work with many different Kubernetes cluster versions.\n\nWe will backport bugfixes--but not new features--into older versions of\n`client-go`.\n\n\n#### Compatibility matrix\n\n|                               | Kubernetes 1.29 | Kubernetes 1.30 | Kubernetes 1.31 | Kubernetes 1.32 | Kubernetes 1.33 | Kubernetes 1.34 |\n| ----------------------------- | --------------- | --------------- | --------------- | --------------- | --------------- | --------------- |\n| `kubernetes-1.29.0`\u002F`v0.29.0` | ✓               | +-              | +-              | +-              | +-              | +-              |\n| `kubernetes-1.30.0`\u002F`v0.30.0` | +-              | ✓               | +-              | +-              | +-              | +-              |\n| `kubernetes-1.31.0`\u002F`v0.31.0` | +-              | +-              | ✓               | +-              | +-              | +-              |\n| `kubernetes-1.32.0`\u002F`v0.32.0` | +-              | +-              | +-              | ✓               | +-              | +-              |\n| `kubernetes-1.33.0`\u002F`v0.33.0` | +-              | +-              | +-              | +-              | ✓               | +-              |\n| `kubernetes-1.34.0`\u002F`v0.34.0` | +-              | +-              | +-              | +-              | +-              | ✓               |\n| `HEAD`                        | +-              | +-              | +-              | +-              | +-              | +-              |\n\nKey:\n\n* `✓` Exactly the same features \u002F API objects in both client-go and the Kubernetes\n  version.\n* `+` client-go has features or API objects that may not be present in the\n  Kubernetes cluster, either due to that client-go has additional new API, or\n  that the server has removed old API. However, everything they have in\n  common (i.e., most APIs) will work. Please note that alpha APIs may vanish or\n  change significantly in a single release.\n* `-` The Kubernetes cluster has features the client-go library can't use,\n  either due to the server has additional new API, or that client-go has\n  removed old API. However, everything they share in common (i.e., most APIs)\n  will work.\n\nSee the [CHANGELOG](.\u002FCHANGELOG.md) for a detailed description of changes\nbetween client-go versions.\n\n| Branch         | Canonical source code location      | Maintenance status |\n| -------------- | ----------------------------------- | ------------------ |\n| `release-1.25` | Kubernetes main repo, 1.25 branch   | =-                 |\n| `release-1.26` | Kubernetes main repo, 1.26 branch   | =-                 |\n| `release-1.27` | Kubernetes main repo, 1.27 branch   | =-                 |\n| `release-1.28` | Kubernetes main repo, 1.28 branch   | =-                 |\n| `release-1.29` | Kubernetes main repo, 1.29 branch   | =-                 |\n| `release-1.30` | Kubernetes main repo, 1.30 branch   | =-                 |\n| `release-1.31` | Kubernetes main repo, 1.31 branch   | =                  |\n| `release-1.32` | Kubernetes main repo, 1.32 branch   | ✓                  |\n| `release-1.33` | Kubernetes main repo, 1.33 branch   | ✓                  |\n| `release-1.34` | Kubernetes main repo, 1.34 branch   | ✓                  |\n| client-go HEAD | Kubernetes main repo, master branch | ✓                  |\n\nKey:\n\n* `✓` Changes in main Kubernetes repo are actively published to client-go by a bot\n* `=` Maintenance is manual, only severe security bugs will be patched.\n* `-` Deprecated; please upgrade.\n\n#### Deprecation policy\n\nWe will maintain branches for at least six months after their first stable tag\nis cut. (E.g., the clock for the release-2.0 branch started ticking when we\ntagged v2.0.0, not when we made the first alpha.) This policy applies to\nevery version greater than or equal to 2.0.\n\n#### Why do the 1.4 and 1.5 branch contain top-level folder named after the version?\n\nFor the initial release of client-go, we thought it would be easiest to keep\nseparate directories for each minor version. That soon proved to be a mistake.\nWe are keeping the top-level folders in the 1.4 and 1.5 branches so that\nexisting users won't be broken.\n\n### Kubernetes tags\n\nThis repository is still a mirror of\n[k8s.io\u002Fkubernetes\u002Fstaging\u002Fsrc\u002Fclient-go](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkubernetes\u002Ftree\u002Fmaster\u002Fstaging\u002Fsrc\u002Fk8s.io\u002Fclient-go),\nthe code development is still done in the staging area.\n\nSince Kubernetes `v1.8.0`, when syncing the code from the staging area,\nwe also sync the Kubernetes version tags to client-go, prefixed with\n`kubernetes-`. From Kubernetes `v1.17.0`, we also create matching semver\n`v0.x.y` tags for each `v1.x.y` Kubernetes release.\n\nFor example, if you check out the `kubernetes-1.17.0` or the `v0.17.0` tag in\nclient-go, the code you get is exactly the same as if you check out the `v1.17.0`\ntag in Kubernetes, and change directory to `staging\u002Fsrc\u002Fk8s.io\u002Fclient-go`.\n\nThe purpose is to let users quickly find matching commits among published repos,\nlike [sample-apiserver](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fsample-apiserver),\n[apiextension-apiserver](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fapiextensions-apiserver),\netc. The Kubernetes version tag does NOT claim any backwards compatibility\nguarantees for client-go. Please check the [semantic versions](#versioning) if\nyou care about backwards compatibility.\n\n### How to get it\n\nTo get the latest version, use go1.16+ and fetch using the `go get` command. For example:\n\n```\ngo get k8s.io\u002Fclient-go@latest\n```\n\nTo get a specific version, use go1.11+ and fetch the desired version using the `go get` command. For example:\n\n```\ngo get k8s.io\u002Fclient-go@v0.20.4\n```\n\nSee [INSTALL.md](\u002FINSTALL.md) for detailed instructions and troubleshooting.\n\n### How to use it\n\nIf your application runs in a Pod in the cluster, please refer to the\nin-cluster [example](examples\u002Fin-cluster-client-configuration), otherwise please\nrefer to the out-of-cluster [example](examples\u002Fout-of-cluster-client-configuration).\n\n### Dependency management\n\nFor details on how to correctly use a dependency management for installing client-go, please see [INSTALL.md](INSTALL.md).\n\n### Contributing code\nPlease send pull requests against the client packages in the Kubernetes main [repository](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkubernetes). Changes in the staging area will be published to this repository every day.\n","kubernetes\u002Fclient-go 是一个用于与 Kubernetes 集群进行交互的 Go 语言客户端库。它提供了包括但不限于访问 Kubernetes API 的 clientset、发现 API 支持的服务、动态操作任意 Kubernetes API 对象等功能，同时支持多种认证插件和连接设置，以及用于编写控制器的缓存工具。该项目适合需要在 Go 应用中集成 Kubernetes 管理功能的场景，如自动化部署、监控或管理基于 Kubernetes 的服务。",2,"2026-06-11 03:02:24","top_language"]