mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
cdi: add error print for spec write fails
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
This commit is contained in:
parent
0ab26f5e5c
commit
2d9ba91bf1
@ -186,6 +186,8 @@ func (srv *server) Allocate(ctx context.Context, rqt *pluginapi.AllocateRequest)
|
|||||||
|
|
||||||
if names, err := writeCdiSpecToFilesystem(dev.cdiSpec, srv.cdiDir); err == nil {
|
if names, err := writeCdiSpecToFilesystem(dev.cdiSpec, srv.cdiDir); err == nil {
|
||||||
cresp.CDIDevices = append(cresp.CDIDevices, names...)
|
cresp.CDIDevices = append(cresp.CDIDevices, names...)
|
||||||
|
} else {
|
||||||
|
klog.Errorf("CDI spec write failed: %+v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user