You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
Currently, Kopf stores the internal status of the handlers in status.kopf (hard-coded). It is used for exchanging the information cross the event cycles.
This is done in the assumption that there is only one operator/controller per resource kind.
If two or more different Kopf-based operators/controllers are handling the resource, especially the reusable resource, such as Pods, they can collide.
Expected Behavior
The field of the internal status must be configurable. For example, in the handler declaration:
PS: There is also the metadata.annotations.last-seen-state. It should be turned off when the status is turned off. It makes no sense to store the last-seen-state and to calculate the diff, since with the status not persisted, there will be no multiple handler calls.
The text was updated successfully, but these errors were encountered:
Actual Behavior
Currently, Kopf stores the internal status of the handlers in
status.kopf
(hard-coded). It is used for exchanging the information cross the event cycles.This is done in the assumption that there is only one operator/controller per resource kind.
If two or more different Kopf-based operators/controllers are handling the resource, especially the reusable resource, such as Pods, they can collide.
Expected Behavior
The field of the internal status must be configurable. For example, in the handler declaration:
The controlling parts of the custom resource A can have a convention to use its own resource kinds as the field:
If explicitly set to
None
, the status is not persisted. Which implies that a different flow should be used (all-at-once lifecycle, errors ignored):PS: There is also the
metadata.annotations.last-seen-state
. It should be turned off when the status is turned off. It makes no sense to store the last-seen-state and to calculate the diff, since with the status not persisted, there will be no multiple handler calls.The text was updated successfully, but these errors were encountered: