Skip to content

Commit

Permalink
Skip health checks for binderhubs
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Jun 19, 2024
1 parent 22e0b3b commit a0499e8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions deployer/commands/deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,28 @@ def run_hub_health_check(
print_colour("ERROR: No hubs with this name found!")
sys.exit(1)

# Skip the regular hub health check for hubs with binderhub ui that are also launching user servers
for values_file_name in hub.spec["helm_chart_values_files"]:
if not any(
substr in os.path.basename(values_file_name)
for substr in ["secret", "common"]
):
values_file = config_file_path.parent.joinpath(values_file_name)
config = yaml.load(values_file)
binderhub_ui = (
config.get("jupyterhub", {})
.get("custom", {})
.get("binderhubUI", {})
.get("enabled")
)

if binderhub_ui:
print_colour(
f"Skipping hub health check for {hub.spec['name']} because it's a binderhub...",
"yellow",
)
return

print_colour(f"Running hub health check for {hub.spec['name']}...")

# Check if this hub has a domain override file. If yes, apply override.
Expand Down

0 comments on commit a0499e8

Please sign in to comment.