Skip to content

Add CEL validation for unsupported BTP fields on TCPRoute/UDPRoute targets #8897

Open

Description

@muwaqar-cflt

Summary

Some BackendTrafficPolicySpec fields are silently ignored when the policy targets a TCPRoute or UDPRoute. For example, HTTP-specific fields like rateLimit, faultInjection, compression, responseOverride, httpUpgrade, requestBuffer, and telemetry have no effect on TCP/UDP routes but are not rejected at admission time.

This is inconsistent with the CEL validation added for Backend targets in #8890, which explicitly rejects unsupported fields via CEL rules.

Proposal

Add CEL validation rules to reject fields that are not applicable when the targetRef kind is TCPRoute or UDPRoute, similar to how Backend-targeted BTPs reject RDS-only fields.

Context

Raised in PR #8890 review by @zhaohuabing as a non-blocking nit for consistency.

Activity

  1. github-actions commented on May 30, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions