rwaltr / dotfiles

7 stars 0 forks source link

feat: update stern/stern to v1.24.0 #317

Open teletraan-x[bot] opened 1 year ago

teletraan-x[bot] commented 1 year ago

This PR contains the following updates:

Package Update Change
stern/stern minor v1.22.0 -> v1.24.0

Release Notes

stern/stern ### [`v1.24.0`](https://togithub.com/stern/stern/blob/HEAD/CHANGELOG.md#v1240) [Compare Source](https://togithub.com/stern/stern/compare/v1.23.0...v1.24.0) #### :zap: Nortable Changes ##### Add a short format for timestamps `--timestamps` flag now accepts a format, one of `default` or `short`. - `default`: the original format `2006-01-02T15:04:05.000000000Z07:00` (RFC3339Nano with trailing zeros) - `short`: the new format `01-02 15:04:05` (time.DateTime without year). If `--timestamps` is specified but without value, `default` is used to maintain backward compatibility. $ stern --timestamps=short -n kube-system ds/kindnet --no-follow --tail 1 --only-log-lines kindnet-hqn2k kindnet-cni 03-12 09:29:53 I0312 00:29:53.620499 1 main.go:250] Node kind-worker3 has CIDR [10.244.1.0/24] kindnet-5f4ms kindnet-cni 03-12 09:29:53 I0312 00:29:53.374482 1 main.go:250] Node kind-worker3 has CIDR [10.244.1.0/24] ##### Add `--node` flag to filter on a specific node New `--node` flag allows you to filter pods on a specific node. This flag will be helpful when we debug pods on the specific node. ``` ``` ### [`v1.23.0`](https://togithub.com/stern/stern/blob/HEAD/CHANGELOG.md#v1230) [Compare Source](https://togithub.com/stern/stern/compare/v1.22.0...v1.23.0) #### New features ##### Add `--no-follow` flag to exit when all logs have been shown New `--no-follow` flag allows you to exit when all logs have been shown. stern --no-follow . ##### Support `/` form as a query Stern now supports a Kubernetes resource query in the form `/`. Pod query can still be used. stern deployment/nginx The following Kubernetes resources are supported: - daemonset - deployment - job - pod - replicaset - replicationcontroller - service - statefulset Shell completion of stern already supports this feature. ##### Add --verbosity flag to set log level verbosity New `--verbosity` flag allows you to set the log level verbosity of Kubernetes client-go. This feature is useful when you want to know how stern interacts with a Kubernetes API server in troubleshooting. stern --verbosity=6 . ##### Add --only-log-lines flag to print only log lines New `--only-log-lines` flag allows you to print only log lines (and errors if occur). The difference between not specifying the flag and specifying it is as follows: $ stern . --tail=1 --no-follow + nginx-cfbcb7b98-96xsv › nginx + nginx-cfbcb7b98-29wn7 › nginx nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#​1: start worker process 46 - nginx-cfbcb7b98-96xsv › nginx nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#​1: start worker process 46 - nginx-cfbcb7b98-29wn7 › nginx $ stern . --tail=1 --no-follow --only-log-lines nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#​1: start worker process 46 nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#​1: start worker process 46 #### Changes - Allow to specify --exclude-pod/container multiple times ([#​218](https://togithub.com/stern/stern/pull/218)) [b04478c](https://togithub.com/stern/stern/commit/b04478c) (Kazuki Suda) - Add --only-log-lines flag that prints only log lines ([#​216](https://togithub.com/stern/stern/pull/216)) [995be39](https://togithub.com/stern/stern/commit/995be39) (Kazuki Suda) - Fix typo of --verbosity flag ([#​215](https://togithub.com/stern/stern/pull/215)) [6c6db1d](https://togithub.com/stern/stern/commit/6c6db1d) (Takashi Kusumi) - Add --verbosity flag to set log level verbosity ([#​214](https://togithub.com/stern/stern/pull/214)) [5327626](https://togithub.com/stern/stern/commit/5327626) (Takashi Kusumi) - Add completion for flags with pre-defined choices ([#​211](https://togithub.com/stern/stern/pull/211)) [e03646c](https://togithub.com/stern/stern/commit/e03646c) (Takashi Kusumi) - Fix bug where container-state is ignored when no-follow specified ([#​210](https://togithub.com/stern/stern/pull/210)) [1bbee8c](https://togithub.com/stern/stern/commit/1bbee8c) (Takashi Kusumi) - Add dynamic completion for a resource query ([#​209](https://togithub.com/stern/stern/pull/209)) [2983c8f](https://togithub.com/stern/stern/commit/2983c8f) (Takashi Kusumi) - Support `/` form as a query ([#​208](https://togithub.com/stern/stern/pull/208)) [7bc45f0](https://togithub.com/stern/stern/commit/7bc45f0) (Takashi Kusumi) - Fix indent in update-readme.go ([#​207](https://togithub.com/stern/stern/pull/207)) [daf2464](https://togithub.com/stern/stern/commit/daf2464) (Takashi Kusumi) - Update dependencies and tools ([#​205](https://togithub.com/stern/stern/pull/205)) [1bcb576](https://togithub.com/stern/stern/commit/1bcb576) (Kazuki Suda) - Add --no-follow flag to exit when all logs have been shown ([#​204](https://togithub.com/stern/stern/pull/204)) [a5e581d](https://togithub.com/stern/stern/commit/a5e581d) (Takashi Kusumi) - Use StringArrayVarP for --include and --exclude flags ([#​196](https://togithub.com/stern/stern/pull/196)) [80a68a9](https://togithub.com/stern/stern/commit/80a68a9) (partcyborg) - Fix the invalid command in README.md ([#​193](https://togithub.com/stern/stern/pull/193)) [f6e76ba](https://togithub.com/stern/stern/commit/f6e76ba) (Kazuki Suda)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Renovate Bot.