Skip to content

Commit 3cb2d23

Browse files
committed
Improve k8s log view
1 parent a38e9c2 commit 3cb2d23

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor
2+
coverage.html
23
*~
34
*.o
45
*.a

.zshrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,14 +568,14 @@ function k8s_log() {
568568

569569
if [[ -f "$HOME/.bin/lj" ]] ; then
570570
if [[ $@ =~ (-F|--follow) || -n "$follow" ]] ; then
571-
kubectl logs "$resource" -f | lj -F $@
571+
kubectl logs "$resource" --tail=50 -f | lj -F $@
572572
return $?
573573
else
574-
kubectl logs "$resource" | lj $@
574+
kubectl logs "$resource" --tail=50 | lj $@
575575
return $?
576576
fi
577577
else
578-
kubectl logs "$resource" $@
578+
kubectl logs "$resource" --tail=50 $@
579579
return $?
580580
fi
581581
}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77

88
################################################################################
99

10-
VERSION="2.5.10"
10+
VERSION="2.5.11"
1111

1212
################################################################################
1313

0 commit comments

Comments
 (0)