mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:44:33 +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
|
||||
|
||||
with console.status(f"Waiting for {fullname}"):
|
||||
|
||||
while not success:
|
||||
try:
|
||||
i = client.NetworkingV1Api().read_namespaced_ingress(
|
||||
ingress = client.NetworkingV1Api().read_namespaced_ingress(
|
||||
name,
|
||||
namespace
|
||||
)
|
||||
|
||||
host = i.spec.rules[0].host
|
||||
host = ingress.spec.rules[0].host
|
||||
requests.get(f"https://{host}", verify=False)
|
||||
console.log(f"{fullname} is ready, visit https://{host}")
|
||||
success = True
|
||||
|
Loading…
Reference in New Issue
Block a user