Skip to content

Commit

Permalink
Add grace period check for Node availability
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoxhaa committed Jun 2, 2024
1 parent 248040e commit 70f0250
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/schema/v1/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ func (n *Node) Obtain(k8s kmetav1.Object) {
}

func (n *Node) getIcingaState() (IcingaState, string) {
gracePeriodReason := IsWithinGracePeriod(n)
if gracePeriodReason != nil {
return Ok, *gracePeriodReason
}

var state IcingaState
var reason string

Expand Down

0 comments on commit 70f0250

Please sign in to comment.