Skip to content

Avoid duplicated xDS validation #5311

Closed

Description

@zhaohuabing

Originally commented here: #5148 (comment)

Activity

  1. self-assigned this
    on Feb 19, 2025
  2. added this to the v1.4.0-rc.1 milestone on Feb 19, 2025
  3. zhaohuabing commented on Mar 10, 2025

    @zhaohuabing
    MemberAuthor

    If we only validate the resource at the last stage, it might be difficult to locate the code that generated the invalidated xds.

    Keeping the original validation makes debugging easier when a validation error occurs, as these checks are closer to the code with problems.

    Validating 1000 HTTPRoutes takes less than 1 millisecond in a kind cluster in my dev machine. It's not that bad.

    Validation of all resources took  6.071µs
    Validation of all resources took  9.969µs
    Validation of all resources took  42.08µs
    Validation of all resources took  4.878249ms
    Validation of all resources took  25.899µs
    Validation of all resources took  6.012µs
    Validation of all resources took  25.689µs
    

    Close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions