From 1112399a3ca3e91e11078a14f5ff0a3021ab5997 Mon Sep 17 00:00:00 2001 From: vultj <113467936+vultj@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:50:17 -0500 Subject: [PATCH] ignore label check if node has taints --- pkg/slurm/create_slurmabler.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/slurm/create_slurmabler.go b/pkg/slurm/create_slurmabler.go index 82f182c..65aa3ae 100644 --- a/pkg/slurm/create_slurmabler.go +++ b/pkg/slurm/create_slurmabler.go @@ -87,10 +87,15 @@ func buildSlurmablerDaemonSet(client kubernetes.Interface, wl *v1s.Slik) error { var lablesSet int = 0 for i := range nodes.Items { + if len(nodes.Items[i].Spec.Taints) > 0 { + lablesSet++ + + continue + } + labels := nodes.Items[i].GetLabels() _, ok := labels["slik.vultr.com/real_memory"] - if ok { lablesSet++ }