pod dialogs display cluster title
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user