pod dialogs display cluster title

Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
This commit is contained in:
Jamie Klassen
2024-01-24 12:06:19 -05:00
parent 2bae1be978
commit 5bf0c17bae
4 changed files with 14 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-react': patch
---
Pod dialogs display cluster title when specified.
@@ -92,6 +92,7 @@ Deutsche
dev
devops
devs
dialogs
discoverability
Discoverability
dls
@@ -42,7 +42,9 @@ export const PodExecTerminalDialog = (props: PodExecTerminalProps) => {
isPodExecTerminalSupported.loading ||
!isPodExecTerminalSupported.value
}
title={`${podName} - ${containerName} terminal shell on cluster ${cluster.name}`}
title={`${podName} - ${containerName} terminal shell on cluster ${
cluster.title || cluster.name
}`}
>
<PodExecTerminal {...props} />
</KubernetesDialog>
@@ -42,7 +42,11 @@ export const PodLogsDialog = ({ containerScope }: PodLogsDialogProps) => {
buttonIcon={<SubjectIcon />}
buttonText="Logs"
disabled={false}
title={`${containerScope.podName} - ${containerScope.containerName} logs on cluster ${containerScope.cluster.name}`}
title={`${containerScope.podName} - ${
containerScope.containerName
} logs on cluster ${
containerScope.cluster.title || containerScope.cluster.name
}`}
>
<PodLogs containerScope={containerScope} />
</KubernetesDialog>