Skip to content

Commit 7c11fee

Browse files
committed
e2e: allow to disable VPA for autoscaling
1 parent 7cc9bca commit 7c11fee

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

stackgres-k8s/e2e/spec/autoscaling

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ e2e_test_install() {
99

1010
install_metric_server
1111
install_keda
12-
install_vertical_pod_autoscaler \
13-
--set-string updater.extraArgs.in-recommendation-bounds-eviction-lifetime-threshold=2s
12+
if [ "$E2E_DISABLE_VPA" != true ]
13+
then
14+
install_vertical_pod_autoscaler \
15+
--set-string updater.extraArgs.in-recommendation-bounds-eviction-lifetime-threshold=2s
16+
fi
1417

1518
kubectl create namespace "$CLUSTER_NAMESPACE"
1619
create_or_replace_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE" 2 \
@@ -58,7 +61,12 @@ e2e_test() {
5861

5962
run_test "Checking that autoscaling can be used to scale horizontally" check_horizontal_autoscaling
6063

61-
run_test "Checking that autoscaling can be user to scale vertically" check_vertical_autoscaling
64+
if [ "$E2E_DISABLE_VPA" != true ]
65+
then
66+
run_test "Checking that autoscaling can be user to scale vertically" check_vertical_autoscaling
67+
else
68+
echo "Skipping vertical autoscaling since it has been disabled"
69+
fi
6270

6371
# run_test "Checking that autoscaling can be user to scale horizontally and vertically" check_all_autoscaling
6472
}

0 commit comments

Comments
 (0)