Skip to content

Commit

Permalink
chore: drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Feb 3, 2025
1 parent 01de6ac commit 09e5867
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/utils/pod/scheduling.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@ func HasDoNotDisrupt(pod *corev1.Pod) bool {
return pod.Annotations[v1.DoNotDisruptAnnotationKey] == "true"
}

// ToleratesUnschedulableTaint returns true if the pod tolerates node.kubernetes.io/unschedulable taint
func ToleratesUnschedulableTaint(pod *corev1.Pod) bool {
return (scheduling.Taints{{Key: corev1.TaintNodeUnschedulable, Effect: corev1.TaintEffectNoSchedule}}).ToleratesPod(pod) == nil
}

// ToleratesDisruptionNoScheduleTaint returns true if the pod tolerates karpenter.sh/disruption:NoSchedule=Disrupting taint
func ToleratesDisruptedNoScheduleTaint(pod *corev1.Pod) bool {
return scheduling.Taints([]corev1.Taint{v1.DisruptedNoScheduleTaint}).ToleratesPod(pod) == nil
Expand Down

0 comments on commit 09e5867

Please sign in to comment.