Skip to content

Commit

Permalink
Display init container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Sep 27, 2019
1 parent 033a9bf commit 2260089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class Dashboard {
const pod = pods_list.items[i - 1];
const name = pod.metadata.name;
const namespace = pod.metadata.namespace;
const containers = pod.spec.containers;
const containers = pod.spec.containers.concat(pod.spec.initContainers || []);
let container;
if (containers.length === 1) {
if (pod.metadata.uid === pod_selected && container_selected) {
Expand Down

0 comments on commit 2260089

Please sign in to comment.