To uninstall the webhooks extension:
-
Clone this repository
git clone https://github.com/tektoncd/experimental.git cd webhooks-extension
-
Use the
kubectl delete
command to delete the webhooks extensionOn Red Hat OpenShift:
kubectl delete -k overlays/openshift-latest
On other Kubernetes environments:
kubectl delete -k overlays/latest
Uninstall any of the prereqs added during installation:
-
Uninstall Tekton Triggers - this will delete any created EventListener including the
tekton-webhooks-eventlistener
we use:kubectl delete --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml
-
Uninstall Tekton Pipelines:
kubectl delete -f https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
Note: You may need to use the URL of the file you installed rather than the latest release in the above commands.
-
Uninstall additionally created resources added after webhook creation:
For OpenShift:
kubectl delete route el-tekton-webhooks-eventlistener -n <your installation namespace>`
For other environments using Ingress:
kubectl delete ingress el-tekton-webhooks-eventlistener -n <your installation namespace>`