mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-03 21:40:34 +07:00
style(scripts): rename ingress variable
This commit is contained in:
parent
958423c332
commit
cc81d4786c
@ -32,15 +32,14 @@ def wait_app(name: str, fullname: str, namespace: str) -> None:
|
|||||||
success = False
|
success = False
|
||||||
|
|
||||||
with console.status(f"Waiting for {fullname}"):
|
with console.status(f"Waiting for {fullname}"):
|
||||||
|
|
||||||
while not success:
|
while not success:
|
||||||
try:
|
try:
|
||||||
i = client.NetworkingV1Api().read_namespaced_ingress(
|
ingress = client.NetworkingV1Api().read_namespaced_ingress(
|
||||||
name,
|
name,
|
||||||
namespace
|
namespace
|
||||||
)
|
)
|
||||||
|
|
||||||
host = i.spec.rules[0].host
|
host = ingress.spec.rules[0].host
|
||||||
requests.get(f"https://{host}", verify=False)
|
requests.get(f"https://{host}", verify=False)
|
||||||
console.log(f"{fullname} is ready, visit https://{host}")
|
console.log(f"{fullname} is ready, visit https://{host}")
|
||||||
success = True
|
success = True
|
||||||
|
Loading…
Reference in New Issue
Block a user