Merge branch 'master' of github.com-derailed:derailed/k9s
commit
e2f22dadce
|
|
@ -161,7 +161,7 @@ K9s uses aliases to navigate most K8s resources.
|
||||||
| To delete a resource (TAB and ENTER to confirm) | `ctrl-d` | |
|
| To delete a resource (TAB and ENTER to confirm) | `ctrl-d` | |
|
||||||
| To kill a resource (no confirmation dialog!) | `ctrl-k` | |
|
| To kill a resource (no confirmation dialog!) | `ctrl-k` | |
|
||||||
| Launch pulses view | `:`pulses or pu⏎ | |
|
| Launch pulses view | `:`pulses or pu⏎ | |
|
||||||
| Launch XRay view | `:`xray pod⏎ | accepts po, svc, dp, rs, sts or ds |
|
| Launch XRay view | `:`xray RESOURCE [NAMESPACE]⏎ | RESOURCE can be one of po, svc, dp, rs, sts, ds, NAMESPACE is optional |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,8 @@ var expectedConfig = `k9s:
|
||||||
buffer: 800
|
buffer: 800
|
||||||
sinceSeconds: -1
|
sinceSeconds: -1
|
||||||
fullScreenLogs: false
|
fullScreenLogs: false
|
||||||
|
textWrap: false
|
||||||
|
showTime: false
|
||||||
currentContext: blee
|
currentContext: blee
|
||||||
currentCluster: blee
|
currentCluster: blee
|
||||||
clusters:
|
clusters:
|
||||||
|
|
@ -320,6 +322,8 @@ var resetConfig = `k9s:
|
||||||
buffer: 2000
|
buffer: 2000
|
||||||
sinceSeconds: -1
|
sinceSeconds: -1
|
||||||
fullScreenLogs: false
|
fullScreenLogs: false
|
||||||
|
textWrap: false
|
||||||
|
showTime: false
|
||||||
currentContext: blee
|
currentContext: blee
|
||||||
currentCluster: blee
|
currentCluster: blee
|
||||||
clusters:
|
clusters:
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ type Logger struct {
|
||||||
BufferSize int `yaml:"buffer"`
|
BufferSize int `yaml:"buffer"`
|
||||||
SinceSeconds int64 `yaml:"sinceSeconds"`
|
SinceSeconds int64 `yaml:"sinceSeconds"`
|
||||||
FullScreenLogs bool `yaml:"fullScreenLogs"`
|
FullScreenLogs bool `yaml:"fullScreenLogs"`
|
||||||
|
TextWrap bool `yaml:"textWrap"`
|
||||||
|
ShowTime bool `yaml:"showTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLogger returns a new instance.
|
// NewLogger returns a new instance.
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ func (l *Log) Init(ctx context.Context) (err error) {
|
||||||
}
|
}
|
||||||
l.logs.SetBorderPadding(0, 0, 1, 1)
|
l.logs.SetBorderPadding(0, 0, 1, 1)
|
||||||
l.logs.SetText(logMessage)
|
l.logs.SetText(logMessage)
|
||||||
l.logs.SetWrap(false)
|
l.logs.SetWrap(l.app.Config.K9s.Logger.TextWrap)
|
||||||
l.logs.SetMaxBuffer(l.app.Config.K9s.Logger.BufferSize)
|
l.logs.SetMaxBuffer(l.app.Config.K9s.Logger.BufferSize)
|
||||||
l.logs.cmdBuff.AddListener(l)
|
l.logs.cmdBuff.AddListener(l)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ func NewLogIndicator(cfg *config.Config, styles *config.Styles) *LogIndicator {
|
||||||
TextView: tview.NewTextView(),
|
TextView: tview.NewTextView(),
|
||||||
scrollStatus: 1,
|
scrollStatus: 1,
|
||||||
fullScreen: cfg.K9s.Logger.FullScreenLogs,
|
fullScreen: cfg.K9s.Logger.FullScreenLogs,
|
||||||
|
textWrap: cfg.K9s.Logger.TextWrap,
|
||||||
|
showTime: cfg.K9s.Logger.ShowTime,
|
||||||
}
|
}
|
||||||
l.StylesChanged(styles)
|
l.StylesChanged(styles)
|
||||||
styles.AddListener(&l)
|
styles.AddListener(&l)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue