mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* [Feature] Add NetworkIsolation support to RayClusters Co-authored-by: Pat O'Connor <[email protected]> Co-authored-by: Bryan Keane <[email protected]> * add feature gate reg to integration tests + removed redundant if err Signed-off-by: Pat O'Connor <[email protected]> * separate function for head and base ingress rules Signed-off-by: Pat O'Connor <[email protected]> * logger updates as per review Signed-off-by: Pat O'Connor <[email protected]> * adjust DNS egress rule to allow all port 53 egress Signed-off-by: Pat O'Connor <[email protected]> * resolve helm chart CI failure Signed-off-by: Pat O'Connor <[email protected]> * restrict KubeRay rule via NamespaceSelector Signed-off-by: Pat O'Connor <[email protected]> * check if update is necessary on NP via DeepEqual Signed-off-by: Pat O'Connor <[email protected]> * prevent same-name NP mod + add namespace fallback to default Signed-off-by: Pat O'Connor <[email protected]> * add missing rayStartParams ports to custom ports example Signed-off-by: Pat O'Connor <[email protected]> * emit warning when existing NP conflicts with new one via name + fix test Signed-off-by: Pat O'Connor <[email protected]> * remove redundant samples + add new samples Signed-off-by: Pat O'Connor <[email protected]> * remove permissive pod selector rule + test updates Signed-off-by: Pat O'Connor <[email protected]> * prop labels to jobsubmitter for networkpolicy rule Signed-off-by: Pat O'Connor <[email protected]> * Add opt-in ALLOW_ALL_RAYJOB_SUBMITTERS env var for broad submitter ingress on standalone RayClusters Signed-off-by: Pat O'Connor <[email protected]> * updated API and config to fix CI failures Signed-off-by: Pat O'Connor <[email protected]> * Moved label prop to getSummitterTemplate + review changes Signed-off-by: Pat O'Connor <[email protected]> * Review feedback: failed deletion event + reconcile on dupe + nits Signed-off-by: Pat O'Connor <[email protected]> * use rayStartParams for ports + review nits Signed-off-by: Pat O'Connor <[email protected]> * test fix + convert constants to CamelCase Signed-off-by: Pat O'Connor <[email protected]> * helm updates + check if RayCluster is externally managed Signed-off-by: Pat O'Connor <[email protected]> * API updates per review + autoscaling egress rule Signed-off-by: Pat O'Connor <[email protected]> * Use standard lib for CIDR + use logConstructor consistently Signed-off-by: Pat O'Connor <[email protected]> * Use EndpointSlice IPs for API server egress rule Signed-off-by: Pat O'Connor <[email protected]> * Deduplicates ports + peers across EndpointSlices in egress rules Signed-off-by: Pat O'Connor <[email protected]> * Remove operator namespace fallback and prop error if namespace not found Signed-off-by: Pat O'Connor <[email protected]> * Remove patch verb for networkpolicies Signed-off-by: Pat O'Connor <[email protected]> * Remove client port rule for operator Signed-off-by: Pat O'Connor <[email protected]> * Add reconcileConcurrency and GenerationChangedPredicate to NetworkPolicy controller setup Signed-off-by: Pat O'Connor <[email protected]> * solve 3 points, close to merge Signed-off-by: Future-Outlier <[email protected]> * helper Signed-off-by: Future-Outlier <[email protected]> * update Signed-off-by: Future-Outlier <[email protected]> * CI failure fixes after DNS logic removal Signed-off-by: Pat O'Connor <[email protected]> * Revert "helper" This reverts commit 26c4053ae5775517f60a01cc4fb9457265d832c4. * Skip networkpolicy integration test when missing namespace Signed-off-by: Pat O'Connor <[email protected]> * Normalize defaulted NetworkPolicy ports before comparing Signed-off-by: Pat O'Connor <[email protected]> * Drop network policy integration tests pending followup e2e Signed-off-by: Pat O'Connor <[email protected]> * Remove operator namespace ingress rule Signed-off-by: Pat O'Connor <[email protected]> * networkpolicy: separate head/worker custom rules in API Replace the flat ingressRules/egressRules on NetworkIsolationConfig with per-role head/worker sub-structs.Since the API has not shipped yet, this avoids locking in a shared-only design that would require a backward-compatible migration later. Head and workers have fundamentally different security profiles — head needs external access (dashboard, submitter, Prometheus) while workers typically need outbound access (S3, model registries). A shared-only API forces users to over-permit workers just to allow access to the head. New API shape: networkIsolation: mode: DenyAll head: ingressRules: [...] egressRules: [...] worker: ingressRules: [...] egressRules: [...] Co-authored-by: Cursor <[email protected]> * NetworkIsolation API change cleanup Signed-off-by: Pat O'Connor <[email protected]> * Unit tests to ensure custom policies don't leak between head and worker Signed-off-by: Pat O'Connor <[email protected]> * Sample comment indendation and removal of operator rule from API docs Signed-off-by: Pat O'Connor <[email protected]> * Indent update to pass linter Signed-off-by: Pat O'Connor <[email protected]> * Additional review nits - comments etc Signed-off-by: Pat O'Connor <[email protected]> * Remove redundant comments in controller code Signed-off-by: Pat O'Connor <[email protected]> --------- Signed-off-by: Pat O'Connor <[email protected]> Signed-off-by: Future-Outlier <[email protected]> Co-authored-by: Laura Fitzgerald <[email protected]> Co-authored-by: Bryan Keane <[email protected]> Co-authored-by: Future-Outlier <[email protected]> Co-authored-by: Cursor <[email protected]>