Skip to content

Commit

Permalink
Merge pull request #113 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…12-to-release-0.6

[release-0.6] Ignore NHC timeout annotation on deletion of snr
  • Loading branch information
mshitrit authored Apr 19, 2023
2 parents b1b71f3 + 08fc175 commit e35aeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/selfnoderemediation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ func (r *SelfNodeRemediationReconciler) removeNoExecuteTaint(node *v1.Node) erro
}

func (r *SelfNodeRemediationReconciler) isStoppedByNHC(snr *v1alpha1.SelfNodeRemediation) bool {
if snr != nil && snr.Annotations != nil {
if snr != nil && snr.Annotations != nil && snr.DeletionTimestamp == nil{
_, isTimeoutIssued := snr.Annotations[nhcTimeOutAnnotation]
return isTimeoutIssued
}
Expand Down

0 comments on commit e35aeac

Please sign in to comment.