File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -290,16 +290,26 @@ apply_workload_configuraiton(){
290290 if [[ " ${IS_PRESUBMIT} " == " true" ]]; then
291291 sleep 30s
292292 fi
293+ " $TOOLS_BIN_DIR " /helm upgrade calico projectcalico/tigera-operator --version " $CALICO_VERSION " --namespace tigera-operator -f " $SCRIPT_ROOT " /templates/calico/values.yaml --create-namespace --install --debug
294+ timeout --foreground 300 bash -c " until kubectl get ipamconfigs default -n default > /dev/null 2>&1; do sleep 3; done"
295+
296+ # required for windows no way to do it via operator https://github.com/tigera/operator/issues/3113
297+ kubectl patch ipamconfigs default --type merge --patch=' {"spec": {"strictAffinity": true}}'
293298
294299 # get the info for the API server
295300 servername=$( kubectl config view -o json | jq -r ' .clusters[0].cluster.server | sub("https://"; "") | split(":") | .[0]' )
296301 port=$( kubectl config view -o json | jq -r ' .clusters[0].cluster.server | sub("https://"; "") | split(":") | .[1]' )
297302
298- " $TOOLS_BIN_DIR " /helm upgrade calico projectcalico/tigera-operator --version " $CALICO_VERSION " --namespace tigera-operator -f " $SCRIPT_ROOT " /templates/calico/values.yaml --create-namespace --install --debug --set kubernetesServiceEndpoint.host=" ${servername} " --set kubernetesServiceEndpoint.port=" ${port} "
299- timeout --foreground 300 bash -c " until kubectl get ipamconfigs default -n default > /dev/null 2>&1; do sleep 3; done"
300-
301- # required for windows no way to do it via operator https://github.com/tigera/operator/issues/3113
302- kubectl patch ipamconfigs default --type merge --patch=' {"spec": {"strictAffinity": true}}'
303+ kubectl apply -f - << EOF
304+ kind: ConfigMap
305+ apiVersion: v1
306+ metadata:
307+ name: kubernetes-services-endpoint
308+ namespace: tigera-operator
309+ data:
310+ KUBERNETES_SERVICE_HOST: "${servername} "
311+ KUBERNETES_SERVICE_PORT: "${port} "
312+ EOF
303313
304314 # Only patch up kube-proxy if $WINDOWS_KPNG is unset
305315 if [[ -z " $KPNG " ]]; then
You can’t perform that action at this time.
0 commit comments