mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 14:47:04 -05:00
[PR #3118] [MERGED] Fix public resource health with unknown WireGuard targets #22529
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/3118
Author: @Adityakk9031
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @oschwartz10612
Base:
main← Head:#3105📝 Commits (1)
a6469e6Fix public resource health with unknown WireGuard targets📊 Changes
1 file changed (+11 additions, -3 deletions)
View changed files
📝
server/lib/alerts/events/healthCheckEvents.ts(+11 -3)📄 Description
Description
Fixes #3105.
Public resources were marked as degraded when a WireGuard target was added alongside healthy Newt targets. WireGuard targets do not report target health checks, so their
hcHealthis stored asunknown.The resource health aggregation previously treated any mixed state that was not all healthy, all unhealthy, or all unknown as degraded. That made
healthy + healthy + unknownbecomedegraded.This change ignores
unknowntarget health when at least one monitored target exists. Unknown targets remain neutral in the overall resource health calculation.Expected behavior after this change:
healthy + healthy + unknown->healthyhealthy + unhealthy + unknown->degradedunhealthy + unhealthy + unknown->unhealthyunknown + unknown->unknown🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.