teseraio / ensemble

Modular Kubernetes operator to manage the lifecycle of databases
https://ensembleoss.io
Mozilla Public License 2.0
42 stars 1 forks source link

Fix too many evals #75

Closed ferranbt closed 3 years ago

ferranbt commented 3 years ago

The K8s provider was updating the instance every time there was a Pod event update but we only need to do it for state changes that might create a reconciliation. This PR filters the watch events and only updates when the state changes either to Running or Stopped.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tesera/ensemble/AeDLoNViSrpLWR2DxxLYoRtthH4e
✅ Preview: https://ensemble-git-fix-too-many-evals-tesera.vercel.app