Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dask_kubernetes/operator/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ async def handle_scheduler_service_status(
assert namespace
# If the Service is a LoadBalancer with no ingress endpoints mark the cluster as Pending
if spec["type"] == "LoadBalancer" and not len(
status.get("load_balancer", {}).get("ingress", [])
status.get("loadBalancer", {}).get("ingress", [])
):
phase = "Pending"
# Otherwise mark it as Running
Expand Down
2 changes: 1 addition & 1 deletion dask_kubernetes/operator/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def get_external_address_for_scheduler_service(
"""Take a service object and return the scheduler address."""
if service.spec.type == "LoadBalancer":
port = _get_port(service, port_name)
lb = service.status.load_balancer.ingress[0]
lb = service.status.loadBalancer.ingress[0]
host = lb.hostname or lb.ip
elif service.spec.type == "NodePort":
port = _get_port(service, port_name, is_node_port=True)
Expand Down
Loading