Commit Graph

857 Commits (f0d0e62b700f08b04318d5c53ed0012ef2b0c8d9)

Author SHA1 Message Date
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