deis / steward-framework

Go SDK for the Service Catalog Controller API
MIT License
6 stars 3 forks source link

Fix delete instance event handler #56

Open arschles opened 7 years ago

arschles commented 7 years ago

When an Instance is deleted, handleDeleteInstance is called. It doesn't decode the event's object correctly, and the following error is omitted:

00:31:40 DEBUG framework.k8s.instance loop.go:45 instance loop received event
00:31:40 ERROR framework.k8s.instance loop.go:70 delete instance event handler failed (not an instance)

In its current state, the handler should match the same decoding logic as in handleAddInstance.