* Switch to new default-container pod annotation
kubectl.kubernetes.io/default-logs-container has been deprecated and
removed in kubectl, see
3a9c6f2a2f
* Show the default container as the first entry
In container selections show the default container as the first entry of
the list.
`exec.LookPath()` and `exec.Command()` aren't supposed to work with
binaries that are located in the current working directory:
fd208c8850:src/os/exec/exec.go
If `kubectl` is found in the current working directory, `LookPath()`
will return `ErrDot` even if it is also found in any other directory in
the `PATH`.
This patch detects this condition and shows a meaningful error message
in the log so that the user knows the reason why `kubectl` couldn't be
executed.
Related: https://github.com/derailed/k9s/issues/1787
* feat: add noLatestRevCheck flag to configure whether k9s should fetch the latest rev from the Github repo.
* refactor: rename "noLatestRevCheck" to more appropriate "skipLatestRevCheck"
Add the same policy view to ServiceAccounts as users/groups.
This also works under the xray view. This commit also fixes the
issue with role/rolebindings not having the same name not showing
up in Policy view.
* Fix path when viewing ScreenDump
* Log save should use `CurrentCluster` iso `CurrentContext`
* Remove sanitizing of dir in ScreenDump dao
* Switch `CurrentCluster` to `CurrentContext` for SD
* Revert log saving to `CurrentContext`
* Save tables to `CurrentContext` iso `CurrentCluster`
Toggling any of the log commands on and off causes the log indicator to
dance around - I assume this is because the line is centered, and when
on it is N characters long, when off N+1 characters, and so on
centering, the x-offset gets rounded.
This commit just adds an extra space after each "On" string so that
it occupies the same width as the "Off" string ... and the when
furiously toggling, the line remains blissfully static.
* Replace clipboard package
Fixes#868
* Raise error when clipboard.Write fails
* Call clipboard.Write when Init successes
* Flash error rather than panic
* Refactor copying into clipboard
* Refactor cpCmd to remove wrappers
* Use clipboardWrite instead of cpCmd
* working get values and get all valeus
* less verbose variable naming
* addressing comments and refactored to have a single view that has toggleable values
* better returns and logging
* returning event instead of nil
Co-authored-by: Joshua Ward <joshua.l.ward@leidos.com>