Reconcile loop called every second on OpenShift, but not on Kubernetes

56 views
Skip to first unread message

Juraci Paixão Kröhling

unread,
Feb 25, 2019, 10:32:22 AM2/25/19
to Operator Framework
Hello,

I'm currently experiencing a difference in behavior that I cannot
account for, and perhaps it's related to the Operator Framework: when
the my operator is running in Kubernetes, the reconciliation loop is
called only when the CR is changed. When it's running in OpenShift, the
reconciliation loops is called every second.

Which one is the correct behavior?

- Juca.

Juraci Paixão Kröhling

unread,
Mar 1, 2019, 5:27:20 AM3/1/19
to operator-...@googlegroups.com
As an update: looks like this was happening because I store back the CR
at the end of the reconcile loop. For Kubernetes, it's a noop, as it
detects that the CR hasn't changed.

Doing a `reflect.DeepEqual(original, reconciled)` before issuing an
update did the trick.

- Juca.
Reply all
Reply to author
Forward
0 new messages