no notes
Release list | ||
---|---|---|
0.50.6 | RECENT | |
0.50.5 | RECENT | |
0.50.4 | ||
0.50.3 | ||
0.50.2 | ||
0.50.1 | ||
0.50.0 | ||
0.40.10 | ||
0.40.9 | ||
0.40.8 | ||
0.40.7 | ||
0.40.6 | ||
0.40.5 | ||
0.40.4 | ||
0.40.3 | ||
0.40.2 | ||
0.40.1 | ||
0.40.0 | ||
0.32.7 | ||
0.32.6 | 6m+ |
no notes
Thank you to all that contributed with flushing out issues and enhancements for K9s! I'll try to mark some of these issues as fixed. But if you don't mind grab the latest rev and see if we're happier with some of the fixes! If you've filed an issue please help me verify and close.
Your support, kindness and awesome suggestions to make K9s better are, as ever, very much noted and appreciated! Also big thanks to all that have allocated their own time to help others on both slack and on this repo!!
As you may know, K9s is not pimped out by corps with deep pockets, thus if you feel K9s is helping your Kubernetes journey, please consider joining our sponsorship program and/or make some noise on social! @kitesurfer
On Slack? Please join us K9slackers
To all the good folks below that opted to pay it forward
and join our sponsorship program, I salute you!!
Sponsorship cancellations since the last release: 12! 🥹
We are pretty stocked about this drop (hopefully...) as we've fully enabled custom columns support in K9s!
Historically, one could customize the view for a given resource by adding a definition in views.yaml
.
From there one could change sort order and re-arrange the standard column layout.
Several folks voiced the need to add a column for a given label/annotation or any other fields available on a resource.
To date, this wasn't possible 😳
So... without further ado, let see what we can now do with Custom Views
ding dang deal!
It all starts with a few new directives available in views.yaml
Customize a pod view and ensure age, ns and name appear first and sort by age descending.
NOTE! You no longer need to list out all columns. The remaining columns will be automatically filled from the standard columns.
# Usual biz...
views:
v1/pods: # specify the gvr you want to customize aka group/version/resource
sortColumn: AGE:desc # set the default ordering to ascending (asc) or descending (desc)
columns: # tell the view which columns to display and in which order
- AGE # ensure age, ns and name are the first 3 cols and backfill the rest
- NAMESPACE
- NAME
- READY|H # => NEW! Do not display the READY column
- NODE|W # => NEW! Show node column only on wide
- IP|WR # => NEW! Pull the ip column and right align it in wide mode only
Say your pods comes standard with a label blee
and you want to show it while in pod view.
# Pull labels/annotations
views:
v3/freds:
sortColumn: NAMESPACE:dsc
columns:
- NAMESPACE
- NAME
- BLEE:.metadata.labels.blee # => NEW! Pull values from a label or an annotation using json parser
# expression similar mechanic as kubectl -o custom-columns
- ZORG:.spec.zips[?(@.type == 'zorg')].ip|WR # => NEW! Same deal with a json exp + but align right and show wide only
As you can see the CustomView feature adds a few new semantics on this drop.
You can now use the following shape for columns definition COL_NAME<:json_parse_expression><|column attributes>
The :json_parse_expression
is optional.
The column attributes are as follows:
T
-> time column indicatorN
-> number column indicatorW
-> turns on wide column aka only shows while in wide mode. Defaults to the standard resource definition when present.H
-> Hides the columnL
-> Left align (default)R
-> Right alignWhen certain columns are not present in the custom view, K9s will pull the standard column definition and merge the columns.
This allows user to specify and order which columns they want to see first without having to define every single columns from the default resource representation. If you do not wish to see all these columns you can add them to your custom view definition and either specify |W
or |H
to wide
it or hide
it.
📢 Still work in progress so your mileage may vary! This feature will likely need additional TLC. Your feedback on this will be much appreciated and we will iterate as usual to ensure it vorks as prescribed... 🙀
Please dial K9s Channel for up coming content...
Please be sure to give Big Thanks!
and ATTA Girls/Boys!
to all the fine contributors for making K9s better for all of us!!
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/imhotep_logo.png" width="32" height="auto"/> © 2024 Imhotep Software LLC. All materials licensed under Apache v2.0