Skip to content

Commit

Permalink
fix(odoo): prevent reconciliation loop (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmoz authored and pmig committed Dec 19, 2023
1 parent 5ea60b6 commit b355cb2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package eu.glasskube.operator.apps.odoo

import eu.glasskube.kubernetes.client.patchOrUpdateResourceAndStatus
import eu.glasskube.kubernetes.client.patchOrUpdateStatus
import eu.glasskube.operator.api.reconciler.informerEventSource
import eu.glasskube.operator.apps.odoo.dependent.OdooConfigMap
Expand Down Expand Up @@ -90,12 +89,7 @@ class OdooReconciler(webhookService: WebhookService) :
}

return with(resource) {
if (FINALIZER in metadata.finalizers) {
metadata.finalizers.remove(FINALIZER)
patchOrUpdateResourceAndStatus(newStatus)
} else {
patchOrUpdateStatus(newStatus)
}
patchOrUpdateStatus(newStatus)
}
}

Expand Down

0 comments on commit b355cb2

Please sign in to comment.