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

Fix items in nested lists not always being matched #168

Merged

Commits on Oct 24, 2023

  1. Fix items in nested lists not always being matched

    When a policy is looking for a field in a list, which is itself nested
    in an object in a list, and when there are multiple items in these lists
    on the cluster, the controller was not always matching things correctly.
    This could result in the policy's compliance depending on the order of
    the items in the nested list on the cluster. (The new test case may be
    more clear than this problem description.)
    
    This situation is difficult to reproduce: because of the way some lists
    were compared before, fields that don't seem like they should affect the
    result can change the outcome.
    
    Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
    JustinKuli committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    b43e137 View commit details
    Browse the repository at this point in the history