Commit Graph

1602 Commits (ecb253622e86146265393a4411c17bc584d56ad5)

Author SHA1 Message Date
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
Emanuele Ciurleo ca72490350
#1873 add symlink into snap (#2350)
K9s snap is missing a symlink when installing on Ubuntu 22.04.3 LTS

This creates the link alongside the rest of the snap.
2023-12-18 08:31:50 -07:00
tyzbit 906138181e
fix(misc plugins): split up multiline commands, use less -K everywhere (#2348)
`less -K` makes ctrl+c work with `less`.

When running commands in k9s that use less, sometimes the command doesn't ever return or the user doesn't wait for it to finish. Issuing ctrl+c to a command with a simple `| less` puts k9s into an unfixable state, requiring restarting because `less` never quits. With `less -K`, ctrl+c quits `less` and the user should always be returned to a working `k9s` session.

I also used multiline strings in a few places which improve readability and remove the need for double quotes in many places as many commands had gotten long.
2023-12-18 08:31:38 -07:00
dependabot[bot] a52bbde956
Bump alpine from 3.18.5 to 3.19.0 (#2337)
Bumps alpine from 3.18.5 to 3.19.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 17:40:43 -07:00
Tobias Germer 5b73665f79
add pkgx to installation section (#2340) 2023-12-15 17:34:44 -07:00
dependabot[bot] 414f7d84dd
Bump actions/setup-go from 4.1.0 to 5.0.0 (#2339)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 17:34:01 -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
dependabot[bot] e94f991ad4
Bump alpine from 3.18.4 to 3.18.5 (#2325)
Bumps alpine from 3.18.4 to 3.18.5.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 16:08:51 -07:00
derailed 362358aaa0 update container revs 2023-12-07 10:54:02 -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
dependabot[bot] b360de3565
Bump github.com/derailed/tview from 0.8.1 to 0.8.2 (#2316)
Bumps [github.com/derailed/tview](https://github.com/derailed/tview) from 0.8.1 to 0.8.2.
- [Commits](https://github.com/derailed/tview/compare/v0.8.1...v0.8.2)

---
updated-dependencies:
- dependency-name: github.com/derailed/tview
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 21:49:25 -07:00
dependabot[bot] ce147ebc8c
Bump k8s.io/kubectl from 0.28.3 to 0.28.4 (#2318)
Bumps [k8s.io/kubectl](https://github.com/kubernetes/kubectl) from 0.28.3 to 0.28.4.
- [Commits](https://github.com/kubernetes/kubectl/compare/v0.28.3...v0.28.4)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 21:48:31 -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
dependabot[bot] a208059e29
Bump helm.sh/helm/v3 from 3.13.1 to 3.13.2 (#2293)
Bumps [helm.sh/helm/v3](https://github.com/helm/helm) from 3.13.1 to 3.13.2.
- [Release notes](https://github.com/helm/helm/releases)
- [Commits](https://github.com/helm/helm/compare/v3.13.1...v3.13.2)

---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 08:14:26 -07:00
dependabot[bot] e5912e7041
Bump k8s.io/cli-runtime from 0.28.3 to 0.28.4 (#2306)
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) from 0.28.3 to 0.28.4.
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.28.3...v0.28.4)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 08:14:06 -07:00
dependabot[bot] 6842392fa2
Bump k8s.io/client-go from 0.28.3 to 0.28.4 (#2305)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.28.3 to 0.28.4.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.3...v0.28.4)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 08:05:23 -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
dependabot[bot] 0d6805f63f
Bump k8s.io/klog/v2 from 2.100.1 to 2.110.1 (#2294)
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog) from 2.100.1 to 2.110.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.100.1...v2.110.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 17:59:46 -07:00
dependabot[bot] aee560d82c
Bump golang.org/x/text from 0.13.0 to 0.14.0 (#2295)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.13.0...v0.14.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 17:59:29 -07:00
dependabot[bot] c64d112509
Bump sigs.k8s.io/yaml from 1.3.0 to 1.4.0 (#2296)
Bumps [sigs.k8s.io/yaml](https://github.com/kubernetes-sigs/yaml) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/kubernetes-sigs/yaml/releases)
- [Changelog](https://github.com/kubernetes-sigs/yaml/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/yaml/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 17:59:15 -07:00
tyzbit 337ad9e402
add flux plugin image reconciliation commands (#1445) 2023-11-12 16:22:10 -07:00
fragolinux 91de8e1182
added flux suspended resources retrieval plugin (#1584)
* added flux suspended resources retrieval plugin

using this plugin, you can press Shift-S in "kustomizations" and "helmreleases" k9s sections to get a list of all suspended resources... a temporary patch till k9s will allow custom columns based on .spec in its views...

* Create rm-ns.yml

to test: create an "undeletable" namespace, with wrong finalizers:

```
apiVersion: v1
kind: Namespace
metadata:
  name: test
spec:
  finalizers:
    - foregroundDeletion
```

apply to cluster: `kubectl create -f test.yaml`

go in NS view in k9s, then select the test NS and press CTRL-D to delete it... it will stay in terminating state, because of the finalizers... now press "n", and confirm, to remove the finalizers... the NS should now be gone...

do NOT run on the "all+" ns, it will crash k9s...
2023-11-12 11:59:01 -07:00
Josh Soref f37d472c5b
Provide white blur so images work in dark modes (#1597) 2023-11-12 11:55:04 -07:00
Olivier Orand 46d4681933
Add context to get-all (#1701) 2023-11-12 11:45:05 -07:00
Sebastien Tardif 8b5ffce61a
fix brew command in the readme (#2012) 2023-11-12 11:38:23 -07:00
Jørgen Jervidalo b2775871c5
Add support for using custom kubeconfig with log_full plugin (#2014)
Support for using the log_full plugin (added in #2002) if starting k9s with a custom kubeconfig file (the `--kubeconfig` flag)
2023-11-12 11:37:01 -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
Jimmy Merrild Krag a02f2c64a3
Update README.md with snap install (#2262) 2023-11-12 11:04:08 -07:00
Aleksei Romanenko 79a2d50bb2
Add snapcraft config (#2123)
* Add snapcraft config

* Update snapcraft config
2023-11-12 11:02:39 -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
dependabot[bot] 21f1987fba
Bump actions/setup-go from 4.0.1 to 4.1.0 (#2200)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4.0.1...v4.1.0)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-12 10:10:50 -07:00
MrLuje a2a7544a6f
fix: trigger a single log refresh after changing 'since' (#2202) 2023-11-12 10:07:46 -07:00
Clément Blaise b3029eefbd
Add crossplane plugin (#2204) 2023-11-12 10:03:47 -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