odo icon indicating copy to clipboard operation
odo copied to clipboard

odo dev cannot delete from cluster servicebindings from group servicebinding.io

Open feloy opened this issue 2 years ago • 4 comments

/kind bug

When a Devfile contains a Kubernetes resource declaring a servicebinding from group the servicebinding.io

and when removing the Kubernetes resource from the Devfile

odo dev is unable to delete the servicebinding from the cluster, as it tries to remove a servicebinding from the group binding.operators.coreos.com and not servicebinding.io.

feloy avatar Jul 13 '22 09:07 feloy

Initial story point estimation: 1

rm3l avatar Aug 31 '22 09:08 rm3l

Running this without SBO is not a problem because when it is not installed, the ServiceBinding resource is not created, hence there is no need of deleting it.

valaparthvi avatar Oct 04 '22 13:10 valaparthvi

But what about the secret created by odo using the SBO library, and the reference of this secret into the Deployment?

feloy avatar Oct 04 '22 14:10 feloy

You're right, the secret does not get deleted, at least not for binding.operators.coreos.com group. For servicebinding.io, the secrets are not created at all, which might be another bug. The secret eventually gets deleted via the owner reference when odo dev exits, but not when the binding is removed.

valaparthvi avatar Oct 04 '22 14:10 valaparthvi