Skip to content

Commit

Permalink
feat: Support PSC-I ingress in Ray Client
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 688719900
  • Loading branch information
yinghsienwu authored and copybara-github committed Oct 22, 2024
1 parent f713417 commit da76253
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion google/cloud/aiplatform/vertex_ray/client_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def connect(self) -> _VertexRayClientContext:
public_address = self.response.resource_runtime.access_uris.get(
"RAY_CLIENT_ENDPOINT"
)
if public_address:
private_address = self.response.resource_runtime.access_uris.get(
"RAY_HEAD_NODE_INTERNAL_IP"
)
if public_address and not private_address:
self._credentials = grpc.ssl_channel_credentials()
bearer_token = _validation_utils.get_bearer_token()
self._metadata = [
Expand Down

0 comments on commit da76253

Please sign in to comment.