From bfa9ce4308ca897711eb1b822bd5f0e31bbef31d Mon Sep 17 00:00:00 2001 From: Nikhita Raghunath Date: Tue, 20 Jun 2017 02:20:50 +0530 Subject: [PATCH] Update CR example in client-go Remove custom-resources directory from client-go Add TPR example back Mention CRD is successor to TPR --- staging/src/k8s.io/client-go/examples/README.md | 7 +++++-- .../k8s.io/client-go/examples/custom-resources/README.md | 7 ------- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 staging/src/k8s.io/client-go/examples/custom-resources/README.md diff --git a/staging/src/k8s.io/client-go/examples/README.md b/staging/src/k8s.io/client-go/examples/README.md index 08909dd596..2912bb8854 100644 --- a/staging/src/k8s.io/client-go/examples/README.md +++ b/staging/src/k8s.io/client-go/examples/README.md @@ -20,9 +20,12 @@ for client-go. - [**Work queues**](./workqueue): Create a hotloop-free controller with the rate-limited workqueue and the [informer framework][informer]. - [**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 - 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. [informer]: https://godoc.org/k8s.io/client-go/tools/cache#NewInformer - diff --git a/staging/src/k8s.io/client-go/examples/custom-resources/README.md b/staging/src/k8s.io/client-go/examples/custom-resources/README.md deleted file mode 100644 index fe79eb6d21..0000000000 --- a/staging/src/k8s.io/client-go/examples/custom-resources/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# 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).