mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +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)
|
nodeLabels, err = k8s.GetNodeLabels(conf.NodeID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.FatalLogMsg(err.Error())
|
log.FatalLogMsg(err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user