@@ -36,8 +36,6 @@ source "${REPO_ROOT}/hack/parse-prow-creds.sh"
36
36
export CCM_IMAGE_NAME=azure-cloud-controller-manager
37
37
# cloud node manager image
38
38
export CNM_IMAGE_NAME=azure-cloud-node-manager
39
- # cloud node manager windows image version
40
- export WINDOWS_IMAGE_VERSION=1809
41
39
# container name
42
40
export AZURE_BLOB_CONTAINER_NAME=" ${AZURE_BLOB_CONTAINER_NAME:- " kubernetes-ci" } "
43
41
@@ -59,24 +57,14 @@ setup() {
59
57
IMAGE_TAG_ACR_CREDENTIAL_PROVIDER=" ${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER:- ${IMAGE_TAG} } "
60
58
export IMAGE_TAG_ACR_CREDENTIAL_PROVIDER
61
59
echo " Image Tag ACR credential provider is ${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER} "
62
-
63
- if [[ -n " ${WINDOWS_SERVER_VERSION:- } " ]]; then
64
- if [[ " ${WINDOWS_SERVER_VERSION} " == " windows-2019" ]]; then
65
- export WINDOWS_IMAGE_VERSION=" 1809"
66
- elif [[ " ${WINDOWS_SERVER_VERSION} " == " windows-2022" ]]; then
67
- export WINDOWS_IMAGE_VERSION=" ltsc2022"
68
- else
69
- echo " Windows version not supported: ${WINDOWS_SERVER_VERSION} "
70
- fi
71
- fi
72
60
}
73
61
74
62
main () {
75
63
if [[ " $( can_reuse_artifacts) " =~ " false" ]]; then
76
64
echo " Building Linux Azure amd64 cloud controller manager"
77
65
make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " build-ccm-image-amd64 push-ccm-image-amd64
78
- echo " Building Linux amd64 and Windows ${WINDOWS_IMAGE_VERSION} amd64 cloud node managers"
79
- 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
66
+ echo " Building Linux amd64 and Windows (hpc) amd64 cloud node managers"
67
+ make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " build-node-image-linux-amd64 push-node-image-linux-amd64 push-node-image-windows-hpc -amd64 manifest-node-manager-image-windows-hpc -amd64
80
68
81
69
echo " Building and pushing Linux and Windows amd64 Azure ACR credential provider"
82
70
make -C " ${AZURE_CLOUD_PROVIDER_ROOT} " bin/azure-acr-credential-provider bin/azure-acr-credential-provider.exe
@@ -103,8 +91,7 @@ can_reuse_artifacts() {
103
91
fi
104
92
done
105
93
106
- FULL_VERSION=$( docker manifest inspect mcr.microsoft.com/windows/nanoserver:${WINDOWS_IMAGE_VERSION} | jq -r ' .manifests[0].platform["os.version"]' )
107
- if ! docker manifest inspect " ${REGISTRY} /${CNM_IMAGE_NAME} :${IMAGE_TAG_CNM} " | grep -q " \" os.version\" : \" ${FULL_VERSION} \" " ; then
94
+ if ! docker manifest inspect " ${REGISTRY} /${CNM_IMAGE_NAME} :${IMAGE_TAG_CNM} " | grep -q " \" os\" : \" windows\" " ; then
108
95
echo " false" && return
109
96
fi
110
97
0 commit comments