openshift-labs / lab-build-your-own-operator

Build your own Kubernetes Operator
Apache License 2.0
7 stars 5 forks source link

Deleting the custom resource doesn't delete the pods and custom resource. #15

Open GrahamDumpleton opened 5 years ago

GrahamDumpleton commented 5 years ago

Using the operator code example in new variant of workshop and found that deleting the custom resource doesn't actually delete the pods and the custom resource as expecting. Just goes through a loop of trying to delete the pods it has, but keeps replacing them. Example needs to handle finalizer and deletion properly.