We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f7cc0 commit 7c906d4Copy full SHA for 7c906d4
lua/kubectl/views/pods/definition.lua
@@ -17,11 +17,13 @@ local M = {
17
18
local function getReady(row)
19
local status = { symbol = "", value = "", sort_by = 0 }
20
- local readyCount = 0
21
local containers = 0
+ if row.spec and row.spec.containers then
22
+ containers = #row.spec.containers
23
+ end
24
+ local readyCount = 0
25
if row.status and row.status.containerStatuses then
26
for _, value in ipairs(row.status.containerStatuses) do
- containers = containers + 1
27
if value.ready then
28
readyCount = readyCount + 1
29
end
0 commit comments