|
@@ -81,7 +81,8 @@ export default class ControllerTab extends Component<PropsType, StateType> {
|
|
|
|
|
|
|
|
getPodStatus = (status: any) => {
|
|
getPodStatus = (status: any) => {
|
|
|
if (status?.phase == 'Pending') {
|
|
if (status?.phase == 'Pending') {
|
|
|
- return 'waiting'
|
|
|
|
|
|
|
+ return status?.containerStatuses[0].state.waiting.reason
|
|
|
|
|
+ // return 'waiting'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (status?.phase == 'Failed') {
|
|
if (status?.phase == 'Failed') {
|
|
@@ -116,6 +117,7 @@ export default class ControllerTab extends Component<PropsType, StateType> {
|
|
|
>
|
|
>
|
|
|
{
|
|
{
|
|
|
this.state.raw.map((pod, i) => {
|
|
this.state.raw.map((pod, i) => {
|
|
|
|
|
+ console.log('pod', pod)
|
|
|
let status = this.getPodStatus(pod.status)
|
|
let status = this.getPodStatus(pod.status)
|
|
|
return (
|
|
return (
|
|
|
<Tab
|
|
<Tab
|
|
@@ -128,7 +130,9 @@ export default class ControllerTab extends Component<PropsType, StateType> {
|
|
|
<Circle />
|
|
<Circle />
|
|
|
<Rail lastTab={i === this.state.raw.length - 1} />
|
|
<Rail lastTab={i === this.state.raw.length - 1} />
|
|
|
</Gutter>
|
|
</Gutter>
|
|
|
- {pod.metadata?.name}
|
|
|
|
|
|
|
+ <Name>
|
|
|
|
|
+ {pod.metadata?.name}
|
|
|
|
|
+ </Name>
|
|
|
<Status>
|
|
<Status>
|
|
|
<StatusColor status={status} />
|
|
<StatusColor status={status} />
|
|
|
{status}
|
|
{status}
|
|
@@ -195,8 +199,14 @@ const StatusColor = styled.div`
|
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
|
`;
|
|
`;
|
|
|
|
|
|
|
|
|
|
+const Name = styled.div`
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+`
|
|
|
|
|
+
|
|
|
const Tab = styled.div`
|
|
const Tab = styled.div`
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ overflow: hidden;
|
|
|
height: 50px;
|
|
height: 50px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
display: flex;
|
|
display: flex;
|