Skip to content

Commit 9604392

Browse files
authored
use the latest capi (#536)
1 parent f846def commit 9604392

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

capz/run-capz-e2e.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ main() {
3333
export KPNG="${WINDOWS_KPNG:-""}"
3434
export CALICO_VERSION="${CALICO_VERSION:-"v3.31.0"}"
3535
export TEMPLATE="${TEMPLATE:-"windows-ci.yaml"}"
36-
export CAPI_VERSION="${CAPI_VERSION:-"v1.12.1"}"
36+
export CAPI_VERSION="${CAPI_VERSION:-"v1.12.2"}"
3737
export HELM_VERSION=v3.15.2
3838
export TOOLS_BIN_DIR="${TOOLS_BIN_DIR:-$SCRIPT_ROOT/tools/bin}"
3939
export CONTAINERD_LOGGER="${CONTAINERD_LOGGER:-""}"
@@ -268,17 +268,6 @@ create_cluster(){
268268
timeout --foreground 300 bash -c "until kubectl get azureclusters -A > /dev/null 2>&1; do sleep 3; done"
269269
timeout --foreground 300 bash -c "until kubectl get kubeadmcontrolplanes -A > /dev/null 2>&1; do sleep 3; done"
270270

271-
272-
# This is a temporary fix to apply https://github.com/kubernetes-sigs/cluster-api/pull/13177 which stops setting
273-
# ControlPlaneKubeletLocalMode for K8s v1.36+ clusters.
274-
# Override kubeadm control plane controller image on the management cluster (temporary fix)
275-
# Remote this when CAPI_VERSION above is update to v1.12.2 OR GREATER
276-
local KCP_CONTROLLER_IMAGE_OVERRIDE="gcr.io/k8s-staging-cluster-api/kubeadm-control-plane-controller:v20260109-v1.12.0-rc.0-186-ga64cfe0cc"
277-
log "Overriding kubeadm-control-plane controller image to ${KCP_CONTROLLER_IMAGE_OVERRIDE}"
278-
timeout --foreground 300 bash -c "until kubectl -n capi-kubeadm-control-plane-system get deployment/capi-kubeadm-control-plane-controller-manager > /dev/null 2>&1; do sleep 3; done"
279-
kubectl -n capi-kubeadm-control-plane-system set image deployment/capi-kubeadm-control-plane-controller-manager manager="${KCP_CONTROLLER_IMAGE_OVERRIDE}"
280-
kubectl -n capi-kubeadm-control-plane-system rollout status deployment/capi-kubeadm-control-plane-controller-manager --timeout=5m
281-
282271
log "Provision workload cluster"
283272
"$TOOLS_BIN_DIR"/clusterctl generate cluster "${CLUSTER_NAME}" --kubernetes-version "$KUBERNETES_VERSION" --from "$template" > "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"
284273
kubectl apply -f "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"

0 commit comments

Comments
 (0)