Skip to content

Commit

Permalink
output check fix (#1244)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam-D-Lewis <>
  • Loading branch information
Adam-D-Lewis authored Apr 11, 2022
1 parent d72ed1d commit fa80149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qhub/stages/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,6 @@ def _attempt_connect_url(
services = stage_outputs[directory]["service_urls"]["value"]
for service_name, service in services.items():
service_url = service["health_url"]
if not _attempt_connect_url(service_url):
if service_url and not _attempt_connect_url(service_url):
print(f"ERROR: Service {service_name} DOWN when checking url={service_url}")
sys.exit(1)
8 changes: 4 additions & 4 deletions qhub/template/stages/07-kubernetes-services/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ output "service_urls" {
url = "https://${var.endpoint}/"
health_url = "https://${var.endpoint}/hub/api/"
}
monitoring = {
url = "https://${var.endpoint}/monitoring/"
health_url = "https://${var.endpoint}/monitoring/api/health"
}
keycloak = {
url = "https://${var.endpoint}/auth/"
health_url = "https://${var.endpoint}/auth/realms/master"
}
monitoring = {
url = var.monitoring-enabled ? "https://${var.endpoint}/monitoring/" : null
health_url = var.monitoring-enabled ? "https://${var.endpoint}/monitoring/api/health" : null
}
}
}

0 comments on commit fa80149

Please sign in to comment.