Unbinding workloads
For the binding.operators.coreos.com/v1alpha1 API:
You can unbind a workload from a backing service by using the kubectl or oc command line tool.
Procedure
-
To unbind a workload from a backing service, delete the
ServiceBindingcustom resource (CR) linked to it:$ kubectl delete ServiceBinding <.metadata.name>OR
$ oc delete ServiceBinding <.metadata.name>where
<.metadata.name>is the name of theServiceBindingresource.Examples$ kubectl delete ServiceBinding spring-petclinic-pgcluster$ oc delete ServiceBinding spring-petclinic-pgclusterwhere:
spring-petclinic-pgclusterSpecifies the name of the
ServiceBindingCR.
For the servicebinding.io/v1beta1 API:
You can unbind a workload from a backing service bound using a ServiceBinding custom resource (CR) from the servicebinding.io/v1beta1 API:
Procedure
-
To unbind a workload from a backing service, delete the
ServiceBindingcustom resource (CR) linked to it:$ kubectl delete servicebindings.servicebinding.io <.metadata.name>OR
$ oc delete servicebindings.servicebinding.io <.metadata.name>Examples$ kubectl delete servicebindings.servicebinding.io spring-petclinic-pgcluster$ oc delete servicebindings.servicebinding.io spring-petclinic-pgclusterwhere:
spring-petclinic-pgclusterSpecifies the name of the
ServiceBindingCR.