From 344354637056cd27a79ec2fd77b132639101e468 Mon Sep 17 00:00:00 2001 From: Jan Nemcik Date: Sat, 9 Dec 2023 12:43:07 +0100 Subject: [PATCH] rbd: updated node labels fetching logic node labels are fetched only if controller is running in k8s and is nodeserver Signed-off-by: Jan Nemcik --- internal/rbd/driver/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/driver/driver.go b/internal/rbd/driver/driver.go index 4d7061b8e..c4c736c34 100644 --- a/internal/rbd/driver/driver.go +++ b/internal/rbd/driver/driver.go @@ -125,7 +125,7 @@ func (r *Driver) Run(conf *util.Config) { }) } - if k8s.RunsOnKubernetes() { + if k8s.RunsOnKubernetes() && conf.IsNodeServer { nodeLabels, err = k8s.GetNodeLabels(conf.NodeID) if err != nil { log.FatalLogMsg(err.Error())