This section describes the steps used to delete the API server source, trigger, service account, cluster role, and cluster role binding using kn
and oc
commands.
Prerequisites
-
You must have the
kn
CLI installed.
Procedure
-
Delete the trigger:
$ kn trigger delete <trigger_name>
-
Delete the event source:
$ kn source apiserver delete <source_name>
-
Delete the service account, cluster role, and cluster binding:
$ oc delete -f authentication.yaml