Commit eadd20ef authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #47748 from nikhita/client-go-examples-readme

Automatic merge from submit-queue Update custom-resources example in client-go - Update client-go examples `README.md` to point to the CustomResources example instead of the deprecated TPR one. - Delete `staging/src/k8s.io/client-go/examples/custom-resources`. Fixing #47743. **Release note**: ```release-note NONE ``` /cc @ahmetb @sttts
parents df41787b bfa9ce43
...@@ -20,9 +20,12 @@ for client-go. ...@@ -20,9 +20,12 @@ for client-go.
- [**Work queues**](./workqueue): Create a hotloop-free controller with the - [**Work queues**](./workqueue): Create a hotloop-free controller with the
rate-limited workqueue and the [informer framework][informer]. rate-limited workqueue and the [informer framework][informer].
- [**Third-party resources (deprecated)**](./third-party-resources-deprecated): - [**Third-party resources (deprecated)**](./third-party-resources-deprecated):
Register a third-party resource type with the API, create/update/query this third-party
type, and write a controller that drives the cluster state based on the changes to
the third-party resources.
- [**Custom Resource Definition (successor of TPR)**](https://git.k8s.io/apiextensions-apiserver/examples/client-go):
Register a custom resource type with the API, create/update/query this custom Register a custom resource type with the API, create/update/query this custom
type, and write a controller drives the cluster state based on the changes to type, and write a controller that drives the cluster state based on the changes to
the custom resources. the custom resources.
[informer]: https://godoc.org/k8s.io/client-go/tools/cache#NewInformer [informer]: https://godoc.org/k8s.io/client-go/tools/cache#NewInformer
# Custom Resource Example
**Note:** CustomResourceDefinition is the successor of the deprecated ThirdPartyResource.
For a client-go example using CustomResourceDefinitions, go to
[k8s.io/apiextensions-apiserver/examples/client-go](https://git.k8s.io/apiextensions-apiserver/examples/client-go).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment