Merge pull request #47239 from cpuguy83/containerd_image_info

Set containerd container image ref
This commit is contained in:
Paweł Gronowski
2024-06-17 17:02:24 +02:00
committed by GitHub
8 changed files with 178 additions and 1 deletions

View File

@@ -97,6 +97,10 @@ func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *ht
info.Runtimes[k] = system.RuntimeWithStatus{Runtime: rt.Runtime}
}
}
if versions.LessThan(version, "1.46") {
// Containerd field introduced in API v1.46.
info.Containerd = nil
}
if versions.GreaterThanOrEqualTo(version, "1.42") {
info.KernelMemory = false
}