add rel notes

mine
derailed 2020-01-20 18:43:03 -07:00
parent 8a0b78a77b
commit 9089346e35
3 changed files with 16 additions and 3 deletions

View File

@ -17,6 +17,8 @@ Also if you dig this tool, please make some noise on social! [@kitesurfer](https
Found a waffle thin issue in the Beryllium(Be) core causing K9s xray vision to only operate on one eye ;) Found a waffle thin issue in the Beryllium(Be) core causing K9s xray vision to only operate on one eye ;)
Should be all betta' now... Should be all betta' now...
The `xray` command now takes an **optional** third argument for the target namespace ie `:xray dp fred` will show the Xray view for deployments in the `fred` namespace.
Supported resources: Supported resources:
* Pods * Pods
@ -26,7 +28,7 @@ Supported resources:
* DaemonSets * DaemonSets
* ReplicaSets * ReplicaSets
Still watch out for that overbite!! so please proceed with caution... Still watch out for that overbite!! hence please proceed with caution...
--- ---

View File

@ -74,7 +74,18 @@ func (c *Command) xrayCmd(cmd string) error {
if !allowedXRay(gvr) { if !allowedXRay(gvr) {
return fmt.Errorf("Huh? `%s` Command not found", cmd) return fmt.Errorf("Huh? `%s` Command not found", cmd)
} }
return c.exec(cmd, "xrays", NewXray(gvr), true)
x := NewXray(gvr)
ns := c.app.Config.ActiveNamespace()
if len(tokens) == 3 {
ns = tokens[2]
}
c.app.Config.SetActiveNamespace(client.CleanseNamespace(ns))
if err := c.app.Config.Save(); err != nil {
return err
}
return c.exec(cmd, "xrays", x, true)
} }
// Exec the Command by showing associated display. // Exec the Command by showing associated display.

View File

@ -83,7 +83,7 @@ func (x *Xray) Init(ctx context.Context) error {
x.SetInputCapture(x.keyboard) x.SetInputCapture(x.keyboard)
x.model.SetRefreshRate(time.Duration(x.app.Config.K9s.GetRefreshRate()) * time.Second) x.model.SetRefreshRate(time.Duration(x.app.Config.K9s.GetRefreshRate()) * time.Second)
x.model.SetNamespace(client.AllNamespaces) x.model.SetNamespace(client.CleanseNamespace(x.app.Config.ActiveNamespace()))
x.model.AddListener(x) x.model.AddListener(x)
x.SetChangedFunc(func(n *tview.TreeNode) { x.SetChangedFunc(func(n *tview.TreeNode) {