Skip to content

Commit d2a076d

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

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

capz/run-capz-e2e.sh

Lines changed: 4 additions & 2 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
@@ -311,6 +311,8 @@ apply_workload_configuraiton(){
311311

312312
# get the info for the API server
313313
servername=$(kubectl config view -o json | jq -r '.clusters[0].cluster.server | sub("https://"; "") | split(":") | .[0]')
314+
ipaddress=$(dig +short "$servername" | head -1)
315+
echo "Server: $servername, IP: $ipaddress"
314316
port=$(kubectl config view -o json | jq -r '.clusters[0].cluster.server | sub("https://"; "") | split(":") | .[1]')
315317

316318
kubectl apply -f - << EOF
@@ -320,7 +322,7 @@ metadata:
320322
name: kubernetes-services-endpoint
321323
namespace: tigera-operator
322324
data:
323-
KUBERNETES_SERVICE_HOST: "${servername}"
325+
KUBERNETES_SERVICE_HOST: "${ipaddress}"
324326
KUBERNETES_SERVICE_PORT: "${port}"
325327
EOF
326328

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)