@@ -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
295295apply_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
322321data:
323- KUBERNETES_SERVICE_HOST: "${servername } "
322+ KUBERNETES_SERVICE_HOST: "${ipaddress } "
324323 KUBERNETES_SERVICE_PORT: "${port} "
325324EOF
326325
0 commit comments