Skip to content

Commit

Permalink
cdi: add error print for spec write fails
Browse files Browse the repository at this point in the history
Signed-off-by: Tuomas Katila <[email protected]>
  • Loading branch information
tkatila committed Sep 13, 2024
1 parent 0ab26f5 commit 2d9ba91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/deviceplugin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ func (srv *server) Allocate(ctx context.Context, rqt *pluginapi.AllocateRequest)

if names, err := writeCdiSpecToFilesystem(dev.cdiSpec, srv.cdiDir); err == nil {
cresp.CDIDevices = append(cresp.CDIDevices, names...)
} else {
klog.Errorf("CDI spec write failed: %+v", err)
}
}

Expand Down

0 comments on commit 2d9ba91

Please sign in to comment.