Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-init conditions each reconcile #415

Merged

Commits on Apr 2, 2024

  1. Re-init conditions each reconcile

    This patch follows the same pattern applied to the other operators,
    where we re-init the condition at each reconcile loop. Conditions
    are re-evaluated and updated, keeping the LastTransitionTime for
    those that haven't changed (it avoids the transition from True to
    Unknown to True again).
    In addition, the "observedGeneration" field is introduced, and it
    is used by the openstack-operator to check the IsReady() function
    for a particular CR in case a minor update is triggered.
    All the conditions are evaluated during the main Reconcile loop (
    or the reconcileNormal function in some circumstances), hence the
    main ReadyCondition is updated within the same flow. The defer
    function still updates the Resource and Mirror the condition to the
    top-level CR.
    
    Signed-off-by: Francesco Pantano <[email protected]>
    fmount committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    3d1c9ff View commit details
    Browse the repository at this point in the history