Skip to content

Commit e20864c

Browse files
committed
ci-build-auzre-ccm build windows host-process-container based images
1 parent 0757c58 commit e20864c

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

scripts/ci-build-azure-ccm.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ source "${REPO_ROOT}/hack/parse-prow-creds.sh"
3636
export CCM_IMAGE_NAME=azure-cloud-controller-manager
3737
# cloud node manager image
3838
export CNM_IMAGE_NAME=azure-cloud-node-manager
39-
# cloud node manager windows image version
40-
export WINDOWS_IMAGE_VERSION=1809
4139
# container name
4240
export AZURE_BLOB_CONTAINER_NAME="${AZURE_BLOB_CONTAINER_NAME:-"kubernetes-ci"}"
4341

@@ -59,24 +57,14 @@ setup() {
5957
IMAGE_TAG_ACR_CREDENTIAL_PROVIDER="${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER:-${IMAGE_TAG}}"
6058
export IMAGE_TAG_ACR_CREDENTIAL_PROVIDER
6159
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
7260
}
7361

7462
main() {
7563
if [[ "$(can_reuse_artifacts)" =~ "false" ]]; then
7664
echo "Building Linux Azure amd64 cloud controller manager"
7765
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
8068

8169
echo "Building and pushing Linux and Windows amd64 Azure ACR credential provider"
8270
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" bin/azure-acr-credential-provider bin/azure-acr-credential-provider.exe
@@ -103,8 +91,7 @@ can_reuse_artifacts() {
10391
fi
10492
done
10593

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
10895
echo "false" && return
10996
fi
11097

0 commit comments

Comments
 (0)