File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ async def handle_scheduler_service_status(
401
401
assert namespace
402
402
# If the Service is a LoadBalancer with no ingress endpoints mark the cluster as Pending
403
403
if spec ["type" ] == "LoadBalancer" and not len (
404
- status .get ("load_balancer " , {}).get ("ingress" , [])
404
+ status .get ("loadBalancer " , {}).get ("ingress" , [])
405
405
):
406
406
phase = "Pending"
407
407
# Otherwise mark it as Running
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ async def get_external_address_for_scheduler_service(
50
50
"""Take a service object and return the scheduler address."""
51
51
if service .spec .type == "LoadBalancer" :
52
52
port = _get_port (service , port_name )
53
- lb = service .status .load_balancer .ingress [0 ]
54
- host = lb .hostname or lb .ip
53
+ lb = service .status .loadBalancer .ingress [0 ]
54
+ host = lb .get ( " hostname" , None ) or lb .ip
55
55
elif service .spec .type == "NodePort" :
56
56
port = _get_port (service , port_name , is_node_port = True )
57
57
nodes = await kr8s .asyncio .get ("nodes" )
You can’t perform that action at this time.
0 commit comments