8000 [Test] Fix unknown field warning by adding FieldValidationIgnore to Update call by nadongjun · Pull Request #3692 · ray-project/kuberay · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Test] Fix unknown field warning by adding FieldValidationIgnore to Update call #3692

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nadongjun
Copy link
Contributor

Why are these changes needed?

  • The following warning was being emitted during tests using the Update() method on RayCluster:
  • < 8E7F /ul> image
    • This is because .Update() sends the full object including fields like creationTimestamp, which are managed by the Kubernetes API server and not expected in the spec. Unlike Apply(), the Update method doesn't omit empty or unset fields.
    UpdateOptions{FieldValidation: metav1.FieldValidationIgnore}
    • to the Update() call, which suppresses warnings about unknown fields while preserving the intended behavior.

    ref

    Related issue number

    Checks

    • I've made sure the tests are passing.
    • Testing Strategy
      • Unit tests
      • Manual tests
      • This PR is not tested :(

Signed-off-by: Dongjun Na <kmu5544616@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0