Commit Graph

810 Commits (8af2956d61b59bb96e08b0997465cc25b8520282)

Author SHA1 Message Date
Thomas Dy 55c1905eb1
Only apply keyConv to mnemonic in menus (#2161)
This fixes an issue where namespaces with "alt" in the name get replaced
by "opt" when running on macOS.
2023-07-26 12:40:03 -06:00
Vlad Fratila f42f19bbce
Add namespace for rolebinding on a clusterrole (#2170)
* add namespace for rolebinding on a clusterrole

Signed-off-by: Vlad Fratila <vlad.fratila@gmail.com>

* remove unused function

Signed-off-by: Vlad Fratila <vlad.fratila@gmail.com>

---------

Signed-off-by: Vlad Fratila <vlad.fratila@gmail.com>
2023-07-26 12:39:37 -06:00
guangwu 2d2746af3c
chore: pkg imported more than once (#2151) 2023-07-12 08:04:12 -06:00
Jayson Wang dc06addd27
Remove unsupported key binding on users view (#2134) 2023-06-18 08:02:52 -06:00
Jayson Wang 957f70f775
Correctly display the numbers in the Ready column of the pods view (#2137) 2023-06-18 07:48:33 -06:00
Станислав 5a0a8f12e4
Fix for styles (#2112)
* Show correct error when loading skins.

* Fix wrong color reference for dracula theme
2023-06-14 08:02:27 -06:00
Daniel Vedsmand 25a99d3f3a
fix: add correct flags when deleting resources from Dir (#2124) 2023-06-14 07:59:20 -06:00
Jayson Wang d383788859
Fix the wrong/redundant icon in the prompt bar (#2105) 2023-05-28 07:02:17 -06:00
tyzbit 91cac5e979
fix: (config) only respect the --command flag once (#2096)
We want to switch to the command specified by the flag, but only at startup.

Afterwards, we should be interactive and favor the user's command choices over the startup commandline switch.
2023-05-21 09:06:37 -06:00
Fernand Galiana f4543e9bd2
Rel v0.27.4 (#2075)
* Update dependencies

* Update k9s skins

* Update release docs
2023-05-07 10:54:29 -06:00
Mike 465c947517
feat: allow customization of log indicator toggles closes #2024 (#2041) 2023-05-07 08:18:10 -06:00
tyzbit 5657b3cd72
fix: (views) use saved context view when switching (#2045)
* fix: (views) use saved context view when switching

* fix: (app) remove unnecessary variable
2023-05-07 08:15:11 -06:00
SammyA 6db13eaa99
Fix for missing Job annotations created from CronJob (#2073) 2023-05-07 08:00:29 -06:00
Alexandru Placinta 8b51950c25
Roles are rendered using same colorer function from skin (#2027) 2023-04-13 08:03:35 -06:00
R0CKSTAR a516775a81
Convert command to lowercase in the command palette (#1432) 2023-03-17 09:37:26 -06:00
Cason Adams f41c22bce2
Allowing a few hard coded colors to be configurable (#1405)
* making some hard coded colors configurable via skins

* more flexible colors for logo messages

* correct color formatting per MR comments

* no need to convert to String

---------

Co-authored-by: Cason Adams <cadams@roku.com>
2023-03-17 09:30:32 -06:00
Mohamed Messaad a5be038c99
fix: multiple matches in a single line. (#1876) 2023-03-17 09:26:10 -06:00
Jacob Lorenzen c851277e33
feat: add support for renaming contexts. (#2006)
* feat: add support for renaming contexts.

* chore: try to reduce ABC

* test: account for the `rename` hint
2023-03-17 09:11:09 -06:00
croustiPoulet 2955e2251f
Fix accessing nil map (#1996)
Co-authored-by: julien.demais.e <julien.demais.e@thalesdigital.io>
2023-03-16 23:02:47 -06:00
Niko Janceski ab9f960788
Sort by view default only if sort not currently set (#1962) 2023-03-16 14:27:44 -06:00
Aleksei Romanenko 4d42a900cc
Fix #2007: Remove debug command (#2011)
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2023-03-16 13:37:09 -06:00
Fernand Galiana 7c76691c38
Release v0.27.3 (#1970)
- [Issue #1968](https://github.com/derailed/k9s/issues/1968) Some skins are missing the definitions for the help menu
- [Issue #1967](https://github.com/derailed/k9s/issues/1967) Helm cve-2023-25165
- [Issue #1964](https://github.com/derailed/k9s/issues/1964) logger.sinceSeconds config setting inconsistent with README
- [Issue #1955](https://github.com/derailed/k9s/issues/1955) K9s crashes with empty resources and/or verbs in RBAC
- [Issue #1954](https://github.com/derailed/k9s/issues/1954) Open very slow
- [Issue #1883](https://github.com/derailed/k9s/issues/1883) Fix force deletion
- [Issue #1788](https://github.com/derailed/k9s/issues/1788) Draining nodes cannot be forced
- [Issue #1150](https://github.com/derailed/k9s/issues/1150) Add a persistent popup for drain failures
2023-02-12 08:12:25 -07:00
Niko Janceski d4ae1c7a74
Add sort by pod count on node view (#1961) 2023-02-11 11:51:29 -07:00
Antonio Niño Díaz 2d2baa884a
fix: Show meaningful error message when kubectl exec fails (#1966)
`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
2023-02-11 11:51:11 -07:00
Andrew Spiers 0d7678babc
set default sinceSeconds to 300 (#1965) 2023-02-11 11:50:46 -07:00
Wolfgang Ebner 7ca8ad8cea
Match ${XXX} environment variables (#1896) 2023-02-11 11:50:12 -07:00
Fernand Galiana d5c9cf5ed5
release v0.27.1 (#1945) 2023-01-31 08:09:53 -07:00
Fernand Galiana b5a7cfb3af
K9s/rel v0.27.0 (#1932)
* fix #1661 #1680

* rev k8s + cleanup

* release v0.27.0
2023-01-26 11:07:43 -07:00
Ruben Rodriguez ff4bfe1162
Add labels configuration to Shell node pod (#1847)
* Add labels config to shell node pod spec

* Add labels to config tests
2022-12-03 12:42:56 -07:00
Dan Ramich 3f280ca133
Update ScanSA calls to account for blank service accounts (#1871)
The original check in ScanSA assumed the service account on the pod spec
was not blank. It can be blank and when it is kubernetes will default
to using the 'default' service account. This change extends the check
logic to also include that.
2022-12-03 07:12:27 -07:00
Eugene Berger b9a9fb118d
bugfix for port forward custom containers not showing #1844 (#1877)
* bugfix for port forward costum containers not showing
#1844

* Adjust the port forward test key structure

Co-authored-by: Eugene <eugene.berger@dell.com>
2022-11-29 08:54:51 -07:00
Mohamed Messaad 530d067110
feat: add noLatestRevCheck config option (#1874)
* feat: add noLatestRevCheck flag to configure whether k9s should fetch the latest rev from the Github repo.

* refactor: rename "noLatestRevCheck" to more appropriate "skipLatestRevCheck"
2022-11-29 08:52:33 -07:00
Dan Ramich f552ffd72b
Add policy view to serviceAccounts (#1840)
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.
2022-11-15 23:11:30 -07:00
Audun V. Nes c353534855
Add VIM-like quit force option. (#1859)
Signed-off-by: Audun Nes <audun.nes@gmail.com>

Signed-off-by: Audun Nes <audun.nes@gmail.com>
2022-11-15 23:06:55 -07:00
Samuel Demirdjian e2b21c0133
Fix order of arguments for `CanI` function call (#1866)
When checking permissions to (un)suspend cronjobs, a user will always be
considered as unauthorized, because of the wrong arguments order when
calling the `CanI` function.

For `CanI` definition, see:
2f72441bac/internal/client/client.go (L138)
```
func (a *APIClient) CanI(ns, gvr string, verbs []string) (auth bool, err error)
```
2022-11-15 23:06:31 -07:00
Dan Ramich ca29473238
Bump all references of github.com/cenkalti/backoff to v4 (#1821) 2022-10-30 07:41:17 -06:00
Fernand Galiana 37569b8772
K9s/rel v0.26.7 (#1816)
* update batch resource api and remove unused ingress render

* docs update: add rel notes + update release version
2022-10-18 09:01:20 -06:00
Grzegorz Burzyński 0cefb3ec12
Allow multiple port forwards for a single Pod (#1804) 2022-10-18 06:47:34 -06:00
SammyA 8d40c60339
Update CronJob version to v1 (#1793)
* Update CronJob version to v1 (from v1beta1, unavaliable from 1.25 onwards).

* Try both batch/v1beta1 (for legacy) and batch/v1

* Revert previous commit. Use c.GVR() to find the correct version. Make
cronjob (un)suspend version aware.

* Simply changes by dropping support for deprecated batch/v1beta1 version
2022-10-18 06:30:47 -06:00
derailed 013dcaa9ec resolve conflict 2022-09-26 19:29:27 -06:00
derailed 39a55231fa fix #1773 2022-09-26 19:27:43 -06:00
fredericvl d0f4fa5b90
Fix directory path when viewing ScreenDump (#1777)
* 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`
2022-09-26 14:32:41 -06:00
Richard Hull cc52c71c52
Log toggles: add a space after "On" in logs view (#1775)
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.
2022-09-25 08:37:29 -06:00
Richard Hull 489b841295
Add a closing tag when showing timestamp in log view (#1776) 2022-09-25 08:35:29 -06:00
Fernand Galiana c35949189f
release v0.26.5 (#1771) 2022-09-22 09:19:09 -06:00
derailed 234fb5c91d clean up test 2022-09-21 14:31:02 -06:00
Fernand Galiana 412b064439
K9s/rel v0.26.4 (#1767)
* release v0.26.4

* update deps

* update docs

* fix merge

* update gha
2022-09-21 14:28:21 -06:00
Takumi Sue 6c9d06a2a0
Replace clipboard package (#868) (#1721)
* 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
2022-09-21 13:27:42 -06:00
Anthony bd677cc01b
List all helm releases (#1755)
On second thought, I'll accept your PR and will update the code to use `all` as I am getting ready for a new drop and would like to include your changes. Thanks Anthony!
2022-09-21 13:26:33 -06:00
Phil Kates 403cc63ddd
Fix GracePeriodSeconds (#1739)
`var x int64` means the value is 0 rather than the intended nil
(default).

`Delete` doesn't provide a way to configure the grace period anyway so
remove the variable and only override on a `force`

Co-authored-by: Phil Kates <phil.kates@cartacapitalmarkets.com>
2022-09-18 08:09:16 -06:00