Merge pull request #48389 from nikhita/apiextensions-client-go-cleanup

Automatic merge from submit-queue

apiextensions: add cleanup section to client-go

Adds a `Cleanup` section to be consistent with other client-go tutorials.

Fixes https://github.com/kubernetes/apiextensions-apiserver/issues/1

**Release note**:

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-07-03 03:07:04 -07:00 committed by GitHub
commit 13e142fb18
2 changed files with 8 additions and 2 deletions

View File

@ -43,4 +43,10 @@ type User struct {
Name string `json:"name"`
Password string `json:"password"`
}
```
```
## Cleanup
Successfully running this program will clean the created artifacts. If you terminate the program without completing, you can clean up the created CustomResourceDefinition with:
kubectl delete crd examples.cr.client-go.k8s.io

View File

@ -110,7 +110,7 @@ func main() {
}
fmt.Print("PROCESSED\n")
// Fetch a list of our TPRs
// Fetch a list of our CRs
exampleList := crv1.ExampleList{}
err = exampleClient.Get().Resource(crv1.ExampleResourcePlural).Do().Into(&exampleList)
if err != nil {