Fix klogs
This commit is contained in:
parent
f9ed5be670
commit
d16b8262c9
@ -139,9 +139,11 @@ in
|
||||
|
||||
klogs = lib.mkDefault "${pkgs.writeShellScript "klogs" ''
|
||||
ctx="$1"
|
||||
namespace="$2"
|
||||
label="$3"
|
||||
echo=${pkgs.coreutils}/bin/echo
|
||||
shift
|
||||
namespace="$1"
|
||||
shift
|
||||
label="$1"
|
||||
shift
|
||||
|
||||
if [[ "$ctx" == "" || "$namespace" == "" || "$label" == "" ]]; then
|
||||
echo "Usage: klogs context namespace label"
|
||||
@ -154,7 +156,7 @@ in
|
||||
exit 1
|
||||
fi
|
||||
|
||||
kubectl --context "$ctx" logs -f -n "$namespace" -l "$label"
|
||||
kubectl --context "$ctx" logs -f -n "$namespace" -l "$label" $@
|
||||
''}";
|
||||
|
||||
nixfix = lib.mkDefault "nix fmt ./**/*.nix";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user