We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0f94e6 + 9585668 commit ac5f8deCopy full SHA for ac5f8de
pkg/controller/node_group.go
@@ -268,7 +268,9 @@ func NewPodDefaultFilterFunc() k8s.PodFilterFunc {
268
// Only include pods that pass the following:
269
// - Don't have a nodeSelector
270
// - Don't have an affinity
271
- return len(pod.Spec.NodeSelector) == 0 && pod.Spec.Affinity == nil
+ return len(pod.Spec.NodeSelector) == 0 && (pod.Spec.Affinity == nil ||
272
+ (pod.Spec.Affinity.NodeAffinity == nil && pod.Spec.Affinity.PodAffinity == nil &&
273
+ pod.Spec.Affinity.PodAntiAffinity == nil))
274
}
275
276
0 commit comments