-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Sort containers in declared order #2843
Labels
enhancement
New feature or request
Comments
@ryanbrainard Thank you for this great suggestion Ryan! |
@derailed Glad you like it! I have a basic branch of this working and happy to open a PR, but before I do, a few questions:
|
@ryanbrainard Thank you for the details here Ryan! I'll take a peek at the pr. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When viewing a pod with multiple containers, they are displayed in alphabetical order instead of the order they are declared in the pod spec. For normal containers this isn't so much of a problem since the order is irrelevant, but for initContainers, the declared order dictates the run order. It would make it much easier to view the pod stepping through the initContainers if they were in run order.
Describe the solution you'd like
Provide a sort option for containers to sort by the same order they are declared in the pod spec. Bonus if it's the default, but certainly not a requirement.
Describe alternatives you've considered
I guess one could prefix the container names with numbers to make them sort alphabetically.
The text was updated successfully, but these errors were encountered: