kubectl/pkg/cmd/rollout
Taha Farahani 343265002b Automated cherry pick of #130503: Unhandled panic crash on rollout_history printer.PrintObj (#131496)
* Change: Handling nil runtime.Object

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Return only if there is error in rollout_history

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Return the unknown revision error directly in rollout_history.go

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Remove unintended newline

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Using go idiomatic way for checking if historyInfo[o.Revision] exists

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Remove 'error:' from returned error message in rollout_history.go

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Check for printer.PrintObj returned err

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Add TestRolloutHistoryErrors test

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Simple typo fix on Complete() function description

Signed-off-by: Taha Farahani <tahacodes@proton.me>

* Change: Checking for error on o.Complete in TestRolloutHistoryErrors

Signed-off-by: Taha Farahani <tahacodes@proton.me>

---------

Signed-off-by: Taha Farahani <tahacodes@proton.me>

Kubernetes-commit: cce99a8c73a32c6dff31768c4757968440ef91c3
2025-05-14 12:45:57 +00:00
..
rollout.go Update CLI help text for grammar and consistency 2023-06-12 15:55:59 -04:00
rollout_history.go Automated cherry pick of #130503: Unhandled panic crash on rollout_history printer.PrintObj (#131496) 2025-05-14 12:45:57 +00:00
rollout_history_test.go Automated cherry pick of #130503: Unhandled panic crash on rollout_history printer.PrintObj (#131496) 2025-05-14 12:45:57 +00:00
rollout_pause.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
rollout_pause_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
rollout_restart.go A few minor help text tweaks 2024-07-17 13:30:34 -04:00
rollout_restart_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
rollout_resume.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
rollout_status.go add no resources found message to rollout-status command (#117884) 2023-05-11 23:28:58 +00:00
rollout_status_test.go add no resources found message to rollout-status command (#117884) 2023-05-11 23:28:58 +00:00
rollout_undo.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00