diff --git a/controllers/druid/handler.go b/controllers/druid/handler.go index 40d348b4..47f6eb18 100644 --- a/controllers/druid/handler.go +++ b/controllers/druid/handler.go @@ -1345,7 +1345,7 @@ func makePodSpec(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.Druid, nodeSpecUn } spec := v1.PodSpec{ - NodeSelector: firstNonNilValue(m.Spec.NodeSelector, nodeSpec.NodeSelector).(map[string]string), + NodeSelector: firstNonNilValue(nodeSpec.NodeSelector, m.Spec.NodeSelector).(map[string]string), TopologySpreadConstraints: getTopologySpreadConstraints(nodeSpec), Tolerations: getTolerations(nodeSpec, m), Affinity: getAffinity(nodeSpec, m),