Skip to content

Commit 03a457e

Browse files
author
Andrew Rudoi
committed
chore: add make uninstall target
1 parent 083b3ae commit 03a457e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/book/src/quick-start.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ privileges or be logged in as admin. See [Prerequisites for using Kubernetes RBA
196196

197197
</aside>
198198

199+
## Uninstall CRDs
200+
201+
To delete your CRDs from the cluster:
202+
203+
```bash
204+
make uninstall
205+
```
206+
199207
## Next Step
200208

201209
Now, follow up the [CronJob tutorial][cronjob-tutorial] to better understand how it works by developing a demo example project.
@@ -204,3 +212,4 @@ Now, follow up the [CronJob tutorial][cronjob-tutorial] to better understand how
204212
[cronjob-tutorial]: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html
205213
[GOPATH-golang-docs]: https://golang.org/doc/code.html#GOPATH
206214
[how-to-write-go-code-golang-docs]: https://golang.org/doc/code.html
215+

pkg/scaffold/v2/makefile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ run: generate fmt vet manifests
7575
install: manifests
7676
kustomize build config/crd | kubectl apply -f -
7777
78+
# Uninstall CRDs from a cluster
79+
uninstall: manifests
80+
kustomize build config/crd | kubectl delete -f -
81+
7882
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
7983
deploy: manifests
8084
cd config/manager && kustomize edit set image controller=${IMG}

0 commit comments

Comments
 (0)