-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document odd kubectl get output for pods w/ sidecars
With the current sidecar implementation `kubectl get pods` will show pods with successful sidecars as Completed but pods with errored sidecars as Error. It looks like the kubectl get pods printer code is just using the status of the last container in the container list as the source of the "Reason" that it prints for a pod ending. Seems a bit janky but ¯\_(ツ)_/¯ I'm documenting the behaviour rather than looking to fix it since there's are existing proposals to improve the sidecar implementation and this appears to simple be a UI/UX issue. The status of the TaskRun that generated the pod has the correct end status regardless of the output from `kubectl get pods`.
- Loading branch information
1 parent
d7f492c
commit c9a7a35
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters