Commit Graph

827 Commits (5540b5a8256f4b5a06277d1455f402f78ba5853b)

Author SHA1 Message Date
Fernand Galiana 5540b5a825 Add sanitize command (#2286)
- Sanitize provides for clearing out pods in either completed/failed
  state #2277
2023-11-11 10:33:33 -07:00
Alexandru Placinta 19952cd282
Delete port forwards when pods get deleted or killed (#2247) 2023-11-10 17:51:26 -07:00
Alexandru Placinta a3155d015d
Add prompt border color customization (#2234) 2023-11-10 08:54:40 -07:00
Jayson Wang 893f15f802
check if the Node already cordoned when executing Drain (#2275)
* check if the Node already cordoned when executing Drain

* ensure node cordoned
2023-11-09 17:15:20 -07:00
Eng Zer Jun 458517fc14
chore: replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml` (#2280)
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-09 17:10:42 -07:00
Artem Gorbatiuk a34d7ae6bf
feat: add autoRefresh config field (#2256) (#2257)
* feat: add autoRefresh config field

Add autoRefresh: true to config test scenarios
Update all instances of NewLiveView() to pass autoRefresh config value to LiveView

* fix: rename generic autoRefresh config field to liveViewAutoRefresh

* docs: document liveViewAutoRefresh config field

* fix: use app config for NewLiveView creation

---------

Co-authored-by: Artem Gorbatiuk <wfrced@gmail.com>
2023-11-08 12:45:22 -07:00
Jayson Wang 68afb3d9ef
return the correct benchamrk path (#2272) 2023-11-08 08:37:16 -07:00
Fernand Galiana d19c792feb
K9s/rel v0.28.0 (#2274)
* check for plausible overflow when seting up env

* Various fixes and clean up

* Introduce File transfer command

- Add ability to upload/download files from/to pods

* release v0.28.0
2023-11-07 17:22:41 -07:00
Jayson Wang a8615d9f19
fix manual sorting not working when sortColumn is configured (#2253)
* fix manual sorting not working when sortColumn is configured

* using manualSort to indicate has modified the sort col

* make user changes to the sortColumn take effect
2023-11-05 07:50:45 -07:00
Jayson Wang 09719eb16b
fix fsnotify not fully working (#2258) 2023-10-29 13:32:41 -06:00
Jayson Wang b2be433637
consider units when sorting capacity (#2252) 2023-10-18 10:19:05 -06:00
Felipe Galindo Sanchez e906fa606f
fix: honor defaults from drain dialog in request (#2239)
* fix: honor defaults from dialog into request

* reuse options/defaults from arg

* fix additional references for defaults
2023-10-12 11:27:56 -06:00
yinheli 67b5da1732
fix(typo): pdb header typo (#2243) 2023-10-12 08:22:57 -06:00
Mike 13c25dd000
fix(log): clear bold log format after timestamp (#2229) 2023-10-04 08:28:16 -06:00
Kyle Huggins 12b1d28c9d
feat(alias): add `qa` for quit (#2188)
This adds an additional alias for "quit". `qa` is muscle memory for
vimmers, and fits in well alongside `q` and `q!`.

Resolves #856
2023-08-05 08:44:37 -06:00
Yarek T c67093807b
Focus command bar if active on startup (#2179)
If the command bar was activated with `:` before or during the splash
delay, the main page would steal focus from it, breaking the UI.

This patch re-focuses the command bar if its active after switching
focus to the main page.

Fixes issue #2178
2023-08-05 08:43:27 -06:00
Felix Geyer 062e7ef439
Show the default container as the first entry (#2158)
* 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.
2023-07-26 12:46:35 -06:00
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