Skip to content

Commit e3fc4dd

Browse files
committed
Try to upgrade calico to 3.31
1 parent 522fe9a commit e3fc4dd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

capz/run-capz-e2e.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ main() {
2828
export GMSA="${GMSA:-""}"
2929
export HYPERV="${HYPERV:-""}"
3030
export KPNG="${WINDOWS_KPNG:-""}"
31-
export CALICO_VERSION="${CALICO_VERSION:-"v3.29.2"}"
31+
export CALICO_VERSION="${CALICO_VERSION:-"v3.31.0"}"
3232
export TEMPLATE="${TEMPLATE:-"windows-ci.yaml"}"
3333
export CAPI_VERSION="${CAPI_VERSION:-"v1.7.2"}"
3434
export HELM_VERSION=v3.15.2
@@ -293,9 +293,6 @@ create_cluster(){
293293
}
294294

295295
apply_workload_configuraiton(){
296-
log "wait for cluster to stabilize"
297-
timeout --foreground 300 bash -c "until kubectl get --raw /version --request-timeout 5s > /dev/null 2>&1; do sleep 3; done"
298-
299296
log "installing calico"
300297
"$TOOLS_BIN_DIR"/helm repo add projectcalico https://docs.tigera.io/calico/charts
301298
kubectl create ns calico-system
@@ -311,6 +308,8 @@ apply_workload_configuraiton(){
311308

312309
# get the info for the API server
313310
servername=$(kubectl config view -o json | jq -r '.clusters[0].cluster.server | sub("https://"; "") | split(":") | .[0]')
311+
ipaddress=$(dig +short "$servername" | head -1)
312+
echo "Server: $servername, IP: $ipaddress"
314313
port=$(kubectl config view -o json | jq -r '.clusters[0].cluster.server | sub("https://"; "") | split(":") | .[1]')
315314

316315
kubectl apply -f - << EOF
@@ -320,7 +319,7 @@ metadata:
320319
name: kubernetes-services-endpoint
321320
namespace: tigera-operator
322321
data:
323-
KUBERNETES_SERVICE_HOST: "${servername}"
322+
KUBERNETES_SERVICE_HOST: "${ipaddress}"
324323
KUBERNETES_SERVICE_PORT: "${port}"
325324
EOF
326325

capz/templates/calico/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ installation:
1313
# Image and registry configuration for the tigera/operator pod.
1414
tigeraOperator:
1515
image: tigera/operator
16-
registry: mcr.microsoft.com/oss
16+
registry: capzcicommunity.azurecr.io
1717
calicoctl:
18-
image: mcr.microsoft.com/oss/calico/ctl
18+
image: capzcicommunity.azurecr.io/calico/ctl

0 commit comments

Comments
 (0)