add rel notes
parent
dbbf68fab9
commit
5bdac583ba
13
README.md
13
README.md
|
|
@ -168,6 +168,7 @@ K9s uses aliases to navigate most K8s resources.
|
|||
| `Ctrl-a` | Show all available resource alias | select+`<ENTER>` to view |
|
||||
| `/`filter`ENTER` | Filter out a resource view given a filter | `/bumblebeetuna` |
|
||||
| `/`-l label-selector`ENTER` | Filter resource view by labels | `/-l app=fred` |
|
||||
| `/`-f filter `ENTER` | Fuzzy find a resource given a filter | `/-f ngx` |
|
||||
| `<Esc>` | Bails out of view/command/filter mode | |
|
||||
| `d`,`v`, `e`, `l`,... | Key mapping to describe, view, edit, view logs,... | `d` (describes a resource) |
|
||||
| `:`ctx`<ENTER>` | To view and switch to another Kubernetes context | `:`+`ctx`+`<ENTER>` |
|
||||
|
|
@ -192,10 +193,14 @@ K9s uses aliases to navigate most K8s resources.
|
|||
refreshRate: 2
|
||||
# Indicates whether modification commands like delete/kill/edit are disabled. Default is false
|
||||
readOnly: false
|
||||
# Indicates log view maximum buffer size. Default 1k lines.
|
||||
logBufferSize: 200
|
||||
# Indicates how many lines of logs to retrieve from the api-server. Default 200 lines.
|
||||
logRequestSize: 200
|
||||
# Logs configuration
|
||||
logger:
|
||||
# Defines the number of lines to return. Default 100
|
||||
tail: 200
|
||||
# Defines the total number of log lines to allow in the view. Default 1000
|
||||
buffer: 500
|
||||
# Represents how far to go back in the log timeline in seconds. Default is 5min
|
||||
sinceSeconds: 300
|
||||
# Indicates the current kube context. Defaults to current context
|
||||
currentContext: minikube
|
||||
# Indicates the current kube cluster. Defaults to current context cluster
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 448 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 414 KiB |
|
|
@ -0,0 +1,67 @@
|
|||
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/k9s_small.png" align="right" width="200" height="auto"/>
|
||||
|
||||
# Release v0.18.0
|
||||
|
||||
## 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 is as ever very much noticed and appreciated!
|
||||
|
||||
Also if you dig this tool, please consider sponsoring 👆us or make some noise on social! [@kitesurfer](https://twitter.com/kitesurfer)
|
||||
|
||||
On Slack? Please join us [K9slackers](https://join.slack.com/t/k9sers/shared_invite/enQtOTA5MDEyNzI5MTU0LWQ1ZGI3MzliYzZhZWEyNzYxYzA3NjE0YTk1YmFmNzViZjIyNzhkZGI0MmJjYzhlNjdlMGJhYzE2ZGU1NjkyNTM)
|
||||
|
||||
---
|
||||
|
||||
## GH Sponsors
|
||||
|
||||
Big `ThankYou` to the following folks that I've decided to dig in and give back!! 👏🙏🎊
|
||||
Thank you for your gesture of kindness and for supporting K9s!!
|
||||
|
||||
* [Bob Johnson](https://github.com/bbobjohnson)
|
||||
* [Poundex](https://github.com/Poundex)
|
||||
* [thllxb](https://github.com/thllxb)
|
||||
|
||||
If you've contributed $25 or more please reach out to me on slack with your earth coordinates so I can send you your K9s swags!
|
||||
|
||||
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/shirts/k9s_front.png" align="right" width="200" height="auto"/>
|
||||
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/shirts/k9s_back.png" align="right" width="200" height="auto"/>
|
||||
|
||||
---
|
||||
|
||||
## AutoSuggestions
|
||||
|
||||
K9s command mode now provides for autocomplete. Suggestions are pulled from available kubernetes resources and custom aliases. The command mode supports the following commands:
|
||||
|
||||
| Key | Description |
|
||||
|---------------------|------------------------------------------|
|
||||
| ⬆️ ⬇️ | Navigate up or down thru the suggestions |
|
||||
| `Ctrl-w`, `Ctrl-u` | Clear out the command |
|
||||
| `Tab`, `Ctrl-f`, ➡️ | Accept the suggestion |
|
||||
|
||||
## Logs Revisited
|
||||
|
||||
Breaking Change! This drop changes how logs are viewed and configured. The log view now support for pulling logs based on the log timeline current settings are: all, 1m, 5m, 15m and 1h. The following log configuration is in effect as of this drop:
|
||||
|
||||
```yaml
|
||||
# $HOME/.k9s/config.yml
|
||||
k9s:
|
||||
refreshRate: 2
|
||||
readOnly: false
|
||||
# NOTE: New logger configuration!
|
||||
logger:
|
||||
tail: 200 # Tail the last 100 lines. Default 100
|
||||
buffer: 5000 # Max number of lines displayed in the view. Default 1000
|
||||
sinceSeconds: 900 # Displays the last x seconds from the logs timeline. Default 5m
|
||||
...
|
||||
```
|
||||
|
||||
## Resolved Bugs/Features/PRs
|
||||
|
||||
* [Issue #628](https://github.com/derailed/k9s/issues/628)
|
||||
* [Issue #623](https://github.com/derailed/k9s/issues/623)
|
||||
* [Issue #622](https://github.com/derailed/k9s/issues/622)
|
||||
* [Issue #565](https://github.com/derailed/k9s/issues/565)
|
||||
|
||||
---
|
||||
|
||||
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/imhotep_logo.png" width="32" height="auto"/> © 2020 Imhotep Software LLC. All materials licensed under [Apache v2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
|
@ -7,10 +7,8 @@ import (
|
|||
const (
|
||||
// DefaultLoggerTailCount tracks default log tail size.
|
||||
DefaultLoggerTailCount = 100
|
||||
// DefaultLoggerBufferSize tracks default view buffer size.
|
||||
DefaultLoggerBufferSize = 1_000
|
||||
// MaxLogThreshold sets the max value for log size.
|
||||
MaxLogThreshold = 1_000
|
||||
MaxLogThreshold = 5_000
|
||||
// DefaultSinceSeconds tracks default log age.
|
||||
DefaultSinceSeconds = 5 * 60 // 5mins
|
||||
)
|
||||
|
|
@ -26,7 +24,7 @@ type Logger struct {
|
|||
func NewLogger() *Logger {
|
||||
return &Logger{
|
||||
TailCount: DefaultLoggerTailCount,
|
||||
BufferSize: DefaultLoggerBufferSize,
|
||||
BufferSize: MaxLogThreshold,
|
||||
SinceSeconds: DefaultSinceSeconds,
|
||||
}
|
||||
}
|
||||
|
|
@ -39,10 +37,7 @@ func (l *Logger) Validate(_ client.Connection, _ KubeSettings) {
|
|||
if l.TailCount > MaxLogThreshold {
|
||||
l.TailCount = MaxLogThreshold
|
||||
}
|
||||
if l.BufferSize <= 0 {
|
||||
l.BufferSize = DefaultLoggerBufferSize
|
||||
}
|
||||
if l.BufferSize > MaxLogThreshold {
|
||||
if l.BufferSize <= 0 || l.BufferSize > MaxLogThreshold {
|
||||
l.BufferSize = MaxLogThreshold
|
||||
}
|
||||
if l.SinceSeconds == 0 {
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ func (c *Command) keyboard(evt *tcell.EventKey) *tcell.EventKey {
|
|||
if c.suggestionIndex >= 0 {
|
||||
c.model.Set(c.text + c.suggestions[c.suggestionIndex])
|
||||
}
|
||||
case tcell.KeyCtrlW:
|
||||
case tcell.KeyCtrlW, tcell.KeyCtrlU:
|
||||
c.model.Clear()
|
||||
case tcell.KeyTab, tcell.KeyDown:
|
||||
case tcell.KeyDown:
|
||||
if c.text == "" || c.suggestionIndex < 0 {
|
||||
return evt
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ func (c *Command) keyboard(evt *tcell.EventKey) *tcell.EventKey {
|
|||
c.suggestionIndex = 0
|
||||
}
|
||||
c.suggest(c.model.String(), c.suggestions[c.suggestionIndex])
|
||||
case tcell.KeyBacktab, tcell.KeyUp:
|
||||
case tcell.KeyUp:
|
||||
if c.text == "" || c.suggestionIndex < 0 {
|
||||
return evt
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ func (c *Command) keyboard(evt *tcell.EventKey) *tcell.EventKey {
|
|||
c.suggestionIndex = len(c.suggestions) - 1
|
||||
}
|
||||
c.suggest(c.model.String(), c.suggestions[c.suggestionIndex])
|
||||
case tcell.KeyRight, tcell.KeyCtrlF:
|
||||
case tcell.KeyTab, tcell.KeyRight, tcell.KeyCtrlF:
|
||||
if c.suggestionIndex >= 0 {
|
||||
c.model.Set(c.model.String() + c.suggestions[c.suggestionIndex])
|
||||
c.suggestionIndex = -1
|
||||
|
|
|
|||
Loading…
Reference in New Issue