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

Add support for pod status.phase field selector in fake client #50

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

triffer
Copy link
Contributor

@triffer triffer commented Dec 22, 2022

Description

Currently some of the tests fail. We didn't have a test job configured for this repo when this was introduced, so we didn't see it.
The tests were failing since the update of sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.0 (#46).
The root cause why tests are failing is, that a support for indexes was introduced to the fake client (kubernetes-sigs/controller-runtime#2025). Before the field selectors were just ignored. After adding the change in the fake client field selectors unknown to the fake client will cause an error.

Changes proposed in this pull request:

  • Add the status.phase field selector fake to the fake client

Related issue(s)

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 22, 2022
@kyma-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 22, 2022
@triffer triffer marked this pull request as ready for review December 22, 2022 07:39
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 22, 2022
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 11, 2023
@kyma-bot kyma-bot merged commit dd37de0 into kyma-project:main Jan 11, 2023
@triffer triffer deleted the pod-field-selector-fake branch January 11, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants