mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Handle nil WritableLayer
This commit is contained in:
parent
0b1f806557
commit
aee1e58d58
@ -258,7 +258,7 @@ func (p *criStatsProvider) makeContainerStats(
|
|||||||
result.Rootfs.InodesUsed = &stats.WritableLayer.InodesUsed.Value
|
result.Rootfs.InodesUsed = &stats.WritableLayer.InodesUsed.Value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
storageID := stats.WritableLayer.StorageId
|
storageID := stats.GetWritableLayer().GetStorageId()
|
||||||
if storageID != nil {
|
if storageID != nil {
|
||||||
imageFsInfo, found := uuidToFsInfo[*storageID]
|
imageFsInfo, found := uuidToFsInfo[*storageID]
|
||||||
if !found {
|
if !found {
|
||||||
|
Loading…
Reference in New Issue
Block a user