Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/fresh and status nodes #466

Merged
merged 10 commits into from
Oct 21, 2024
3 changes: 2 additions & 1 deletion lua/kubectl/views/nodes/definition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function M.getStatus(row)
if ready and ready.status == "True" then
return { symbol = hl.symbols.success, value = nodeConditions.NodeReady }
end
return { symbol = events.ColorStatus("Error"), value = "Unknown" }
end

local function getIPs(row)
Expand Down Expand Up @@ -104,7 +105,7 @@ function M.processRow(rows)
name = row.metadata.name,
status = M.getStatus(row),
roles = getRole(row),
age = time.since(row.metadata.creationTimestamp),
age = time.since(row.metadata.creationTimestamp, true),
version = row.status and row.status.nodeInfo and row.status.nodeInfo.kubeletVersion,
["internal-ip"] = iIP,
["external-ip"] = eIP,
Expand Down
Loading