k9s/internal/model
Eric Bitencourt de Santana 92ff64eac3
Feature: add pod last restart column to pod section (#2946)
* feat: create ToRestartAge helper function to calculate last restart age

* feat: add Last Restart column to pod view

* test: add TestPodLastRestart to pod tests

* test: add TestToRestartAge tests

* test: fix all initial row states on table tests

* chore: remove TestToRestartAge changes

* refactor: move LastRestart pod function to internal function

* refactor: update to new go 1.22 range over map syntax
2024-11-14 08:56:52 -07:00
..
testdata refactor pf and benchmarks 2020-02-14 14:28:52 -07:00
cluster.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
cluster_info.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
cluster_info_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
cmd_buff.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
cmd_buff_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
describe.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
fish_buff.go K9s/rel v0.30.0 (#2361) 2023-12-23 14:29:55 -07:00
fish_buff_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
flash.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
flash_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
helpers.go K9s/release v0.30.7 (#2416) 2024-01-02 23:57:07 -07:00
helpers_int_test.go Release v0.32.6 (#2955) 2024-11-10 10:08:54 -07:00
helpers_test.go K9s/release v0.30.7 (#2416) 2024-01-02 23:57:07 -07:00
hint.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
hint_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
history.go K9s/rel v0.30.0 (#2361) 2023-12-23 14:29:55 -07:00
history_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
log.go K9s/release v0.31.0 (#2440) 2024-01-08 18:30:49 -07:00
log_int_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
log_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
menu_hint.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
menu_hint_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
pulse.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
pulse_health.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
registry.go Add color to hpa line when replicas >= maxpods (#2333) 2024-08-26 09:08:31 -06:00
rev_values.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
semver.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
semver_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
stack.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
stack_test.go K9s/rel v0.30.0 (#2361) 2023-12-23 14:29:55 -07:00
table.go K9s release v0.32.2 (#2598) 2024-03-05 17:11:31 -07:00
table_int_test.go Feature: add pod last restart column to pod section (#2946) 2024-11-14 08:56:52 -07:00
table_test.go Feature: add pod last restart column to pod section (#2946) 2024-11-14 08:56:52 -07:00
text.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
text_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
tree.go K9s/rel v0.30.0 (#2361) 2023-12-23 14:29:55 -07:00
types.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
values.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
yaml.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00