File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -290,26 +290,16 @@ 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}}'
298293
299294 # get the info for the API server
300295 servername=$( kubectl config view -o json | jq -r ' .clusters[0].cluster.server | sub("https://"; "") | split(":") | .[0]' )
301296 port=$( kubectl config view -o json | jq -r ' .clusters[0].cluster.server | sub("https://"; "") | split(":") | .[1]' )
302297
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
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}}'
313303
314304 # Only patch up kube-proxy if $WINDOWS_KPNG is unset
315305 if [[ -z " $KPNG " ]]; then
You can’t perform that action at this time.
0 commit comments