Meant to be used with windmill autoscaling
1
# shellcheck shell=bash
2
3
worker_group="$1"
4
desired_workers="$2"
5
reason="$3"
6
event_type="$4"
7
namespace="mynamespace"
8
9
echo "Applying $event_type of $desired_workers to $worker_group bc $reason"
10
11
kubectl scale deployment windmill-workers-$worker_group --replicas=$desired_workers -n $namespace