From 2c3ae1a5ec487331c68ed4a315c1a1db0b669226 Mon Sep 17 00:00:00 2001 From: Ian Ballou Date: Thu, 19 Dec 2024 19:03:24 +0000 Subject: [PATCH] Refs #38107 - add digests + hosts columns to bootc containers page --- .../BootedContainerImagesPage.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js b/webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js index e699cb8e161..7129ec48b02 100644 --- a/webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js +++ b/webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js @@ -15,6 +15,17 @@ const BootedContainerImagesPage = () => { const columns = { image_name: { title: __('Image name'), + isSorted: true, + }, + digest: { + title: __('Image digests'), + wrapper: ({digests}) => digests.length, + }, + hosts: { + title: __('Hosts'), + wrapper: ({image_name, digests}) => ( + {digests.reduce((total, digest) => total + digest.host_count, 0)} + ), }, };