@leverege/build-tools 2.5.34 → 2.5.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/repo-init/config.tgz +0 -0
- package/package.json +1 -1
- package/src/klog +6 -4
|
Binary file
|
package/package.json
CHANGED
package/src/klog
CHANGED
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
[ -f overwhelm.yaml ] && [ -f package.json ] && npm run ahoy
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
DTS="`date +\"%Y%m%d-%H%M%S\"`"
|
|
6
6
|
|
|
7
7
|
if [ ! -z "$1" ];
|
|
8
8
|
then
|
|
9
9
|
NS=${2:-"default"}
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
kubecmd="kubectl logs deployment/$1 --namespace $NS --follow=true --all-containers=true --since=10m | tee $1-$DTS.log | pino-pretty"
|
|
11
|
+
echo " run=[$kubecmd]"
|
|
12
|
+
eval ${kubecmd}
|
|
12
13
|
exit $?
|
|
13
14
|
fi
|
|
14
15
|
|
|
16
|
+
[ ! -x "$(command -v fzf)" ] && printf "\n***ERROR: Missing fzf fuzzy matcher => brew install fzf\n\n" && exit 1
|
|
17
|
+
|
|
15
18
|
# Pipes the output from kubectl into the fuzzy matcher which will yield:
|
|
16
19
|
# default message-processor-6b48cf68c6-8zblz 1/1 Running etc...
|
|
17
20
|
KUBEOUT=$(kubectl get pods --all-namespaces -owide | fzf | awk '{print $1, $2}')
|
|
@@ -34,7 +37,6 @@ SLICED="${PODCHUNKS[@]:0:$CHOPLEN}"
|
|
|
34
37
|
# keep in mind the slice above yields a string, so now we replace the spaces:
|
|
35
38
|
# message-processor
|
|
36
39
|
CONTAINER=${SLICED// /-}
|
|
37
|
-
DTS="`date +\"%Y%m%d-%H%M%S\"`"
|
|
38
40
|
|
|
39
41
|
kubecmd="kubectl logs --tail=50 --follow -c $CONTAINER --namespace $NAMESPACE $PODNAME | tee $CONTAINER-$DTS.log | pino-pretty"
|
|
40
42
|
echo " run=[${kubecmd}]"
|