Merge branch 'main' of ssh://git.homelabbrisbane.com.au:2222/jdownie/shed
This commit is contained in:
commit
b0764d2aac
@ -2,5 +2,9 @@
|
|||||||
|
|
||||||
NS="$1"
|
NS="$1"
|
||||||
DEPL="$2"
|
DEPL="$2"
|
||||||
kubectl logs -n "$NS" "deployment/$DEPL"
|
if [ "$3" = "-f" ]; then
|
||||||
|
kubectl logs -n "$NS" -f "deployment/$DEPL"
|
||||||
|
else
|
||||||
|
kubectl logs -n "$NS" "deployment/$DEPL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -266,7 +266,7 @@ if __name__ == "__main__":
|
|||||||
print(f" {tl} {k.ljust(ml + 1)} {flags}")
|
print(f" {tl} {k.ljust(ml + 1)} {flags}")
|
||||||
# print(json.dumps(dat, indent = 2))
|
# print(json.dumps(dat, indent = 2))
|
||||||
elif sys.argv[1] in list( [ "sync", "lc", "lcs", "pull", "push", "fetch" ] ):
|
elif sys.argv[1] in list( [ "sync", "lc", "lcs", "pull", "push", "fetch" ] ):
|
||||||
thread_count = 10
|
thread_count = 30
|
||||||
with concurrent.futures.ThreadPoolExecutor(max_workers=thread_count) as executor:
|
with concurrent.futures.ThreadPoolExecutor(max_workers=thread_count) as executor:
|
||||||
futures = {executor.submit(perform_action, sys.argv[1], k, cfg[k]) for k in r}
|
futures = {executor.submit(perform_action, sys.argv[1], k, cfg[k]) for k in r}
|
||||||
for future in concurrent.futures.as_completed(futures):
|
for future in concurrent.futures.as_completed(futures):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user