Fernand Galiana
e5cadf1f25
[Bug] Fix #2486 ( #2494 )
2024-01-19 08:57:56 -07:00
Alexandru Placinta
1a2ee1028c
Secrets are decoded upon describe ( #2461 )
2024-01-18 17:36:52 -07:00
Fernand Galiana
c76703a6e8
fix #2492 ( #2493 )
2024-01-18 12:33:10 -07:00
Fernand Galiana
ecb253622e
K9s/release v0.31.7 ( #2491 )
...
* fix #2488
* rel v0.31.7
2024-01-18 09:02:30 -07:00
Fernand Galiana
a543f47319
K9s/release v0.31.6 ( #2487 )
...
* [Bug] Fix #2476
* rel v0.31.6
2024-01-17 23:52:48 -07:00
Guanchzhou
5445ff4da1
Adding system arch to nodes view ( #2480 )
...
* adding arch to nodes view
* hiding arch under wide view and fix test
* fixing tests
---------
Co-authored-by: Andrei Maltsev <amaltsev@alpha-sense.com>
2024-01-17 07:36:25 -07:00
Jayson Wang
66cb682aab
shell autocomplete for k8s flags ( #2477 )
2024-01-16 17:26:00 -07:00
Fernand Galiana
ff17fff286
K9s/release v0.31.5 ( #2469 )
...
* fix #2466
* fix #2465
* rel v0.31.5
2024-01-12 14:59:38 -07:00
Fernand Galiana
356c56138e
K9s/release v0.31.4 ( #2464 )
...
* [Bug] Fix scale dialog ui
* [bug] Fix #2463
* v0.31.4 release notes
2024-01-10 16:57:37 -07:00
Zadkiel Aharonian
942e61a90f
fix: add missing shellpod config in schema ( #2451 )
...
Signed-off-by: GitHub <noreply@github.com>
2024-01-10 13:18:56 -07:00
Fernand Galiana
268def2834
K9s/release v0.31.3 ( #2460 )
...
* allow k9s to run with errors
* fixes #2459 #2458 #2454 #2435
* v0.31.3 rel notes
2024-01-10 09:38:26 -07:00
Fernand Galiana
65100b05d9
K9s/release v0.31.2 ( #2452 )
...
* [Bug] Fix #2428
* fix #2446
* fix #2449
* schemas updates
* Add debug info
* v0.31.2 rel notes
2024-01-09 11:34:46 -07:00
Fernand Galiana
98a7f3f1d6
K9s/release v0.31.1 ( #2443 )
...
* [Bug] Fix #2428
* [Bug] Ensures primordials configs are gen/saved if not present
* v0.31.1 release notes
2024-01-08 23:38:18 -07:00
Fernand Galiana
6cc4374e83
K9s/release v0.31.0 ( #2440 )
...
* cleaning up
* [Bug] Fix #2425 - no context skin issue
* [Bug] Fix #2428
* [Feat] schema validation
* v0.31.0 Release notes
2024-01-08 18:30:49 -07:00
Jayson Wang
96a7e5a4d4
switch contexts only when needed ( #2433 )
2024-01-07 10:03:59 -07:00
Joshua Ward
d63fe83edb
chore: rebasing off main and resolving conflicts ( #2314 )
...
Co-authored-by: Joshua Ward <joshua.l.ward@leidos.com>
2024-01-03 23:38:37 -07:00
Jayson Wang
3137b2b55a
supports referencing envs in hotkeys ( #2420 )
...
* supports referencing envs in hotkeys
* add testcase for hotkeys
* rename attr name to keepHistory
2024-01-03 22:56:21 -07:00
Fernand Galiana
d0f874e01a
K9s/release v0.30.8 ( #2427 )
...
* [Bug] Fix #2418
* cleaning up
* rel notes
2024-01-03 12:07:02 -07:00
Jayson Wang
1c19ef6ad6
fix the check for whether the cluster supports metrics ( #2424 )
2024-01-03 08:26:22 -07:00
Fernand Galiana
982bf6a728
K9s/release v0.30.7 ( #2416 )
...
* [Bug] Fix #2413
* [Bug] Fix #2414
* [Bug] Fix #2407
* cleaning up
* Add config files watcher
* rel notes
2024-01-02 23:57:07 -07:00
Jayson Wang
39d93223d9
add boundary check for args parser ( #2415 )
2024-01-02 10:20:18 -07:00
Fernand Galiana
6a43167f1a
K9s/release v0.30.6 ( #2403 )
...
* fix #2401
* fix #2400
* fix #2387
* rel notes
2023-12-28 14:16:59 -07:00
Fernand Galiana
9e337a6be0
K9s/release v0.30.5 ( #2397 )
...
* [Bug] Fix #2393
* [Maint] Cleaning up
* rel docs
2023-12-27 17:40:44 -07:00
Nicolas Karolak
f5f3278e17
fix: create user tmp directory before the app one ( #2395 )
...
Otherwise on a shared machine, the `/tmp/k9s` directory will be owned by
the first user to lanch `k9s` command. The other users will get a
"permission denied" error.
2023-12-27 16:51:03 -07:00
Nicolas Karolak
736f6bfaa5
feat: allow to customize logs dir through environment variable ( #2396 )
...
Allow to customize log directory through `K9S_LOGS_DIR` environment variable.
If not set, fallsback on default tmp directory.
Fixes #2394
2023-12-27 16:00:09 -07:00
Fernand Galiana
34da44b441
K9s/release v0.30.4 ( #2392 )
...
* v0.30.3 version update (#2383 )
* Update build v0.30.2
* v0.30.3
* [Bug] Fix #2387
* [Bug] Fix #2391
* rel v0.30.4
---------
Co-authored-by: Emanuele Ciurleo <emanuele@ciurleo.com>
2023-12-26 10:30:11 -07:00
Jayson Wang
27cc859e68
case sensitive for specific command args and flags ( #2390 )
2023-12-26 09:46:16 -07:00
Fernand Galiana
00d16beedb
fix #2382 ( #2386 )
2023-12-25 18:25:53 -07:00
Fernand Galiana
26d1585699
K9s/release v0.30.3 ( #2381 )
...
* fix #2377
* fix #2379
* cleaning up
* Release docs
2023-12-25 12:06:23 -07:00
Fernand Galiana
1efadc81a6
K9s/release v0.30.2 ( #2376 )
...
* fix #2370
* Fix #2362
* K9s V0.30.2 release docs
2023-12-24 22:57:48 -07:00
Jayson Wang
e113f4b7c5
get node filtering params from matching context values ( #2375 )
2023-12-24 22:48:59 -07:00
Jayson Wang
defad7a174
fix cmdline flags not working ( #2373 )
2023-12-24 22:15:27 -07:00
Fernand Galiana
f0d0e62b70
K9s/release v0.30.1 ( #2369 )
...
* [Bug] Fix #2368
* [Bug] Fix #2363
* [Bug] Fix #2364
* [Bug] Fix #2366
* [Bug] Fix #2367
* Release docs + rebase fixes
2023-12-24 11:29:22 -07:00
Jayson Wang
f8ad4aa8c7
adding cancelable launch prompts to NodeShell ( #2360 )
2023-12-24 11:18:47 -07:00
Fernand Galiana
dcec53e061
K9s/rel v0.30.0 ( #2361 )
...
* [Maint] Refactor VS col handling
* [Bug] Add helm hist <enter> values cmd
* [Bug] Add context specific skins within a given cluster config.
* [Maint] Image scan controls
* [Bug] Fix fwd+bench timestamp
* [Refact] all-ns const
* [Maint] update tabledefs from metav1beta1 to metav1
* [Feat] Introduce workload view
* [Maint] Add convenience to map out ns names
- Refactor allnamespaces
* [Cleanup] axe pegomock
* [Refact] Use gvr type vs string
* [Feat] Add blacklist scans exclusions
* [Feat] setLabels for stored commands
* [Maint] Rename api-group column
* [Refact] gvr type refactor
* [Maint] Cleaning up
* [Bug] Add ability to skin based on context
- Handles cluster spanning *contexts
* [Maint] Cleaning up
* [Feat] Cmd interpreter
* [Maint] Clean up + bug fixes
* [Feat] Changed k9s config loader
> NOTE: !!Breaking change!!
- Make k9s config readonly
- Move writable artifacts to XDG data dir
- Move transient artifacts to XDG state dir
- Add per context skin option
- Add per context readonly option
- Consistent pluralization file names to yaml section
* [Docs] Update release and README docs
* [Maint] Rebase + cleanup
* [Maint] Normalize config extensions all yml -> yaml
* [Maint] Cleaning up + fixes
2023-12-23 14:29:55 -07:00
Jayson Wang
7bd7ec766a
adding value, yaml and describe views to helm-history ( #2341 )
...
* correct describe of helm history
* value, yaml and describe view for helm-history
* add value_extender and clean up code
* move showValues to the new extender
2023-12-19 15:21:12 -07:00
Jayson Wang
104bf96415
passing on the correct suggestion parameters ( #2343 )
2023-12-13 15:24:07 -07:00
Jayson Wang
f6dfc3721a
adding a default value for the AGE field ( #2320 )
...
* adding a default value for the AGE field
* use NAValue as a fallback value
2023-12-08 20:07:28 -07:00
Jayson Wang
d0ec55737a
fix fuzzy matching not working properly ( #2321 )
...
* fix fuzzy matching not working properly
* delete continuousRanges
2023-12-08 08:10:40 -07:00
derailed
a13412a6d9
[HotFix] Fix issues #2330 #2329 #2327
2023-12-07 09:58:11 -07:00
Fernand Galiana
a44cb6135c
K9s Release v0.29.0 ( #2326 )
...
* Feat: Move shell pod cluster config to general config
> BREAKING CHANGE! K9s configuration breaking change! Shellpod specification will
no longer reside with a cluster configuration. It is now part of the
global K9s configuration object.
Shellpod configuration should be part of k9s config. Clusters admins
will most likely use the same image and config to run shells on their
nodes. Each cluster in turn will have the option to either
enable/disable shelling into nodes. This not only DRYs up the k9s config
but also allows user to consolidate their shell pod configuration in one
central place.
* Fix #2290 - Add freebsd assets
* Maintenance cleaning up
* Fix #2166 - Add taint tracking column to node view
* Fix #2009 : Update screendump file names to contain resource info
* Maintenance: Cleanup errror messages
* Fix #1513 : Change log default to tail vs last 5min
* Fix #2166 : Add taint indicator on node view
* Fix #2165 : Track init co restarts
* Fix #2308 : Fix rbac auth checks
* Fix #2036 : Fix npe on filtering CRDs
* Fix #2219 : Turn on TTY option on shellpod
* Fix #2167 : Update color escape sequence on copy
* Fix #2297 : Enable multi select on nodes
* Cleanup headers
* Fix #2162 : Allow edit when describing/viewing
* Feat: Add helm release history support
* Fix #2039 : Command Arrow up/down + enter support
* Small refactor
* Add img vulenerability scans support
* Change skin loading and support
- Move skin specification to k9s cluster config section
- Load skins for skins dir
* Release v0.29.0 docs
2023-12-06 23:12:39 -07:00
Jayson Wang
4e37faf383
check if the service provides selectors ( #2322 )
2023-12-01 15:51:40 -07:00
Jayson Wang
0c642c6786
proper handling of help commands ( fixes #2154 ) ( #2319 )
2023-11-29 08:56:27 -07:00
Jayson Wang
c639b6a5cf
fix namespace suggestion error on context switch ( #2315 )
2023-11-28 07:46:44 -07:00
Jayson Wang
fcfff5701e
add suggestions for context and resources on the command bar ( #2285 )
...
* add suggestions for context and resources on the command bar
* instead strings.Fields
* cacheable and provide test cases
2023-11-26 17:17:46 -07:00
Alexandru Placinta
38275b25ea
Allow both .yaml and .yml yaml config files ( #2284 )
2023-11-26 07:45:03 -07:00
Jayson Wang
ac8395dded
chore: use k8s.io/kubernetes as a dependency is unsupported and not recommended ( #2310 )
2023-11-24 08:28:51 -07:00
Jayson Wang
3fc80f1005
should not be clear screen when exeuting plugin ( #2313 )
2023-11-24 08:21:56 -07:00
ClementLachaussee
2d8fb99993
feat: add imagePullSecrets and imagePullPolicy configuration for shellpod ( #2301 )
...
* feat: add imagePullSecrets and imagePullPolicy in shell_pod for internal registry use cases
* docs: add imagePullPolicy and imagePullSecrets configuration example
* docs: remove comments
* docs: use same wording
* docs: remove useless phrase
* fix: truncated comment
* fix: use correct type, remove useless if
* add: ImagePullPolicy on container variable
---------
Co-authored-by: clementlachaussee <clement_lachaussee@ext.carrefour.com>
2023-11-21 13:03:27 -07:00
Fernand Galiana
702f6f01b2
Clean up items... ( #2303 )
...
* Update licence header
* Add linter workflow
* Add pkg builds
2023-11-19 08:43:39 -07:00
Chris Werner Rau
1bfd824ab4
feat: allow for multiple plugin files in $XDG_DATA_DIRS/k9s/plugins ( #2029 )
2023-11-12 11:35:46 -07:00
Fernand Galiana
32b9493a0d
Clean up issues introduced by #2125 ( #2289 )
2023-11-12 11:33:01 -07:00
Alexandru Placinta
344990e096
Pod view resembles more the output of kubectl get pods -o wide ( #2125 )
2023-11-12 11:08:16 -07:00
Jayson Wang
46a1ed0cf1
storageclasses view keeps the same output as kubectl get sc ( #2132 )
...
* storageclasses view keeps the same output as kubectl get sc
* fix sc test
* rollback labels and valid field and add test case
2023-11-12 11:00:35 -07:00
Fernand Galiana
7ece543681
Fix merge issues with PR #2168 ( #2288 )
2023-11-12 10:59:09 -07:00
Alexandru Placinta
5a8dc2d4b3
Add colour config for container picker ( #2140 )
2023-11-12 10:52:10 -07:00
Nick Mills-Barrett
9d804c6c17
Add env var to disable node pod counts ( #2168 )
...
* Add env var to disable node pod counts
* Move disabling pod counting to config
* Correct alias context function name
2023-11-12 10:32:02 -07:00
Takumi Sue
23e600bef5
Use current k9s NS if new context has no default NS ( #2197 )
...
* Fix resetting active namespace when switching ctx
* Respect existing behavior
and set k9s's active ns if no ns specified in the context
2023-11-12 10:23:46 -07:00
MrLuje
a2a7544a6f
fix: trigger a single log refresh after changing 'since' ( #2202 )
2023-11-12 10:07:46 -07:00
Clément Loiselet
24e244ca82
fix( #1359 ): add option to keep missing clusters in config ( #2213 )
...
Co-authored-by: Clément Loiselet <clement.loiselet@cbp-group.com>
2023-11-12 09:42:50 -07:00
derailed
eb7460e8d8
restore delete shortcut
2023-11-11 23:16:14 -07:00
Jayson Wang
7af4b2d890
try to get the os name form the pod assigned node ( #2282 )
...
* get the os name from the node when needed
* code quality
* remove err sentinel
---------
Co-authored-by: Fernand Galiana <fernand.galiana@gmail.com>
2023-11-11 18:51:46 -07:00
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
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
muicoder
cab718387c
Fix Get CustomResourceDefinition( #1711 ) ( #1722 )
...
* Fix Get CustomResourceDefinition(#1711 )
* Update crd_test.go
2022-09-18 07:11:59 -06:00
Maurizio Pasquinelli
6342ee537d
Fix typo in cronjob ( #1759 )
2022-09-17 07:42:47 -06:00
이태형
7f9f3ce04c
fix redundant type conversion code ( #1725 )
...
Co-authored-by: rolancia <rolancia.com@gmail.com> Good catch!! Thank you @rolancia!!
2022-08-27 09:11:05 +02:00
Fernand Galiana
e309c28d26
K9s/rel v0.26.1 ( #1685 )
...
* fix #1661 #1680
* cleaning up
* add rel notes
2022-08-02 13:22:16 -06:00
Tuan Anh Pham
c0c62e7826
Fix persistentvolumes not showing terminating status ( #1682 )
...
@anhpngt Doh!! indeed... Thank you for the fix Tuan! I see what's happening with the renderer. Will fix in the next drop...
2022-08-01 15:28:52 -06:00
Aleksei Romanenko
c6ad80126e
Show UsedBy for PriorityClasses ( #1666 )
...
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2022-07-30 06:47:51 -06:00
Ben Blackmore
6e398ed6fb
feat: allow disable CTRL-C behavior ( #1672 )
...
Fixes #1599
2022-07-26 07:54:46 -06:00
Aleksei Romanenko
6dec26f9cc
Fix PF delete with no container ( #1668 )
...
* Fix PF delete with no container
* Fix PF delete with no container
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2022-07-20 15:24:56 -06:00
derailed
ee07b98755
cleaning up deprecation
2022-07-17 09:56:16 -06:00
Fernand Galiana
b6feb10388
K9s/rel v0.26.0 ( #1660 )
...
* additional tests + cleanup
* release v0.26.0
2022-07-17 09:28:59 -06:00
Aleksei Romanenko
d9629dd537
Fix PF and RS colors ( #1656 )
...
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2022-07-16 08:35:50 -06:00
Aleksei Romanenko
56c898fcb0
Fix #1636 : can't switch context with --kubeconfig flag ( #1638 )
...
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2022-07-07 08:25:59 -06:00
Fernand Galiana
66c22f1c6f
K9s rel v0.25.21 ( #1635 )
...
* additional tests + cleanup
* update docs
* update docs
2022-06-30 12:03:33 -06:00
Christian Provenzano
7c5ba99cc1
Fix delete dialog dropdown styling ( #1632 )
...
* Fix delete dialog dropdown styling
Update tview to allow dropdown styling
* Update tview
2022-06-30 11:22:54 -06:00
Bryan A. S
2deec5c2b9
Fix TestToAge ( #1627 )
2022-06-29 13:47:33 -06:00
Fernand Galiana
373fd4587b
K9s release v0.25.20 ( #1621 )
...
* release v0.25.20
* fix rel notes
2022-06-28 09:29:30 -06:00
Fernand Galiana
bb5ba1306d
K9s release v0.25.19 ( #1610 )
...
* release v0.25.19
* update deps revs
2022-06-27 19:20:22 -06:00
Gabriel Simmer
842c7d2d0f
Capitalise true/false when checking suspension ( #1601 )
2022-06-27 18:00:25 -06:00
Christian Provenzano
8e8f874b1e
Allow all deletion propagation policies ( #1553 )
...
* Allow all deletion propagation policies
* Add "none" deletion propagation policy
2022-05-26 07:48:00 -06:00
Joshua Ward
1c29fcaf61
Add Helm values support ( #1518 )
...
* 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>
2022-05-19 09:17:49 -06:00
tyzbit
25e02db101
Add locking favorite namespaces ( #1449 ) ( #1519 )
...
* add locking favorite namespaces (#1449 )
* let favorites be set via type default
2022-05-19 09:15:40 -06:00
Léo
b24759e6fe
fix view details secret fullscreen padding to 0 ( #1493 )
...
closes https://github.com/derailed/k9s/issues/1450
2022-04-07 10:42:52 -06:00
Fernand Galiana
6085039f83
fix #1402 ( #1408 )
2021-12-28 09:52:33 -07:00
Fernand Galiana
2a9f5464c3
K9s: rel v0.25.17 ( #1406 )
...
* fix #1402 #1401
* add rel notes
2021-12-27 23:42:01 -07:00
Fernand Galiana
fc8ffe5d37
release v0.25.16 ( #1400 )
2021-12-24 17:41:35 -07:00
Fernand Galiana
df613ec88d
fix #1384 ( #1388 )
2021-12-17 10:04:52 -07:00
Fernand Galiana
306e4f239f
release v0.25.14 ( #1385 )
2021-12-16 17:59:53 -07:00
Fernand Galiana
fdc638c5d4
release v0.25.13 ( #1383 )
2021-12-16 09:30:10 -07:00
Fernand Galiana
01bdc85020
K9s: release v0.25.12 ( #1379 )
...
* release v0.25.12
* update rel notes
2021-12-14 23:46:32 -07:00
Fernand Galiana
11c2ae2622
release v0.25.11 ( #1377 )
2021-12-14 10:44:24 -07:00
derailed
aef0840e73
must get moore sleep!
2021-12-13 15:42:51 -07:00
Fernand Galiana
34eab38afb
k9s: release v0.25.9 ( #1364 )
...
* release v0.25.9
* update docs
2021-12-13 13:02:44 -07:00
Vlasov Artem
0249f7cf2c
Add customizable dump directory property ( #1321 )
...
* Add customizable dump directory property
Add property for configuration file and arguments
* Resolve Comments
Co-authored-by: Artem Vlasov <artemv@tradeix.com>
2021-12-13 12:42:44 -07:00
Fernand Galiana
f97bceaf64
release v0.25.8 ( #1354 )
2021-12-03 15:18:12 -07:00
Wendell Sun
265e0561aa
add logFile flag to change the default log file path ( #1336 )
2021-11-26 15:41:44 -07:00
Fernand Galiana
6b6a490c73
K9s: release v0.25.7 ( #1343 )
...
* fix #1341
* fix tests
2021-11-26 14:02:44 -07:00
Fernand Galiana
f0b540a350
rel v0.25.6 ( #1335 )
2021-11-23 23:59:25 -07:00
Fernand Galiana
4ae57817bd
rel v0.25.5 ( #1334 )
2021-11-23 09:51:40 -07:00
Fernand Galiana
165ffeab93
K9s: rel v0.25.4 ( #1322 )
...
* release v0.25.4
* update docs
* update docs
2021-11-20 13:23:26 -07:00
Fernand Galiana
81823ae167
fixed #1311 #1310 #1293 ( #1313 )
2021-11-16 22:41:02 -07:00
muicoder
5d62fdc425
Fix accessMode getting exception ( #1306 )
...
The result obtained in the old way is always the first ReadWriteOnce(RWO)
2021-11-16 18:14:49 -07:00
Fernand Galiana
83b5feeb37
fixed #1308 #1307 #1296 ( #1309 )
2021-11-16 13:58:51 -07:00
Fernand Galiana
4e20e5f110
K9s: Release v0.25.0 ( #1304 )
...
* update rel notes
* release 0.25 checkpoint
* cleaning up
2021-11-15 23:24:51 -07:00
Eng Zer Jun
5166adb7c1
refactor: move from io/ioutil to io and os packages ( #1300 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-08 08:47:18 -07:00
Rick
3b28b94bc7
Fix a small typo which comes from the cluster info view ( #1284 )
2021-10-20 22:23:15 -06:00
Fernand Galiana
a637d494bf
fix #1258 ( #1270 )
2021-10-02 13:00:05 -06:00
Konstantinos Natsakis
1152133de1
Node shell pods tolerate all taints ( #1249 )
2021-10-02 11:11:53 -06:00
Fernand Galiana
9a455438d1
#1268 age sorting ( #1269 )
...
* #1268 age sorting
* cleaning up
2021-10-02 10:58:08 -06:00
derailed
019121c04e
update build dependencies
2021-09-23 13:41:44 -06:00
Chris Henzie
04e7e28e15
Add abbreviation for ReadWriteOncePod PV access mode ( #1227 )
...
* Bump k8s.io dependencies to 0.22.0
* Add abbreviation for ReadWriteOncePod PV access mode
2021-08-19 07:45:39 -06:00
derailed
1bd2959529
cleaning up
2021-08-07 07:37:19 -06:00
derailed
7e2dab2a66
cleaning up
2021-08-07 07:29:47 -06:00
derailed
13d52f120f
cleaning up
2021-08-07 07:24:34 -06:00
Fernand Galiana
0bc6179471
K9s: rev 0.24.15 ( #1218 )
...
* fix cron triggers
* fix cron triggers again...
* fix #1203 #1206
* cleaning up
* revert persistent flag
* fix #1181 + update docs
2021-08-06 15:43:36 -06:00
Takumasa Sakao
b232dacf3c
Support GVR environment variables for plugin ( #1213 )
...
* Add resource name as plugin environment variable
* Add support of RESOURCE_GROUP & RESOURCE_VERSION too
2021-08-06 05:18:48 -06:00
Arthur
0bc2e1764b
Make k9s configuration compatible with XDG Base Directory Specification to not pollute user home directories. ( #1025 )
...
* Make k9s configuration compatible with XDG Base Directory Specification to not pollute user home directories.
* Update readme to include new configuration directory.
* Replace spaces with tabs.. :)
* Remove extra backslash in Windows configuration directory path.
Co-authored-by: Fernand Galiana <fernand.galiana@gmail.com>
2021-08-05 17:04:39 -06:00
Takumasa Sakao
a2fa1ef1b8
Fix environement variable substitution bug at plugin argument ( #1198 )
2021-07-24 08:06:56 -06:00
Daniel Lee Harple
10a52d1241
Disable pod view for ExternalName services ( #1196 )
...
Previously all pods in the service's namespace were shown.
2021-07-24 07:33:29 -06:00
Fernand Galiana
026adfbfbf
K9s 1186: prev logs ( #1190 )
...
* fix cron triggers
* fix cron triggers again...
* fix #1186
* update rel notes
2021-07-08 07:11:35 -06:00
Fernand Galiana
003ae042fb
fix #1182 #1167 ( #1183 )
2021-07-01 08:12:09 -06:00
Fernand Galiana
0f95aecc3f
K9s 1167/cronjob trigger with feelings ( #1179 )
...
* fix cron triggers
* fix cron triggers again...
2021-06-30 06:52:57 -06:00
Fernand Galiana
a35155415e
fix cron triggers ( #1171 )
2021-06-29 08:25:04 -06:00
Fernand Galiana
164b8658dd
Fix #1163 add prompt styles ( #1172 )
2021-06-29 08:23:17 -06:00
Fernand Galiana
107c0acd33
fix #1169 index out of range ( #1170 )
2021-06-29 08:06:31 -06:00
derailed
9b498196f9
fix #1163 #1153 #1151 #1140 #1137 #1132 #1131
2021-06-27 23:22:13 -06:00
Raul Cabello Martin
a631712c05
feat(log): Add all containers toggle ( #1141 )
...
Closes #1138
2021-06-04 08:25:48 -06:00
Raul Cabello Martin
c9783fac61
feat(log): Support of kubectl.kubernetes.io/default-logs-container an… ( #1133 )
...
* feat(log): Support of kubectl.kubernetes.io/default-logs-container annotation
Closes #1057
* feat(log): Support of kubectl.kubernetes.io/default-logs-container annotation
refactored to return ok bool with the container
Closes #1057
* feat(log): Support of kubectl.kubernetes.io/default-logs-container annotation
refactored getDefaultLogContainer
log if container was not found
2021-05-26 15:33:03 -06:00
derailed
6426ea112f
windows shell fix
2021-05-19 23:54:08 -06:00
derailed
739f495daa
fix shell issue + bugz
2021-05-03 23:39:54 -06:00
derailed
9f4ff32699
fix shell issue + bugz
2021-05-03 22:33:22 -06:00
Louis Garman
d49a06d851
Dynamically load style for help from skin ( #1113 )
2021-05-03 22:26:28 -06:00