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

operator: Fix deletion of newer NMstate CRs #816

Merged
merged 1 commit into from
Sep 1, 2021

Commits on Sep 1, 2021

  1. operator: Fix deletion of newer NMstate CRs

    Operator deletes new NMState CR if there is already one
    existing. The problem is however, that current CRs are not
    always listed in correct order, which means that the current
    logic sometimes doesn't delete new CR when another already
    exists, causing e2e tests to flake.
    
    This commit sorts listed NMstate CRs when there are more than one
    of them, and compare the name of the reconciled CR with the oldest.
    
    Signed-off-by: Radim Hrazdil <rhrazdil@redhat.com>
    Radim Hrazdil committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    119f2f5 View commit details
    Browse the repository at this point in the history