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 3, 2024
1 parent 8fce437 commit 317d12e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/schema/v1/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ func (n *Node) Obtain(k8s kmetav1.Object) {
}

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

var state IcingaState
var reason string

Expand Down

0 comments on commit 317d12e

Please sign in to comment.