File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,8 @@ main() {
6161 if [[ " $( can_reuse_artifacts) " =~ " false" ]]; then
6262 echo " Build Linux Azure amd64 cloud controller manager"
6363 make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " build-ccm-image-amd64 push-ccm-image-amd64
64- if [[ -n " ${TEST_WINDOWS:- } " ]]; then
65- echo " Building Linux amd64 and Windows ${WINDOWS_IMAGE_VERSION} amd64 cloud node managers"
64+ echo " Building Linux amd64 and Windows ${WINDOWS_IMAGE_VERSION} amd64 cloud node managers"
6665 make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " build-node-image-linux-amd64 push-node-image-linux-amd64 push-node-image-windows-" ${WINDOWS_IMAGE_VERSION} " -amd64 manifest-node-manager-image-windows-" ${WINDOWS_IMAGE_VERSION} " -amd64
67- else
68- echo " Building Linux amd64 cloud node manager"
69- make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " build-node-image-linux-amd64 push-node-image-linux-push-name-amd64
70- fi
7166 fi
7267}
7368
@@ -79,13 +74,11 @@ can_reuse_artifacts() {
7974 fi
8075 done
8176
82- if [[ -n " ${TEST_WINDOWS:- } " ]]; then
83- FULL_VERSION=$( docker manifest inspect mcr.microsoft.com/windows/nanoserver:${WINDOWS_IMAGE_VERSION} | jq -r ' .manifests[0].platform["os.version"]' )
84- if ! docker manifest inspect " ${REGISTRY} /${CNM_IMAGE_NAME} :${IMAGE_TAG} " | grep -q " \" os.version\" : \" ${FULL_VERSION} \" " ; then
85- echo " false" && return
86- fi
77+ FULL_VERSION=$( docker manifest inspect mcr.microsoft.com/windows/nanoserver:${WINDOWS_IMAGE_VERSION} | jq -r ' .manifests[0].platform["os.version"]' )
78+ if ! docker manifest inspect " ${REGISTRY} /${CNM_IMAGE_NAME} :${IMAGE_TAG} " | grep -q " \" os.version\" : \" ${FULL_VERSION} \" " ; then
79+ echo " false" && return
8780 fi
88-
81+
8982 echo " true"
9083}
9184
Original file line number Diff line number Diff line change @@ -102,15 +102,16 @@ setup() {
102102 export CCM_COUNT=" ${CCM_COUNT:- 1} "
103103 export WORKER_MACHINE_COUNT=" ${WORKER_MACHINE_COUNT:- 2} "
104104 export EXP_CLUSTER_RESOURCE_SET=" true"
105-
106105 # this requires k8s 1.22+
106+ if [[ -n " ${K8S_FEATURE_GATES:- } " ]]; then
107+ export K8S_FEATURE_GATES=" ${K8S_FEATURE_GATES:- } ,WindowsHostProcessContainers=true"
108+ else
109+ export K8S_FEATURE_GATES=" WindowsHostProcessContainers=true"
110+ fi
111+
112+ # TODO figure out a better way to account for expected Windows node count
107113 if [[ -n " ${TEST_WINDOWS:- } " ]]; then
108114 export WINDOWS_WORKER_MACHINE_COUNT=" ${WINDOWS_WORKER_MACHINE_COUNT:- 2} "
109- if [[ -n " ${K8S_FEATURE_GATES:- } " ]]; then
110- export K8S_FEATURE_GATES=" ${K8S_FEATURE_GATES:- } ,WindowsHostProcessContainers=true"
111- else
112- export K8S_FEATURE_GATES=" WindowsHostProcessContainers=true"
113- fi
114115 fi
115116}
116117
You can’t perform that action at this time.
0 commit comments