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

Allow test cases to interact with client builder #328

Merged
merged 1 commit into from Jan 4, 2023

Commits on Jan 4, 2023

  1. Allow test cases to interact with client builder

    Controller runtime now supports list queries using field indexes with
    the fake client. If a fake client makes a request using a field index
    that is not registered, it will return an error.
    
    The fake client was previously created with a scheme and an initial set
    of objects. It now can be created with a func that can interact with the
    client builder which is where a field index can be registered. The
    `WithClientBuilder` field is optional on each test case struct and
    ExpectConfig, allowing the fake client to be further configured.
    
    Signed-off-by: Scott Andrews <andrewssc@vmware.com>
    scothis committed Jan 4, 2023
    Copy the full SHA
    50c3b86 View commit details
    Browse the repository at this point in the history