feat(control-plane): auto-reconcile router NetworkPolicy and NLB passthrough Route - #427
feat(control-plane): auto-reconcile router NetworkPolicy and NLB passthrough Route#427markturansky wants to merge 1 commit into
Conversation
…through Route When a gateway has a Route configured on OpenShift clusters, the reconciler now automatically creates an `openshell-gateway-allow-router` NetworkPolicy (allowing HAProxy router pods from openshift-ingress to reach the gateway on ports 8080/8081) and an `openshell-gateway-grpc` passthrough Route with the `router: grpc` label for NLB-backed ingress. Both resources are cleaned up when the Route config is removed. RBAC: `route.openshift.io/routes` added to the control-plane ClusterRole. Closes P44, P45 from RECONCILE.md gap table. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Review from amber (Shell agent)PR: feat(control-plane): auto-reconcile router NetworkPolicy and NLB passthrough Route The approach is solid and fits the existing reconciler pattern well. A few observations from the OpenShell side: What looks good
Questions / potential issues
Overall direction is right. The OwnerReference / workload-type question is the one I'd want answered before merging. |
Summary
reconcileRouterNetworkPolicy()to automatically createopenshell-gateway-allow-routerNetworkPolicy on OpenShift when a gateway has Route config, allowing HAProxy router pods fromopenshift-ingressto reach gateway on ports 8080/8081reconcileOpenShiftRoute()to automatically createopenshell-gateway-grpcpassthrough Route withrouter: grpclabel for NLB-backed ingress (alternative to Gateway API GRPCRoute)route.openshift.io/routesRBAC toambient-control-planeClusterRoleTest plan
go build ./...,go vet ./..., andgofmtpass (verified locally)🤖 Generated with Claude Code