Uninstall Vault operator

To uninstall Vault operator, run the following command:

$ curl -fsSL https://raw.githubusercontent.com/kubevault/operator/0.1.0/hack/deploy/vault.sh \
    | bash -s -- --uninstall [--namespace=NAMESPACE]

+ kubectl delete deployment -l app=vault -n kube-system
deployment "vault-operator" deleted
+ kubectl delete service -l app=vault -n kube-system
service "vault-operator" deleted
+ kubectl delete secret -l app=vault -n kube-system
No resources found
+ kubectl delete serviceaccount -l app=vault -n kube-system
No resources found
+ kubectl delete clusterrolebindings -l app=vault -n kube-system
No resources found
+ kubectl delete clusterrole -l app=vault -n kube-system
No resources found
+ kubectl delete initializerconfiguration -l app=vault
initializerconfiguration "vault-initializer" deleted

The above command will leave the Vault operator crd objects as-is. If you wish to nuke all Vault operator crd objects, also pass the --purge flag. This will keep a copy of Vault operator crd objects in your current directory.