oam-dev / rudr

A Kubernetes implementation of the Open Application Model specification
https://oam.dev
MIT License
1.54k stars 136 forks source link

Add reconciliation logic to get to the desired state for native K8s objects (deployment/svc/ing) #515

Closed iyyappam closed 4 years ago

iyyappam commented 4 years ago

https://github.com/oam-dev/rudr/issues/514

The issue was that rudr was not reconciling it's state with the latest status. If a deployment/svc/ing is deleted when the application confgiuration still exists, runtime doesn't recreate them. It detects those objects are not found but no action was taken.

The fix here is to recreate those objects back. The recreated objects have correct owner reference so no objects are orphaned.