From 6672987cd9a248bfab270604b7973ec1044cb745 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 23 Mar 2022 08:54:42 -0400 Subject: [PATCH] Improve ProjectSource display for configMap and secret Signed-off-by: Sebastian Malton --- .../details/volumes/variants/projected.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/+workloads-pods/details/volumes/variants/projected.tsx b/src/renderer/components/+workloads-pods/details/volumes/variants/projected.tsx index 7587bbaa02..8b04d61755 100644 --- a/src/renderer/components/+workloads-pods/details/volumes/variants/projected.tsx +++ b/src/renderer/components/+workloads-pods/details/volumes/variants/projected.tsx @@ -25,7 +25,11 @@ export const Projected: VolumeVariantComponent<"projected"> = (
    - {secret.items?.map(({ key }) =>
  • {key}
  • )} + {secret.items?.map(({ key, path }) => ( +
  • + {key} ⇢ {path} +
  • + ))}
@@ -35,7 +39,11 @@ export const Projected: VolumeVariantComponent<"projected"> = ( Downward API
    - {downwardAPI.items?.map(({ path }) =>
  • {path}
  • )} + {downwardAPI.items?.map(({ path }) => ( +
  • + {path} +
  • + ))}
@@ -48,7 +56,11 @@ export const Projected: VolumeVariantComponent<"projected"> = (
    - {configMap.items?.map(({ path }) =>
  • {path}
  • )} + {configMap.items?.map(({ key, path }) => ( +
  • + {key} ⇢ {path} +
  • + ))}