adding CR deletion

following https://github.com/operator-framework/getting-started#cleanup
This commit is contained in:
Chris Lu 2019-11-20 15:36:59 -08:00
parent f8c94e43bb
commit ead3a612a5

View File

@ -21,6 +21,7 @@ install: ## Install all resources (CR/CRD's, RBCA and Operator)
uninstall: ## Uninstall all that all performed in the $ make install uninstall: ## Uninstall all that all performed in the $ make install
@echo ....... Uninstalling ....... @echo ....... Uninstalling .......
@echo ....... Deleting CRDs....... @echo ....... Deleting CRDs.......
- kubectl delete -f deploy/crds/seaweedfs.com_v1alpha1_seaweedfscluster_cr.yaml -n ${NAMESPACE}
- kubectl delete -f deploy/crds/seaweedfs.com_seaweedfsclusters_crd.yaml -n ${NAMESPACE} - kubectl delete -f deploy/crds/seaweedfs.com_seaweedfsclusters_crd.yaml -n ${NAMESPACE}
@echo ....... Deleting Rules and Service Account ....... @echo ....... Deleting Rules and Service Account .......
- kubectl delete -f deploy/role.yaml -n ${NAMESPACE} - kubectl delete -f deploy/role.yaml -n ${NAMESPACE}