From 4d9affd6403debf7b999a5f0b8e7ed3aea03c38e Mon Sep 17 00:00:00 2001 From: Honigeintopf Date: Thu, 7 Nov 2024 14:20:01 +0100 Subject: [PATCH] Updated with seed --- controllers/set/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/set/status.go b/controllers/set/status.go index b02e11c..ad3aa83 100644 --- a/controllers/set/status.go +++ b/controllers/set/status.go @@ -27,7 +27,7 @@ func (c *controller) evaluateFirewallConditions(fw *v2.Firewall) firewallConditi allConditionsMet = created && ready && connected && seedConnected && distanceConfigured ) - allocationTimestamp := pointer.SafeDeref(fw.Status.MachineStatus).AllocationTimestamp.Time + allocationTimestamp := pointer.SafeDeref(fw.Status.ControllerStatus).SeedUpdated.Time timeSinceAllocation := time.Since(allocationTimestamp) if allConditionsMet { @@ -43,7 +43,7 @@ func (c *controller) evaluateFirewallConditions(fw *v2.Firewall) firewallConditi } - if created && timeSinceAllocation > unhealthyTimeout { + if unhealthyTimeout != 0 && created && timeSinceAllocation > unhealthyTimeout { return firewallConditionStatus{HealthTimeout: true} }