You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -71,8 +78,8 @@ func (r *Rule) Drainable(drainCtx *drainability.DrainContext, pod *apiv1.Pod) dr
71
78
returndrainability.NewBlockedStatus(drain.MinReplicasReached, fmt.Errorf("replication controller for %s/%s has too few replicas spec: %d min: %d", pod.Namespace, pod.Name, rc.Spec.Replicas, r.minReplicaCount))
72
79
}
73
80
} elseifpod_util.IsDaemonSetPod(pod) {
74
-
ifrefKind!="DaemonSet" {
75
-
// We don't have a listener for the other DaemonSet kind.
81
+
ifrefGroup.Group!="apps"||refKind!="DaemonSet" {
82
+
// We don't have a listener for the other DaemonSet group or kind.
76
83
// TODO: Use a generic client for checking the reference.
0 commit comments