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
Aleksei Romanenko
b0c7f8d61c
Add k8s client compatibility matrix ( #1872 )
...
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
2022-11-29 09:11:13 -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
James Spurin
534c2791ca
Update README.md ( #1696 )
2022-11-05 08:42:52 -06:00
Dan Ramich
ca29473238
Bump all references of github.com/cenkalti/backoff to v4 ( #1821 )
2022-10-30 07:41:17 -06:00
Guillaume Berche
871a52d8d0
Plugin support for carvel kapp CR ( #1830 )
...
* Plugin support for carvel kapp CR
Shortcuts to call carvel kctrl cli
See https://carvel.dev/kapp-controller/docs/develop/management-command/#app
* Update carvel.yml
2022-10-30 07:04:15 -06:00
Guillaume Berche
61f7534612
flux.yml plugin now displays stderr messages ( #1829 )
...
Stderr were previously not piped into less
2022-10-30 07:03:39 -06:00
dependabot[bot]
2f72441bac
Bump actions/setup-go from 3.1.0 to 3.3.1 ( #1817 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3.1.0 to 3.3.1.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3.1.0...v3.3.1 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 06:27:06 -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
dependabot[bot]
66cbad82a3
Bump k8s.io/klog/v2 from 2.70.1 to 2.80.1 ( #1779 )
...
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog ) from 2.70.1 to 2.80.1.
- [Release notes](https://github.com/kubernetes/klog/releases )
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes/klog/compare/v2.70.1...v2.80.1 )
---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:13:59 -06:00
dependabot[bot]
e7c4a0240a
Bump github.com/rs/zerolog from 1.27.0 to 1.28.0 ( #1780 )
...
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog ) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/rs/zerolog/releases )
- [Commits](https://github.com/rs/zerolog/compare/v1.27.0...v1.28.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:13:38 -06:00
dependabot[bot]
c39c02158a
Bump golang from 1.19.1-alpine3.16 to 1.19.2-alpine3.16 ( #1796 )
...
Bumps golang from 1.19.1-alpine3.16 to 1.19.2-alpine3.16.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:13:19 -06:00
dependabot[bot]
141b660541
Bump actions/checkout from 2 to 3.1.0 ( #1795 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3.1.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:12:52 -06:00
dependabot[bot]
dfcb2ae8f1
Bump github.com/mattn/go-runewidth from 0.0.13 to 0.0.14 ( #1813 )
...
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-runewidth/releases )
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.13...v0.0.14 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:12:31 -06:00
dependabot[bot]
d8f3605337
Bump github.com/spf13/cobra from 1.5.0 to 1.6.0 ( #1814 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:12:12 -06:00
Grzegorz Burzyński
0cefb3ec12
Allow multiple port forwards for a single Pod ( #1804 )
2022-10-18 06:47:34 -06:00
dependabot[bot]
f25d7865a6
Bump k8s.io/kubectl from 0.25.1 to 0.25.3 ( #1809 )
...
Bumps [k8s.io/kubectl](https://github.com/kubernetes/kubectl ) from 0.25.1 to 0.25.3.
- [Release notes](https://github.com/kubernetes/kubectl/releases )
- [Commits](https://github.com/kubernetes/kubectl/compare/v0.25.1...v0.25.3 )
---
updated-dependencies:
- dependency-name: k8s.io/kubectl
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:44:33 -06:00
dependabot[bot]
c11407237d
Bump golang.org/x/text from 0.3.7 to 0.4.0 ( #1812 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.7 to 0.4.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.4.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:44:16 -06:00
dependabot[bot]
86b804bd69
Bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0 ( #1810 )
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.4...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:43:57 -06:00
dependabot[bot]
4c091ce5b9
Bump k8s.io/cli-runtime from 0.25.1 to 0.25.3 ( #1811 )
...
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) from 0.25.1 to 0.25.3.
- [Release notes](https://github.com/kubernetes/cli-runtime/releases )
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.25.1...v0.25.3 )
---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernand Galiana <fernand.galiana@gmail.com>
2022-10-18 06:36:29 -06:00
Kevin Gentile
404b8e691f
use go install ( #1797 )
2022-10-18 06:34:57 -06:00
dependabot[bot]
1b1d432941
Bump k8s.io/client-go from 0.25.1 to 0.25.3 ( #1806 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.25.1 to 0.25.3.
- [Release notes](https://github.com/kubernetes/client-go/releases )
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.25.1...v0.25.3 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:34:15 -06:00
dependabot[bot]
8dde35226e
Bump k8s.io/metrics from 0.25.1 to 0.25.3 ( #1807 )
...
Bumps [k8s.io/metrics](https://github.com/kubernetes/metrics ) from 0.25.1 to 0.25.3.
- [Release notes](https://github.com/kubernetes/metrics/releases )
- [Commits](https://github.com/kubernetes/metrics/compare/v0.25.1...v0.25.3 )
---
updated-dependencies:
- dependency-name: k8s.io/metrics
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:33:47 -06:00
dependabot[bot]
d8f4b54585
Bump k8s.io/apimachinery from 0.25.1 to 0.25.3 ( #1808 )
...
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) from 0.25.1 to 0.25.3.
- [Release notes](https://github.com/kubernetes/apimachinery/releases )
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.25.1...v0.25.3 )
---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 06:33:33 -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
c66002d986
Merge branch 'master' of github.com-derailed:derailed/k9s
2022-09-26 21:40:46 -06:00
Fernand Galiana
abb0a39c0f
K9s/rel v0.26.6 ( #1784 )
...
* fix #1773
* update release notes
2022-09-26 21:40:28 -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
Rui Chen
56ab42db54
docs: update homebrew installation note ( #1772 )
...
Linuxbrew has been merged into Homebrew
See https://github.com/Linuxbrew/brew/issues/612 and https://github.com/Homebrew/brew/issues/7028
2022-09-25 08:37:54 -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
iserpent
ea18aec512
Plugin for opening a root shell to k3d containter ( #1709 )
...
* Plugin for opening a root shell to k3d containter
* Add namespace and context to kubectl call
Co-authored-by: Igor Iatsenko <igor.iatsenko@here.com>
2022-09-18 08:08:38 -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
Roman Kuznetsov
638d7d4442
Fix flux plugin to properly handle trace ( #1753 )
...
@kuznero Thank you!
2022-09-18 07:08:22 -06:00
jon r
a9f97bdf0c
README : correct (auto-)port-forwards annotations ( #1744 )
...
* README : correct (auto-)port-forwards annotations
* README : one more port-forwards typo
2022-09-17 08:04:20 -06:00
Maurizio Pasquinelli
6342ee537d
Fix typo in cronjob ( #1759 )
2022-09-17 07:42:47 -06:00
dependabot[bot]
58152cbd4a
Bump golang from 1.19.0-alpine3.16 to 1.19.1-alpine3.16 ( #1754 )
...
Bumps golang from 1.19.0-alpine3.16 to 1.19.1-alpine3.16.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-15 12:03:40 -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