Skip to content

Commit 21f70b3

Browse files
committed
Bump cluster-autoscaler to v1.33, pin apiVersion to v1beta1
Signed-off-by: Stefan Büringer [email protected]
1 parent 2b8b70e commit 21f70b3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

hack/e2e.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export E2E_CONF_FILE="${REPO_ROOT}/test/e2e/config/vsphere.yaml"
121121
export E2E_CONF_OVERRIDE_FILE=""
122122
export E2E_VM_OPERATOR_VERSION="${VM_OPERATOR_VERSION:-v1.8.6-0-gde75746a}"
123123
export DOCKER_IMAGE_TAR="/tmp/images/image.tar"
124-
export GC_KIND="false"
125124

126125
SSH_KEY_DIR=$(mktemp -d)
127126
export VSPHERE_SSH_PRIVATE_KEY

test/e2e/autoscaler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var _ = Describe("When using the autoscaler with Cluster API using ClusterClass
4343
},
4444
InfrastructureAPIGroup: "vmware.infrastructure.cluster.x-k8s.io",
4545
InfrastructureMachineTemplateKind: "vspheremachinetemplates",
46-
AutoscalerVersion: "v1.31.0",
46+
AutoscalerVersion: "v1.33.0",
4747
ScaleToAndFromZero: true,
4848
// We have no connectivity from the workload cluster to the kind management cluster in CI so we
4949
// can't deploy the autoscaler to the workload cluster.

test/e2e/data/autoscaler/autoscaler-to-management-workload.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ spec:
7070
# Note: The E2E test should only go up to 4 (assuming it starts with a min node group size of 2).
7171
# Using 6 for additional some buffer and to allow different starting min node group sizes.
7272
- --max-nodes-total=6
73+
env:
74+
# Per default autoscaler uses the preferred apiVersion to retrieve MachineDeployments.
75+
# If that apiVersion is v1beta2 the current autoscaler implementation is not able
76+
# to resolve infrastructureRefs as the ref format changed. This would break scale from zero.
77+
- name: CAPI_VERSION
78+
value: v1beta1
7379
volumeMounts:
7480
- name: kubeconfig-management-cluster
7581
mountPath: /management-cluster

0 commit comments

Comments
 (0)