You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add option to disable ClusterIP routing via revision annotation
Adds the ability to optionally disable ClusterIP routing on a
per-revision basis
through the 'serving.knative.dev/disable-clusterip-routing' annotation.
When this annotation is set to 'true' on a revision, the activator will
bypass
ClusterIP routing and use direct pod IP routing exclusively, even when a
healthy
ClusterIP is available.
Key changes:
- Add DisableClusterIPRoutingAnnotationKey constant for the new
annotation
- Extend revisionThrottler to track and respect the disableClusterIP
setting
- Modify routing logic to skip ClusterIP when disabled
- Read annotation value during throttler creation from revision metadata
- Maintain full backward compatibility (ClusterIP routing enabled by
default)
This feature is useful for scenarios where direct pod routing is
preferred over
ClusterIP load balancing, such as for debugging, performance testing, or
when
specific routing behaviors are required.
Includes comprehensive tests to verify both disabled and default
behaviors.
0 commit comments