mirror of https://github.com/k3s-io/k3s
Kubelet: do not report used inodes on Windows
parent
e1fdaa177f
commit
8255318b96
|
@ -47,7 +47,6 @@ func (ds *dockerService) ImageFsInfo(_ context.Context, _ *runtimeapi.ImageFsInf
|
|||
{
|
||||
Timestamp: time.Now().UnixNano(),
|
||||
UsedBytes: &runtimeapi.UInt64Value{Value: fsinfo.Usage},
|
||||
InodesUsed: &runtimeapi.UInt64Value{Value: 0},
|
||||
FsId: &runtimeapi.FilesystemIdentifier{
|
||||
Mountpoint: info.DockerRootDir,
|
||||
},
|
||||
|
|
|
@ -184,7 +184,9 @@ func (p *criStatsProvider) ImageFsStats() (*statsapi.FsStats, error) {
|
|||
s := &statsapi.FsStats{
|
||||
Time: metav1.NewTime(time.Unix(0, fs.Timestamp)),
|
||||
UsedBytes: &fs.UsedBytes.Value,
|
||||
InodesUsed: &fs.InodesUsed.Value,
|
||||
}
|
||||
if fs.InodesUsed != nil {
|
||||
s.InodesUsed = &fs.InodesUsed.Value
|
||||
}
|
||||
imageFsInfo := p.getFsInfo(fs.GetFsId())
|
||||
if imageFsInfo != nil {
|
||||
|
|
Loading…
Reference in New Issue