Skip to content

Commit fdbf48b

Browse files
authored
Merge pull request #5962 from mboersma/update-windows-templates
Update test templates to Windows community gallery images
2 parents ba6e788 + fcd2106 commit fdbf48b

File tree

16 files changed

+42
-51
lines changed

16 files changed

+42
-51
lines changed

docs/book/src/developers/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ With the following environment variables defined, you can build a CAPZ cluster f
553553
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
554554
| `E2E_ARGS` | `-kubetest.use-ci-artifacts` |
555555
| `KUBERNETES_VERSION` | `latest` - extract Kubernetes version from https://dl.k8s.io/ci/latest.txt (main's HEAD)<br>`latest-1.<MINOR>` - extract Kubernetes version from dl.k8s.io/ci/latest-1.<MINOR>.txt (release branch's HEAD) |
556-
| `WINDOWS_SERVER_VERSION` | Optional, can be `windows-2019` (default) or `windows-2022` |
556+
| `WINDOWS_SERVER_VERSION` | Optional, can be `windows-2022` (default) or `windows-2025` |
557557
| `KUBETEST_WINDOWS_CONFIG` | Default is `upstream-windows.yaml`. CAPZ contains various other configuration recipes in the `test/e2e/data/` directory; you may use any of those by referencing their file names as the value of `KUBETEST_WINDOWS_CONFIG` (e.g., `conformance-fast.yaml`), or you may drop in your own config files into `test/e2e/data/` and reference those. |
558558
| `WINDOWS_CONTAINERD_URL` | Optional, can be any url to a `tar.gz` file containing binaries for containerd in the same format as upstream package |
559559

scripts/ci-conformance.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export AZURE_LOCATION_EDGEZONE="${AZURE_LOCATION_EDGEZONE:-$(capz::util::get_ran
8282
export AZURE_CONTROL_PLANE_MACHINE_TYPE="${AZURE_CONTROL_PLANE_MACHINE_TYPE:-"Standard_B2s"}"
8383
export AZURE_NODE_MACHINE_TYPE="${AZURE_NODE_MACHINE_TYPE:-"Standard_B2s"}"
8484
export WINDOWS="${WINDOWS:-false}"
85+
export WINDOWS_SERVER_VERSION="${WINDOWS_SERVER_VERSION:-windows-2022}"
8586
AZWI_RESOURCE_GROUP="${AZWI_RESOURCE_GROUP:-capz-wi-$(capz::util::random_suffix)}"
8687
export AZWI_RESOURCE_GROUP
8788

scripts/ci-e2e.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ CALICO_VERSION=$(make get-calico-version)
7272
export CALICO_VERSION
7373
AZWI_RESOURCE_GROUP="${AZWI_RESOURCE_GROUP:-capz-wi-$(capz::util::random_suffix)}"
7474
export AZWI_RESOURCE_GROUP
75+
export WINDOWS_SERVER_VERSION="${WINDOWS_SERVER_VERSION:-windows-2022}"
7576

7677

7778
capz::util::generate_ssh_key

scripts/ci-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ setup() {
119119
# TODO figure out a better way to account for expected Windows node count
120120
if [[ "${TEST_WINDOWS:-}" == "true" ]]; then
121121
export WINDOWS_WORKER_MACHINE_COUNT="${WINDOWS_WORKER_MACHINE_COUNT:-2}"
122+
export WINDOWS_SERVER_VERSION="${WINDOWS_SERVER_VERSION:-windows-2022}"
122123
fi
123124
}
124125

templates/test/ci/cluster-template-prow-ci-version-windows.yaml

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-machine-pool-ci-version-windows.yaml

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/prow-ci-version-windows/patches/machine-deployment-ci-version-windows.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ spec:
88
image:
99
# we use the latest image as a workaround there is no published marketplace image for k8s CI versions.
1010
# the binaries and images will get replaced to the desired version by the pre-kubeadm script.
11-
marketplace:
12-
publisher: cncf-upstream
13-
offer: capi-windows
14-
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
15-
version: "latest"
11+
computeGallery:
12+
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
13+
name: capi-win-${WINDOWS_SERVER_VERSION#windows-}-containerd
14+
version: latest
1615
identity: UserAssigned
1716
userAssignedIdentities:
1817
- providerID: azure:///subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${CI_RG}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${USER_IDENTITY}

templates/test/ci/prow-ci-version/patches/machine-deployment-ci-version-windows.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ spec:
88
image:
99
# we use the latest image as a workaround there is no published marketplace image for k8s CI versions.
1010
# the binaries and images will get replaced to the desired version by the pre-kubeadm script.
11-
marketplace:
12-
publisher: cncf-upstream
13-
offer: capi-windows
14-
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
15-
version: "latest"
11+
computeGallery:
12+
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
13+
name: capi-win-${WINDOWS_SERVER_VERSION#windows-}-containerd
14+
version: latest
1615
identity: UserAssigned
1716
userAssignedIdentities:
1817
- providerID: azure:///subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${CI_RG}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${USER_IDENTITY}

templates/test/ci/prow-machine-pool-ci-version-windows/patches/machine-pool-ci-version-windows.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ spec:
88
image:
99
# we use the latest image as a workaround there is no published marketplace image for k8s CI versions.
1010
# latest binaries and images will get replaced to the desired version by the script in this template.
11-
marketplace:
12-
publisher: cncf-upstream
13-
offer: capi-windows
14-
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
11+
computeGallery:
12+
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
13+
name: capi-win-${WINDOWS_SERVER_VERSION#windows-}-containerd
1514
version: latest
1615
identity: UserAssigned
1716
userAssignedIdentities:

templates/test/ci/prow-machine-pool-ci-version/patches/machine-pool-ci-version-windows.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ spec:
88
image:
99
# we use the latest image as a workaround there is no published marketplace image for k8s CI versions.
1010
# latest binaries and images will get replaced to the desired version by the script in this template.
11-
marketplace:
12-
publisher: cncf-upstream
13-
offer: capi-windows
14-
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
11+
computeGallery:
12+
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
13+
name: capi-win-${WINDOWS_SERVER_VERSION#windows-}-containerd
1514
version: latest
1615
identity: UserAssigned
1716
userAssignedIdentities:

0 commit comments

Comments
 (0)