mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-06 03:49:30 +00:00
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 <jan.nemcik@solargis.com>
(cherry picked from commit 3443546370
)
This commit is contained in:
parent
e7acce2848
commit
9d9b67b169
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user