Add Cleanup section to apiextensions client-go

This commit is contained in:
Nikhita Raghunath 2017-07-02 03:53:35 +05:30
parent 5eccc7ae80
commit 36271f985d
No known key found for this signature in database
GPG Key ID: B944F27A57CF61F5
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 {