sai3010 / Typesense-Kubernetes-Operator

An operator to manage Typesense clusters on Kubernetes
Apache License 2.0
45 stars 11 forks source link

BUG: Operator cleanup removes entire namesace #11

Closed psaxton closed 8 months ago

psaxton commented 8 months ago

Describe the bug When the operator is cleaned up, it removes the entire namespace including resources which are not managed by the operator.

To Reproduce Steps to reproduce the behavior:

1) Apply operator to namespace with existing resources 2) Remove operator from namespace

Expected behavior It should be expected that the operator would clean up the resources it manages: Config Map, Stateful Set, Persistent Volume Claims, Persistent Volumes, Service, Headless Service, etc.

All resources not managed by the operator should be left untouched.

Please complete the following information:

Additional context This bug could potentially cause serious damage when applied to a working environment.

sai3010 commented 8 months ago

@psaxton Thanks for pointing it out, will release a fix soon.

sai3010 commented 8 months ago

This is Fixed.