Skip to content

Commit

Permalink
Updated with seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Honigeintopf committed Nov 7, 2024
1 parent 21d648c commit 4d9affd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/set/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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}
}

Expand Down

0 comments on commit 4d9affd

Please sign in to comment.