mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Add Cleanup section to apiextensions client-go
This commit is contained in:
parent
5eccc7ae80
commit
36271f985d
@ -44,3 +44,9 @@ type User struct {
|
|||||||
Password string `json:"password"`
|
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
|
||||||
|
@ -110,7 +110,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
fmt.Print("PROCESSED\n")
|
fmt.Print("PROCESSED\n")
|
||||||
|
|
||||||
// Fetch a list of our TPRs
|
// Fetch a list of our CRs
|
||||||
exampleList := crv1.ExampleList{}
|
exampleList := crv1.ExampleList{}
|
||||||
err = exampleClient.Get().Resource(crv1.ExampleResourcePlural).Do().Into(&exampleList)
|
err = exampleClient.Get().Resource(crv1.ExampleResourcePlural).Do().Into(&exampleList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user