Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Headlamp
Commits
c61548e2
Commit
c61548e2
authored
5 years ago
by
Joaquim Rocha
Browse files
Options
Download
Email Patches
Plain Diff
frontend: Add the containers section to the Pod details view
parent
719a1990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/pods/Details.js
+39
-36
frontend/src/components/pods/Details.js
with
39 additions
and
36 deletions
+39
-36
frontend/src/components/pods/Details.js
+
39
-
36
View file @
c61548e2
...
...
@@ -13,7 +13,7 @@ import React from 'react';
import
{
useParams
}
from
'
react-router-dom
'
;
import
api
,
{
useConnectApi
}
from
'
../../lib/api
'
;
import
{
LogViewer
}
from
'
../common/LogViewer
'
;
import
{
MainInfoSection
}
from
'
../common/Resource
'
;
import
{
ContainersSection
,
MainInfoSection
,
PageGrid
}
from
'
../common/Resource
'
;
import
Terminal
from
'
../common/Terminal
'
;
const
useStyle
=
makeStyles
({
...
...
@@ -124,41 +124,44 @@ export default function PodDetails(props) {
return
(
<
React
.
Fragment
>
<
MainInfoSection
resource
=
{
item
}
actions
=
{
item
&&
[
<
Tooltip
title
=
"
Show Logs
"
>
<
IconButton
aria
-
label
=
"
delete
"
onClick
=
{()
=>
setShowLogs
(
true
)}
>
<
Icon
icon
=
{
fileDocumentBoxOutline
}
/
>
<
/IconButton
>
<
/Tooltip>
,
<
Tooltip
title
=
"
Terminal / Exec
"
>
<
IconButton
aria
-
label
=
"
delete
"
onClick
=
{()
=>
setShowTerminal
(
true
)}
>
<
Icon
icon
=
{
consoleIcon
}
/
>
<
/IconButton
>
<
/Tooltip
>
]}
extraInfo
=
{
item
&&
[
{
name
:
'
State
'
,
value
:
item
.
status
.
phase
},
{
name
:
'
Host IP
'
,
value
:
item
.
status
.
hostIP
,
},
{
name
:
'
Pod IP
'
,
value
:
item
.
status
.
podIP
,
}
]}
/
>
<
PageGrid
>
<
MainInfoSection
resource
=
{
item
}
actions
=
{
item
&&
[
<
Tooltip
title
=
"
Show Logs
"
>
<
IconButton
aria
-
label
=
"
delete
"
onClick
=
{()
=>
setShowLogs
(
true
)}
>
<
Icon
icon
=
{
fileDocumentBoxOutline
}
/
>
<
/IconButton
>
<
/Tooltip>
,
<
Tooltip
title
=
"
Terminal / Exec
"
>
<
IconButton
aria
-
label
=
"
delete
"
onClick
=
{()
=>
setShowTerminal
(
true
)}
>
<
Icon
icon
=
{
consoleIcon
}
/
>
<
/IconButton
>
<
/Tooltip
>
]}
extraInfo
=
{
item
&&
[
{
name
:
'
State
'
,
value
:
item
.
status
.
phase
},
{
name
:
'
Host IP
'
,
value
:
item
.
status
.
hostIP
,
},
{
name
:
'
Pod IP
'
,
value
:
item
.
status
.
podIP
,
}
]}
/
>
{
item
&&
<
ContainersSection
resource
=
{
item
}
/>
}
<
/PageGrid
>
{
item
&&
[
<
PodLogViewer
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment