-
Notifications
You must be signed in to change notification settings - Fork 559
Handle deployment url for ingress, gateway etc.. #4234
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
base: develop
Are you sure you want to change the base?
Conversation
|
@claude full-review |
This comment was marked as outdated.
This comment was marked as outdated.
|
@claude full-review |
|
Claude finished @safoinme's task —— View job Full PR Review ✅I've completed a comprehensive review of the Kubernetes deployer URL handling improvements. Here's my detailed feedback: 🎯 OverviewThis PR implements improved URL discovery and preference handling for Kubernetes deployments, adding support for Gateway API, Ingress, LoadBalancer, NodePort, and ClusterIP URL types. The implementation shows significant improvement from the previous review—tests have been added and the PR description has been updated. 📋 Summary of ChangesCore Changes
✅ Strengths1. Tests Are Now PresentThe previous review's main blocker has been addressed! The PR now includes:
2. Well-Structured URL DiscoveryThe separation of concerns is clean:
3. Good Error MessagesThe discovered_available = [
k for k, v in discovered_urls.items() if v is not None
]
raise DeployerError(
f"URL preference '{preference.value}' requested but no matching URL "
f"was discovered for deployment '{deployment_name}'. "
f"Discovered URL types: {discovered_available or 'none'}."
)4. Comprehensive DocumentationThe documentation in
5. Backward CompatibilityThe
|
Describe changes
I implemented improved URL discovery and preference handling for Kubernetes deployments to achieve better control over which URL is returned when multiple endpoint types are available (Gateway API, Ingress, LoadBalancer, NodePort, ClusterIP).
Key changes:
url_preferencesetting to explicitly select URL typeThis allows users to explicitly request specific URL types (e.g.,
url_preference="ingress") and raises clear errors if the requested type is unavailable, preventing accidental fallback to unexpected endpoints.Pre-requisites
developand the open PR is targetingdevelop.Types of changes