From 98125fc388e3e30f64c9cb9d0d50aaa6a40ecec8 Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 7 Sep 2020 10:02:50 +0800 Subject: [PATCH] fix --- zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 2df352c..6ff5ad7 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -402,9 +402,9 @@ function klogs { done if [[ "$PROJECT" != "" ]]; then - kubectl --context $KCONTEXT logs -f deployment/$PROJECT --all-containers=true --since=5s --pod-running-timeout=2s $finalopts + kubectl logs -f deployment/$PROJECT --all-containers=true --since=5s --pod-running-timeout=2s $finalopts elif [[ "$INSTANCE" != "" ]]; then - kubectl --context $KCONTEXT logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE + kubectl logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE fi }