From 3756289f3799ded6c6e628301b738f2f8ac93bd6 Mon Sep 17 00:00:00 2001 From: CodingParsley Date: Mon, 19 Dec 2022 14:40:37 +0000 Subject: [PATCH] nodespec should take precedence --- controllers/druid/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),