+
+
+
+
+
+
+
-
+
+
- {item.name}
- {item.image}
+ <>
+ {item.resources.limits.cpu}
+ {item.resources.limits.memory}
+ >
+ )}
+
+ {item.ports && (
+
+ {item.ports.map((x, i) => (
+
+ )}
+
+ >
))}
>
);
diff --git a/client/src/components/eventsPanel.js b/client/src/components/eventsPanel.js
index 7b79b86..45a57fb 100644
--- a/client/src/components/eventsPanel.js
+++ b/client/src/components/eventsPanel.js
@@ -8,10 +8,10 @@ import Sorter, {sortByDate} from './sorter';
export default function EventsPanel({items, filter, shortList, sort}) {
return (
Container
+
- {item.args && (
- {item.args.join(' ')}
- )}
+ {item.name}
+ {item.image}
- {item.env && (
-
- {item.env.map(x => (
-
- )}
+ {item.args && (
+ {item.args.join(' ')}
+ )}
- {item.resources && item.resources.requests && (
- <>
- {item.resources.requests.cpu}
- {item.resources.requests.memory}
- >
- )}
+ {item.env && (
+
+ {item.env.map(x => (
+
+ )}
- {item.resources && item.resources.limits && (
- <>
- {item.resources.limits.cpu}
- {item.resources.limits.memory}
- >
- )}
+ {item.resources && item.resources.requests && (
+ <>
+ {item.resources.requests.cpu}
+ {item.resources.requests.memory}
+ >
+ )}
- {item.ports && (
-
-
-
-
-
- )}
-
+ {item.resources && item.resources.limits && (
+ <>
+
- {x.name}: {getVariableValue(x)}
-
- ))}
-
+ {x.name}: {getVariableValue(x)}
+
+ ))}
+ | Name | -Container Port | -Host Port | -Protocol | -
|---|---|---|---|
| {x.name} | -{x.containerPort} | -{x.hostPort} | -{x.protocol} | -
+ {[x.name, x.containerPort, x.hostPort, x.protocol].filter(y => !!y).join(' • ')}
+
+ ))}
+
-
+
| + |
|
@@ -22,7 +22,7 @@ export default function EventsPanel({items, filter, shortList, sort}) {
|
)}
- + |
|
@@ -38,7 +38,7 @@ export default function EventsPanel({items, filter, shortList, sort}) { sort={sort} row={x => ( |
|---|---|---|---|---|---|
| + |
|
)}
- {x.reason} | +{x.reason} | {x.message} | + |
|
|
{includeNamespace && (
- + |
|
)}
- + |
|
>
@@ -52,7 +52,7 @@ export function MetadataHeaders({includeNamespace, sort}) {
export function MetadataColumns({item, href, includeNamespace, isError}) {
return (
<>
- + |
|
+ |
{item.metadata.namespace || 'All Namespaces'}
|
)}
-
+ |
{moment(item.metadata.creationTimestamp).fromNow(true)}
|
>
diff --git a/client/src/components/menu.js b/client/src/components/menu.js
index a3a1f05..43484b2 100644
--- a/client/src/components/menu.js
+++ b/client/src/components/menu.js
@@ -9,50 +9,51 @@ import AddSvg from '../art/addSvg';
export default class Menu extends Base {
render() {
+ const {onClick, toggled} = this.props;
const {showAdd} = this.state || {};
return (
- |