Commit Graph

174 Commits (2d2746af3c65d62dbc97523a8d5bd85e893549c5)

Author SHA1 Message Date
guangwu 2d2746af3c
chore: pkg imported more than once (#2151) 2023-07-12 08:04:12 -06:00
SammyA 6db13eaa99
Fix for missing Job annotations created from CronJob (#2073) 2023-05-07 08:00:29 -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
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
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
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
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
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
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 489b841295
Add a closing tag when showing timestamp in log view (#1776) 2022-09-25 08:35:29 -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
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
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
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
Fernand Galiana b6feb10388
K9s/rel v0.26.0 (#1660)
* additional tests + cleanup

* release v0.26.0
2022-07-17 09:28: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
Fernand Galiana bb5ba1306d
K9s release v0.25.19 (#1610)
* release v0.25.19

* update deps revs
2022-06-27 19:20:22 -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
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 34eab38afb
k9s: release v0.25.9 (#1364)
* release v0.25.9

* update docs
2021-12-13 13:02:44 -07:00
Fernand Galiana 4ae57817bd
rel v0.25.5 (#1334) 2021-11-23 09:51:40 -07:00
Fernand Galiana 81823ae167
fixed #1311 #1310 #1293 (#1313) 2021-11-16 22:41:02 -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
derailed 019121c04e update build dependencies 2021-09-23 13:41:44 -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
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
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
derailed 9b498196f9 fix #1163 #1153 #1151 #1140 #1137 #1132 #1131 2021-06-27 23:22:13 -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 627c38cb36 bug fixes and enhancements 2021-04-29 11:21:43 -06:00
derailed d38efba564 fix bugz 2021-04-29 10:51:56 -06:00
derailed 679243d829 wins palette 2021-04-28 22:56:15 -06:00
Josh Soref a07243dbb0
Spelling (#1089)
* spelling: a hex

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: accepted

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: actions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: additional

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: assertions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: assessments

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: betta'

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: [br]eaking [ba]d

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: change

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: changed

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: childnodes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cleared

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: clusterrole

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: collection

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: columns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: configuration

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: confirm

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: consensus

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: crumbs

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ctrl

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ctx

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: debugging

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deltas

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deprecated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: describable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: disturbance

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: disturbances

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: efforts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: excitement

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: filter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: forward

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: forwarding

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: fqn

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: fullscreen

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: grab

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: graphable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: groups if

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: homebrew

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: hopeful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: impatient

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: initialized

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: initially

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: is a

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: job runner

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: kubectl

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: kubernetes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: latest

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: list

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: makusi

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: menu

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: mnemonic

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nice

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nominally

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nonexistent

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: original

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: outputs

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: override

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: parens

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: preceded

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: preliminary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: process

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: prozac

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: purpose

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: rbac

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: repeatedly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: replenishing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: resource

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: returns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: right

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: row event

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: rpi

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: salient

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: seemingly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: separator

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: shas

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: shortcut

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: shortcuts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: solidify

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: sponsorship

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: superfluous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: support

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: target's

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: threshold

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: times out

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: tripping

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unanimous (?)

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: upgrade

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: using

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: views

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: vulnerability

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: will launch

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-04-27 07:51:33 -06:00
derailed f4cd022a9c merge prs + dep updates 2021-03-27 15:03:46 -06:00
Fernand Galiana 561a0c1f41
K8s update (#1041)
* rev k8s

* add rel notes

* checkpoint

* add helm

* cleaning up

* cleaning up

* rel notes

* check deps

* rev apis + bugs

* cleanup cronjob view

* update rel notes

* clean up + docs
2021-03-19 09:20:05 -06:00